write_subproblem

(function from pyomo.contrib.pyros.util)

pyomo.contrib.pyros.util.write_subproblem(model, fname, config)[source]

Write/export a subproblem to one or more files.

Parameters:
  • model (ConcreteModel) – Subproblem to be written/exported.

  • fname (str) – Base name of the file(s) to be written. Should not include any prefix directories.

  • config (ConfigDict) – PyROS solver options. A file will be written for each format provided in config.subproblem_format_options, and in the directory config.subproblem_file_directory.