(class from pyomo.contrib.pynumero.algorithms.solvers.pyomo_ext_cyipopt)
pyomo.contrib.pynumero.algorithms.solvers.pyomo_ext_cyipopt
Bases: object
object
This is the base class for building external input output models for use with Pyomo and CyIpopt
Methods
__init__()
__init__
evaluate_derivatives()
evaluate_derivatives
Compute the derivatives of the outputs with respect to the inputs (using the values set in input_values).
evaluate_outputs()
evaluate_outputs
Compute the outputs from the model (using the values set in input_values) and return as a numpy array
set_inputs(input_values)
set_inputs
This method is called by the solver to set the current values for the input variables.
Member Documentation
Compute the derivatives of the outputs with respect to the inputs (using the values set in input_values). This should be a dense matrix with the rows in the order of the output variables and the cols in the order of the input variables.
This method is called by the solver to set the current values for the input variables. The derived class must cache these if necessary for any subsequent calls to evaluate_outputs or evaluate_derivatives.