You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using JuMP, PolyJuMP, SCIP
m =Model(SCIP.Optimizer)
@variable(m, x >=0)
@variable(m, y >=0)
@variable(m, xx)
@constraint(m, xx == x*x)
@constraint(m, x + y ==1)
@objective(m, Min, xx*x + y)
optimize!(m)
but changing the optimizer to
m =Model(() -> PolyJuMP.QCQP.Optimizer(SCIP.Optimizer()))
fails with
LoadError: MathOptInterface.UnsupportedAttribute{MathOptInterface.ObjectiveFunction{MathOptInterface.ScalarQuadraticFunction{Float64}}}: Attribute MathOptInterface.ObjectiveFunction{MathOptInterface.ScalarQuadraticFunction{Float64}}() is not supported by the model.
any ideas? Is this a SCIP issue?
Versions
PolyJuMP: tested with the version from pkg, and the latest 119 patch from github master)
Thanks for the thorough testing ^^ This is because SCIP needs to bridge quadratic objective into quadratic functions but because the bridges are applied before QCQP it decides to bridge it into polynomial function which is then transformed into QCQP by the QCQP optimizer but because there is no bridge after the QCQP optimizer, it fails
Ehm... Hello again ^_^
Issue
This works:
but changing the optimizer to
fails with
any ideas? Is this a SCIP issue?
Versions
Same results setting it manually, of course
The text was updated successfully, but these errors were encountered: