-
Notifications
You must be signed in to change notification settings - Fork 16
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
Handle INFEASIBLE_POINT statuses #97
Comments
Ah very interesting: julia> using JuMP, HiGHS
julia> model = read_from_file("/Users/Oscar/Downloads/failed_model.mof.json")
A JuMP Model
Minimization problem with:
Variables: 984
Objective function type: QuadExpr
`AffExpr`-in-`MathOptInterface.EqualTo{Float64}`: 840 constraints
`AffExpr`-in-`MathOptInterface.GreaterThan{Float64}`: 984 constraints
`AffExpr`-in-`MathOptInterface.LessThan{Float64}`: 984 constraints
`AffExpr`-in-`MathOptInterface.Interval{Float64}`: 96 constraints
`VariableRef`-in-`MathOptInterface.GreaterThan{Float64}`: 216 constraints
`VariableRef`-in-`MathOptInterface.LessThan{Float64}`: 216 constraints
Model mode: AUTOMATIC
CachingOptimizer state: NO_OPTIMIZER
Solver name: No optimizer attached.
julia> set_optimizer(model, HiGHS.Optimizer)
julia> optimize!(model)
0, 150795.719209, 41, 0.018099, 0.000609, 388, 0.000000, 0.000000
1000, 144677.302916, 65, 0.095258, 0.000520, 285, 0.000000, 0.002797
1370, 144677.302624, 65, 0.129061, 0.000320, 254, 0.000000, 0.002797
ERROR: QP solver claims optimality, but with num/sum/max primal(3/0.000319877/0.000142008) and dual(3/3319.88/3316.94) infeasibilities
Model status : Optimal
Simplex iterations: 488
QP ASM iterations: 1370
Objective value : 1.4467730262e+05
HiGHS run time : 0.13
julia> solution_summary(model)
* Solver : HiGHS
* Status
Termination status : OPTIMAL
Primal status : NO_SOLUTION
Dual status : NO_SOLUTION
Message from the solver:
"7"
* Candidate solution
Objective bound : 0.0
* Work counters
Solve time (sec) : 0.12938
Simplex iterations : 488
Barrier iterations : 0 |
So HiGHS reports Here's the MPS file: fail.mps.txt I'll report upstream. julia> p = Highs_create()
Ptr{Nothing} @0x00007ffbe3931200
julia> Highs_readModel(p, "fail.mps")
0
julia> Highs_run(p)
0, 149528.772276, 32, 0.014367, 0.000267, 385, 0.000000, 0.000000
1000, 142765.317106, 56, 0.082363, 0.000178, 281, 0.000000, 0.006892
1366, 142765.317106, 56, 0.116675, 0.000178, 237, 0.000000, 0.006892
ERROR: QP solver claims optimality, but with num/sum/max primal(2/0.000177869/8.89344e-05) and dual(2/3317.82/3316.94) infeasibilities
Model status : Optimal
Simplex iterations: 504
QP ASM iterations: 1366
Objective value : 1.4276531711e+05
HiGHS run time : 0.12
0
julia> Highs_getModelStatus(p)
7
julia> statusP = Ref{Cint}();
julia> Highs_getIntInfoValue(p, "primal_solution_status", statusP)
0
julia> statusP[]
1
julia> Highs_getIntInfoValue(p, "dual_solution_status", statusP)
0
julia> statusP[]
1
julia> Highs_destroy(p) |
@odow what isn't clear to me is why the model in HiGHS is reported as infeasible when ipopt can solve it properly |
A bug in the solver. |
I changed the title because we should handle the case here when the return is Lines 1580 to 1583 in efddaca
|
For the attached MOF file HiGH prints the following log to the REPL:
However, the return status from JuMP is
NO_SOLUTION
.The same problem in IPOPT has the following output:
and JuMP return the status that the primal status is
FEASIBLE_POINT
The text was updated successfully, but these errors were encountered: