LPWriter

(class from pyomo.contrib.appsi.writers.lp_writer)

class pyomo.contrib.appsi.writers.lp_writer.LPWriter(only_child_vars=False)[source]

Bases: PersistentBase

__init__(only_child_vars=False)[source]

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_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