Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gradient cache in Optimizer #66

Merged
merged 10 commits into from
Feb 16, 2021
4 changes: 2 additions & 2 deletions examples/solve-QP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using MathOptInterface
const MOI = MathOptInterface
const MOIU = MathOptInterface.Utilities;

using OSQP
using Ipopt

n = 20 # variable dimension
m = 15 # no of inequality constraints
Expand All @@ -17,7 +17,7 @@ q = rand(n)
G = rand(m, n)
h = G * x̂ + rand(m);

model = MOI.instantiate(OSQP.Optimizer, with_bridge_type=Float64)
model = MOI.instantiate(Ipopt.Optimizer, with_bridge_type=Float64)
x = MOI.add_variables(model, n);

# define objective
Expand Down
Loading