Skip to content
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

EXACT: no bf solution found (use GLPK.factorize) #116

Closed
blegat opened this issue Sep 15, 2019 · 1 comment · Fixed by #117
Closed

EXACT: no bf solution found (use GLPK.factorize) #116

blegat opened this issue Sep 15, 2019 · 1 comment · Fixed by #117
Assignees

Comments

@blegat
Copy link
Member

blegat commented Sep 15, 2019

The following code,

using GLPK
optimizer = GLPK.Optimizer(method=GLPK.EXACT)
using MathOptInterface
const MOI = MathOptInterface
λ = MOI.add_variables(optimizer, 2)
l = MOI.SingleVariable.(λ)
MOI.add_constraint(optimizer, 1.0l[1] + 1.0l[2], MOI.EqualTo(1.0))
MOI.add_constraint(optimizer, -1.0l[1], MOI.EqualTo(-1.0))
MOI.add_constraint(optimizer, l[2], MOI.EqualTo(1.0))
MOI.optimize!(optimizer)

throws the error

ERROR: LoadError: GLPKError("no bf solution found (use GLPK.factorize)")
Stacktrace:
 [1] _bf_exists at /home/blegat/.julia/packages/GLPK/3DCgA/src/GLPK_checks.jl:271 [inlined]
 [2] macro expansion at /home/blegat/.julia/packages/GLPK/3DCgA/src/GLPK_checks.jl:53 [inlined]
 [3] get_bhead(::Prob, ::Int64) at /home/blegat/.julia/packages/GLPK/3DCgA/src/GLPK.jl:1619
 [4] get_infeasibility_ray(::GLPK.Optimizer, ::Array{Float64,1}) at /home/blegat/.julia/packages/GLPK/3DCgA/src/infeasibility_certificates.jl:49
 [5] optimize!(::GLPK.Optimizer) at /home/blegat/.julia/packages/GLPK/3DCgA/src/MOI_wrapper.jl:1334

See JuliaReach/LazySets.jl#1668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants