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, Gurobi
m =Model(() -> PolyJuMP.QCQP.Optimizer(Gurobi.Optimizer()))
@variable m -1<= c <=1@constraint m c ^2==0.5@objective m Min c
optimize!(m)
LoadError: MathOptInterface.GetAttributeNotAllowed{MathOptInterface.VariablePrimal}: Getting attribute MathOptInterface.VariablePrimal(1) cannot be performed: PolyJuMP.QCQP.Optimizer{Float64, Gurobi.Optimizer} does not support getting the attribute MathOptInterface.VariablePrimal(1). You may want to use a `CachingOptimizer` in `AUTOMATIC` mode or you may need to call `reset_optimizer` before doing this operation if the `CachingOptimizer` is in `MANUAL` mode.
The text was updated successfully, but these errors were encountered:
After optimizing a model
I can get the result with this
but this
throws an Error
The text was updated successfully, but these errors were encountered: