(function from pyomo.contrib.pyros.util)
pyomo.contrib.pyros.util
Write/export a subproblem to one or more files.
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.
config.subproblem_format_options
config.subproblem_file_directory