jump-dev / jump-dev/SumOfSquares.jl

A trivial example that returns infeasible

Open
#290 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
131
Forks
26
PR merge metrics
No merged PRs in 30d

Description

The following univariate example returns infeasible even though it should be a very simple problem. For the purposes of debugging, is it possible to have the domain of the SOS constraint printed out?
```julia
using DynamicPolynomials
using SumOfSquares
using MosekTools
@polyvar x
S = @set -1 <= x && x <= 1

import Mosek
model = SOSModel(Mosek.Optimizer)
set_silent(model)
con_ref = @constraint(model, x^2 <= 1.1, domain = S)
optimize!(model)
solution_summary(model)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided Julia reproducer, especially the @constraint call with domain = S and the subsequent solution_summary(model). Run it with DynamicPolynomials, SumOfSquares, and MosekTools, then trace how the SOS constraint domain is handled and reported. Done means the infeasible result can be investigated from the displayed domain information.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.