jump-dev / jump-dev/PolyJuMP.jl

Support JuMP.GenericModel

Open
#131 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
46
Forks
10
Avg merge
4h 13m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Julia snippet and tracing setpolymodule! dispatch for GenericModel{Float64x2}. The work is done when PolyJuMP accepts a GenericModel with a higher-precision coefficient type and the reported example runs without the MethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.