PolyJuMP.jl icon indicating copy to clipboard operation
PolyJuMP.jl copied to clipboard

Support JuMP.GenericModel

Open DanielBrosch opened this issue 1 year ago • 1 comments

Right now PolyJuMP only seems to support Float64 Models:

using MultiFloats, JuMP, PolyJuMP, SumOfSquares
m = GenericModel{Float64x2}()
setpolymodule!(m, SumOfSquares)

Gives

ERROR: MethodError: no method matching setpolymodule!(::GenericModel{MultiFloat{Float64, 2}}, ::Module)

This package is quite convenient to use! But my instances are often numerically quite unstable, and require higher precision solvers.

DanielBrosch avatar Oct 21 '24 12:10 DanielBrosch

It shouldn't be hard to do, we just need to replace Model by GenericModel at a few places

blegat avatar Oct 22 '24 08:10 blegat