Skip to content
\n\n
Solved with primal simplex\nIteration    Objective       Primal Inf.    Dual Inf.      Time\n  582540    1.0538306e+11   0.000000e+00   0.000000e+00    121s\n\nSolved in 582540 iterations and 121.15 seconds (286.16 work units)\nOptimal objective  1.053830552e+11
\n\n
Primal simplex reoptimization started.\nITER      DEGITER(%)  PFEAS       DFEAS       POBJ                  DOBJ                  TIME\n0         0.00        0.00e+00    NA          1.053830552479e+11    NA                    0.01    \n162       99.39       0.00e+00    NA          1.053830552479e+11    NA                    0.05    \nPrimal simplex reoptimization terminated. Time: 0.05    \nSimplex reoptimization terminated. Time: 0.07    \nBasis identification terminated. Time: 0.69\nOptimizer terminated. Time: 9.71    
\n

You can reproduce my results use the following scripts.

\n
git clone -b PyOptInterface https://github.com/PREP-NexT/PREP-SHOT.git\ncd PREP-SHOT\nconda env create -f prep-shot.yml\nconda activate prep-shot\npython run.py
\n

You can modify the solving configuration in the solve_parameters section of config.json.

\n

BTW, Mosek can quickly solve this example than Gurobi.
\n 
\nDo you have any idea for exceptions above?

\n

Thank you very much!

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

Thank you for spotting a bug in HiGHS interface. I ignored the constant term in linear expression when adding linear constraint.
\nThe fix is pushed at 419cecb
\nI will release a new version soon.

","upvoteCount":1,"url":"https://github.com/metab0t/PyOptInterface/discussions/15#discussioncomment-9912668"}}}

Solving exception of Highs solver #15

Answered by metab0t
Zhanwei-Liu asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for spotting a bug in HiGHS interface. I ignored the constant term in linear expression when adding linear constraint.
The fix is pushed at 419cecb
I will release a new version soon.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Zhanwei-Liu
Comment options

@Zhanwei-Liu
Comment options

@Zhanwei-Liu
Comment options

Comment options

You must be logged in to vote
1 reply
@Zhanwei-Liu
Comment options

Answer selected by Zhanwei-Liu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants