Skip to content

getsolution() returns infeasible solution for an unbounded problem #80

@blegat

Description

@blegat

On this problem,

Min y
s.t. x >= 1
loadproblem!(m, [1. 0.], [-Inf, -Inf], [Inf, Inf], [0., 1.], [1.], [Inf], :Min)

calling optimize! returns :Unbounded and then getsolution gives [6.93747e-310,0.0] which is not feasible since x = 6.93747e-310 < 1 (I am using Gurobi 6.51).

However, it seems that in Gurobi getsolution gives a feasible solution even for unbounded problem since for the following problem

Max x
s.t. x >= 1
x unbounded
y <= -1
loadproblem!(m, [1. 0.], [-Inf, -Inf], [Inf, -1], [1., 0.], [1], [Inf], :Max)

optimize! returns :Unbounded and then getsolution returns a feasible solution.

See JuliaOpt/MathProgBase.jl#144

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions