utils

Classes

KnitroModelData([block])

Intermediate representation of a Pyomo model for KNITRO.

NonlinearExpressionData(expr, variables, var_map)

Holds the data required to evaluate a non-linear expression.

Functions

get_active_constraints(block)

Retrieve all active ConstraintData objects from a Pyomo Block.

get_active_objectives(block)

Retrieve all active ObjectiveData objects from a Pyomo Block.

set_var_values(variables, values, var_map)

Set the values of a list of Pyomo variables from a list of values.