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

No method matching decompose(::Nothing) on a simple problem #106

Closed
votroto opened this issue Mar 1, 2024 · 1 comment · Fixed by #109
Closed

No method matching decompose(::Nothing) on a simple problem #106

votroto opened this issue Mar 1, 2024 · 1 comment · Fixed by #109

Comments

@votroto
Copy link
Contributor

votroto commented Mar 1, 2024

Running

using JuMP, PolyJuMP, Gurobi, LinearAlgebra

model = Model(() -> PolyJuMP.QCQP.Optimizer(Gurobi.Optimizer()))
@variable(model, -1 <= x <= 1)
@variable(model, -1 <= y <= 1)

@constraint(model, 0.4*x*y == 1)

@objective(model, Min, x + y)
optimize!(model)

results in

LoadError: MethodError: no method matching decompose(::Nothing)

versions

Julia version 1.10.0

[2e9cd046] Gurobi v1.2.1
[4076af6c] JuMP v1.20.0
[ddf597a6] PolyJuMP v0.7.1
@odow
Copy link
Member

odow commented Mar 2, 2024

I assume the issue here is that Gurobi supports this problem, so there is nothing for QCQP.Optimizer to reformulate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants