NLWriter
(class from pyomo.contrib.appsi.writers.nl_writer
)
- class pyomo.contrib.appsi.writers.nl_writer.NLWriter(only_child_vars=False)[source]
Bases:
PersistentBase
Methods
__init__
([only_child_vars])add_block
(block)add_constraints
(cons)add_params
(params)add_sos_constraints
(cons)add_variables
(variables)get_active_objective
()get_ordered_cons
()get_ordered_vars
()remove_block
(block)remove_constraints
(cons)remove_params
(params)remove_sos_constraints
(cons)remove_variables
(variables)set_instance
(model)set_objective
(obj)update
([timer])update_params
()update_variables
(variables)write
(model, filename[, timer])Attributes
config
symbol_map
update_config
Member Documentation