LinearProgrammingDual
(class from pyomo.core.plugins.transform.lp_dual)
- class pyomo.core.plugins.transform.lp_dual.LinearProgrammingDual[source]
Bases:
object- __init__()
Methods
__init__()apply_to(model, **options)create_using(model[, ostream])Take linear programming dual of a model
get_dual_constraint(model, primal_var)Return the dual constraint corresponding to 'primal_var'
get_dual_var(model, primal_constraint)Return the dual variable corresponding to 'primal_constraint'
get_primal_constraint(model, dual_var)Return the primal constraint corresponding to 'dual_var'
get_primal_var(model, dual_constraint)Return the primal variable corresponding to 'dual_constraint'
Attributes
CONFIGMember Documentation
- create_using(model, ostream=None, **kwds)[source]
Take linear programming dual of a model
- Return type:
ConcreteModel containing linear programming dual
- Parameters:
model (ConcreteModel) – The concrete Pyomo model to take the dual of
ostream (None) – This is provided for API compatibility with other writers and is ignored here.
- get_dual_constraint(model, primal_var)[source]
Return the dual constraint corresponding to ‘primal_var’
- Return type:
- Parameters:
model (ConcreteModel) – A primal model passed as an argument to the ‘core.lp_dual’ transformation
primal_var (Var) – A primal variable on ‘model’
- get_dual_var(model, primal_constraint)[source]
Return the dual variable corresponding to ‘primal_constraint’
- Return type:
- Parameters:
model (ConcreteModel) – A primal model passed as an argument to the ‘core.lp_dual’ transformation
primal_constraint (Constraint) – A constraint on ‘model’
- get_primal_constraint(model, dual_var)[source]
Return the primal constraint corresponding to ‘dual_var’
- Return type:
- Parameters:
model (ConcreteModel) – A dual model returned from the ‘core.lp_dual’ transformation
dual_var (Var) – A dual variable on ‘model’
- get_primal_var(model, dual_constraint)[source]
Return the primal variable corresponding to ‘dual_constraint’
- Return type:
- Parameters:
model (ConcreteModel) – A dual model returned from the ‘core.lp_dual’ transformation
dual_constraint (Constraint) – A constraint on ‘model’