-
Notifications
You must be signed in to change notification settings - Fork 27
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
MOI no method matching _allocate_constraint #112
Comments
Bridges currently don't work if you do not provide the optimizer from the start. using JuMP; using SCS
using MathOptInterface
const MOI = MathOptInterface
const MOIU = MOI.Utilities
m = Model(with_optimizer(SCS.Optimizer))
X = @variable(m, [1:3, 1:3])
@constraint(m, X in PSDCone())
JuMP.optimize!(m) Note that the new syntax is |
Thanks for the clarification on the new syntax. I can confirm the example you provide works like a charm. However, if I try to set the optimizer at the time of using JuMP; using SCS
m = Model()
X = @variable(m, [1:3, 1:3])
@constraint(m, X in PSDCone())
JuMP.optimize!(m, with_optimizer(SCS.Optimizer)) results in,
|
Thanks for checking that. This is problematic but should be resolved by jump-dev/JuMP.jl#1504 and jump-dev/MathOptInterface.jl#530. There is nothing wrong in SCS.jl so I am closing this issue. |
With Julia v0.6.4, JuMP master, SCS master, and MOI v0.6.1.
With the following JuMP model,
I am getting the following error message,
The text was updated successfully, but these errors were encountered: