Closed amontoison closed 11 months ago
Patch and project coverage have no change.
Comparison is base (
037c159
) 94.02% compared to head (25ea437
) 94.02%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@amontoison try this (no need for JuMP dependency):
model = Ipopt.Optimizer()
MOI.set(model, MOI.RawOptimizerAttribute("linear_solver"), "spral")
MOI.set(model, MOI.Silent(), true)
x = MOI.add_variable(model)
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
f = (1.0 * x - 2.0) ^ 2
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
MOI.optimize!(model)
@test MOI.get(model, MOI.VariablePrimal(), x) ≈ 2.0
Looks like this worked.
Last commit on master
ran
this PR ran
@odow Do you know how we can implement the following code without JuMP?