-
Notifications
You must be signed in to change notification settings - Fork 19
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
Segmentation fault in MILP computation #144
Comments
tosimplex uses omp threads which for some reason (we're investigating right now) clashes with julia gc (?!); as a workaround you can either julia> ENV["OMP_NUM_THREADS"] = 1
1
julia> using Polymake
polymake version 3.4
Copyright (c) 1997-2019
Ewgenij Gawrilow, Michael Joswig (TU Berlin)
https://polymake.org
This is free software licensed under GPL; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
julia> p = @pm Polytope.Polytope( :INEQUALITIES => [1 1 -1; -1 0 1; 7 -1 -1] )
type: Polytope<Rational>
INEQUALITIES
1 1 -1
-1 0 1
7 -1 -1
1 0 0
julia> obj = [0,-1,-1]
3-element Array{Int64,1}:
0
-1
-1
julia> intvar = [0,1,2]
3-element Array{Int64,1}:
0
1
2
julia> lp = @pm Polytope.MixedIntegerLinearProgram( LINEAR_OBJECTIVE = obj, INTEGER_VARIABLES = intvar)
type: MixedIntegerLinearProgram<Rational>
LINEAR_OBJECTIVE
0 -1 -1
INTEGER_VARIABLES
{0 1 2}
julia> p.MILP = lp
type: MixedIntegerLinearProgram<Rational>
LINEAR_OBJECTIVE
0 -1 -1
INTEGER_VARIABLES
{0 1 2}
julia> p.MILP.MINIMAL_VALUE
polymake: used package tosimplex
Dual simplex algorithm implemented by Thomas Opfer
-7
|
Thanks a lot for this quick workaround. |
a patch for this has been written in June 2018: |
a new pull already approved is pending: |
This is resolved with Julia 1.3 |
The following Polymake input follows some examples in polymake docs
and yields -7.
Using the syntax translation rules from the README of Polymake.jl,
I tried to do the same with Polymake.jl, as follows.
Here I get the following error message.
With help from Sebastian Gutsche, I tried the following variant.
Here I get a segmentation fault.
The text was updated successfully, but these errors were encountered: