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

Support JuMP.GenericModel #131

Open
DanielBrosch opened this issue Oct 21, 2024 · 1 comment
Open

Support JuMP.GenericModel #131

DanielBrosch opened this issue Oct 21, 2024 · 1 comment

Comments

@DanielBrosch
Copy link

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.

@blegat
Copy link
Member

blegat commented Oct 22, 2024

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

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

No branches or pull requests

2 participants