When I run the following Julia code:
using Gurobi
m = Gurobi.Model(Gurobi.Env(),"model")
Gurobi.read_model(m, "instance.mps")
Gurobi.set_dblattrarray!(m, "Start", 1, Gurobi.num_vars(m), [1.0e101,1.0e101,1.0e101,1.0e101,1.0e101,0.5,1.36922e-9])
Gurobi.optimize(m)
Gurobi 7.0.2 fails to solve the instance and reports:
Read MPS format model from file instance.mps
Reading time = 0.00 seconds
: 40 rows, 7 columns, 84 nonzeros
Optimize a model with 40 rows, 7 columns and 84 nonzeros
Variable types: 6 continuous, 1 integer (0 binary)
Coefficient statistics:
Matrix range [1e-04, 2e+01]
Objective range [1e+00, 1e+00]
Bounds range [0e+00, 0e+00]
RHS range [1e-04, 3e+01]
Presolve removed 14 rows and 2 columns
Presolve time: 0.00s
Presolved: 26 rows, 5 columns, 62 nonzeros
Loaded MIP start with objective -18.0013
Variable types: 4 continuous, 1 integer (0 binary)
Presolve removed 5 rows and 31 columns
Presolve: All rows and columns removed
Extra 3 simplex iterations after uncrush
Root relaxation: unbounded, 3 iterations, 0.00 seconds
Nodes | Current Node | Objective Bounds | Work
Expl Unexpl | Obj Depth IntInf | Incumbent BestBd Gap | It/Node Time
0 0 postponed 0 -18.00128 - - - 0s
Explored 0 nodes (3 simplex iterations) in 0.00 seconds
Thread count was 2 (of 2 available processors)
Solution count 1: -18.0013
Model is infeasible or unbounded
Best objective -1.800127892554e+01, best bound -, gap -
When I comment out the line calling set_dblattrarray!, then Gurobi is able to solve the instance and reports:
Read MPS format model from file instance.mps
Reading time = 0.00 seconds
: 40 rows, 7 columns, 84 nonzeros
Optimize a model with 40 rows, 7 columns and 84 nonzeros
Variable types: 6 continuous, 1 integer (0 binary)
Coefficient statistics:
Matrix range [1e-04, 2e+01]
Objective range [1e+00, 1e+00]
Bounds range [0e+00, 0e+00]
RHS range [1e-04, 3e+01]
Presolve removed 14 rows and 2 columns
Presolve time: 0.00s
Presolved: 26 rows, 5 columns, 62 nonzeros
Variable types: 4 continuous, 1 integer (0 binary)
Presolved: 5 rows, 31 columns, 67 nonzeros
Presolve removed 5 rows and 31 columns
Root relaxation: objective -1.808424e+01, 10 iterations, 0.00 seconds
Nodes | Current Node | Objective Bounds | Work
Expl Unexpl | Obj Depth IntInf | Incumbent BestBd Gap | It/Node Time
0 0 -18.08424 0 1 - -18.08424 - - 0s
H 0 0 -4.4060058 -18.08424 310% - 0s
H 0 0 -15.1382952 -18.08424 19.5% - 0s
0 0 -18.06591 0 1 -15.13830 -18.06591 19.3% - 0s
0 0 -18.03859 0 1 -15.13830 -18.03859 19.2% - 0s
H 0 0 -18.0012788 -18.03859 0.21% - 0s
* 0 0 0 -18.0012788 -18.00128 0.00% - 0s
Cutting planes:
Gomory: 1
MIR: 1
Explored 1 nodes (16 simplex iterations) in 0.00 seconds
Thread count was 2 (of 2 available processors)
Solution count 4: -18.0013 -18.0013 -15.1383 -4.40601
Pool objective bound -18.0013
Optimal solution found (tolerance 1.00e-04)
Best objective -1.800127879528e+01, best bound -1.800127879528e+01, gap 0.0000%
What could be happening here?