Reference
ParametricOptInterface.ConstraintsInterpretation — TypeConstraintsInterpretation <: MOI.AbstractOptimizerAttributeAttribute to define how POI.Optimizer should interpret constraints.
POI.ONLY_CONSTRAINTS: Only interpretScalarAffineFunctionconstraints as linear constraints If an expression such asx >= p1 + p2appears it will be trated like a new constraint. This is the default behaviour ofPOI.OptimizerPOI.ONLY_BOUNDS: Only interpretScalarAffineFunctionconstraints as a variable bound. This is valid for constraints such asx >= porx >= p1 + p2. If a constraintx1 + x2 >= pappears, which is not a valid variable bound it will throw an error.POI.BOUNDS_AND_CONSTRAINTS: InterpretScalarAffineFunctionconstraints as a variable bound if they are a valid variable bound, i.e.,x >= porx >= p1 + p2and interpret them as linear constraints otherwise.
Example
MOI.set(model, POI.ConstraintsInterpretation(), POI.ONLY_BOUNDS)
MOI.set(model, POI.ConstraintsInterpretation(), POI.ONLY_CONSTRAINTS)
MOI.set(model, POI.ConstraintsInterpretation(), POI.BOUNDS_AND_CONSTRAINTS)ParametricOptInterface.Optimizer — TypeOptimizer{T, OT <: MOI.ModelLike} <: MOI.AbstractOptimizerDeclares a Optimizer, which allows the handling of parameters in a optimization model.
Keyword arguments
evaluate_duals::Bool: Iftrue, evaluates the dual of parameters. Users might want to set it tofalseto increase performance when the duals of parameters are not necessary. Defaults totrue.save_original_objective_and_constraints: Iftruesaves the orginal function and set of the constraints as well as the original objective function insidePOI.Optimizer. This is useful for printing the model but greatly increases the memory footprint. Users might want to set it tofalseto increase performance in applications where you don't need to query the original expressions provided to the model in constraints or in the objective. Note that this might break printing or queries such asMOI.get(model, MOI.ConstraintFunction(), c). Defaults totrue.
Example
julia> ParametricOptInterface.Optimizer(HiGHS.Optimizer())
ParametricOptInterface.Optimizer{Float64,HiGHS.Optimizer}ParametricOptInterface.ParameterDual — TypeParameterDual <: MOI.AbstractVariableAttributeAttribute defined to get the dual values associated to parameters
Example
MOI.get(model, POI.ParameterValue(), p)ParametricOptInterface.ParameterValue — TypeParameterValue <: MOI.AbstractVariableAttributeAttribute defined to set and get parameter values
Example
MOI.set(model, POI.ParameterValue(), p, 2.0)
MOI.get(model, POI.ParameterValue(), p)