I am not seeing any error when I run CPLEX and Gurobi on your model and data. The log output is copied below. I suggest checking the versions that are being used, with the following commands which will produce output as shown:
ampl: shell "cplex -v";
AMPL/CPLEX 12.6.2.0 (Microsoft XP64, icl 10.1.029), driver(20151005), ASL(20151005)
...
ampl: shell "gurobi -v";
Gurobi 6.0.4 (Microsoft XP64, icl 10.1.029), driver(20151004), ASL(20151005)
The strings like "20151005" represent dates in yyyymmdd form. If you see earlier dates then you will need to download the latest versions. Otherwise please add these commands to your script, run it again, and send us the complete output.
Bob Fourer
am...@googlegroups.com
/////// CPLEX
sw: ampl
ampl: model linear_reg_epsilon.txt
ampl: data param_diabetes_1.txt
ampl: option solver cplex;
ampl: option cplex_options 'mipdisplay 2 mipinterval 100';
ampl: solve;
CPLEX
12.6.2.0: mipdisplay 2
mipinterval 100
Found incumbent of value 0.954353 after 0.00 sec. (0.00 ticks)
Reduced MIQP has 30 rows, 31 columns, and 80 nonzeros.
Reduced MIQP has 20 binaries, 0 generals, 0 SOSs, and 0 indicators.
Reduced MIQP objective Q matrix has 121 nonzeros.
Probing time = 0.00 sec. (0.01 ticks)
Reduced MIQP has 30 rows, 31 columns, and 80 nonzeros.
Reduced MIQP has 20 binaries, 0 generals, 0 SOSs, and 0 indicators.
Reduced MIQP objective Q matrix has 121 nonzeros.
Probing time = 0.00 sec. (0.01 ticks)
Clique table members: 10.
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 4 threads.
Root relaxation solution time = 0.02 sec. (0.48 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
* 0+ 0 0.9544 ---
0 0 0.4839 11 0.9544 0.4839 10 49.29%
* 0+ 0 0.5371 0.4839 9.90%
0 2 0.4839 11 0.5371 0.4839 10 9.90%
Elapsed time = 0.03 sec. (1.59 ticks, tree = 0.00 MB)
* 30 17 integral 0 0.5358 0.4890 69 8.73%
* 31 16 integral 0 0.5357 0.4890 71 8.71%
* 47 24 integral 0 0.5271 0.4894 111 7.16%
* 60 26 integral 0 0.4911 0.4894 164 0.36%
* 70 17 integral 0 0.4903 0.4894 196 0.19%
Root node processing (before b&c):
Real time = 0.03 sec. (1.54 ticks)
Parallel b&c, 4 threads:
Real time = 0.03 sec. (1.31 ticks)
Sync time (average) = 0.01 sec.
Wait time (average) = 0.02 sec.
------------
Total (root+branch&cut) = 0.06 sec. (2.85 ticks)
CPLEX
12.6.2.0: optimal integer solution; objective 0.4903069048
227 MIP simplex iterations
81 branch-and-bound nodes
No basis.
/////// Gurobi
ampl: reset;
ampl: model linear_reg_epsilon.txt
ampl: data param_diabetes_1.txt
ampl: option solver gurobi;
ampl: option gurobi_options 'outlev 1';
ampl: solve;
Gurobi 6.0.4: outlev 1
Optimize a model with 30 rows, 31 columns and 80 nonzeros
Model has 66 quadratic objective terms
Coefficient statistics:
Matrix range [2e-01, 2e+00]
Objective range [6e-02, 1e+00]
Bounds range [1e+00, 1e+00]
RHS range [1e+00, 1e+00]
Found heuristic solution: objective 4e+18
Presolve time: 0.00s
Presolved: 30 rows, 31 columns, 80 nonzeros
Presolved model has 66 quadratic objective terms
Variable types: 11 continuous, 20 integer (20 binary)
Root relaxation: objective 4.839447e-01, 54 iterations, 0.00 seconds
Nodes | Current Node | Objective Bounds | Work
Expl Unexpl | Obj Depth IntInf | Incumbent BestBd Gap | It/Node Time
0 0 0.48394 0 11 4.0000e+18 0.48394 100% - 0s
H 0 0 0.5603635 0.48394 13.6% - 0s
H 0 0 0.5513407 0.48394 12.2% - 0s
H 0 0 0.4903069 0.48394 1.30% - 0s
0 0 0.48997 0 4 0.49031 0.48997 0.07% - 0s
Explored 0 nodes (76 simplex iterations) in 0.02 seconds
Thread count was 2 (of 4 available processors)
Optimal solution found (tolerance 1.00e-04)
Best objective 4.903069047903e-01, best bound 4.903069047903e-01, gap 0.0%
Optimize a model with 30 rows, 31 columns and 80 nonzeros
Model has 66 quadratic objective terms
Coefficient statistics:
Matrix range [2e-01, 2e+00]
Objective range [6e-02, 1e+00]
Bounds range [1e+00, 1e+00]
RHS range [1e+00, 1e+00]
Iteration Objective Primal Inf. Dual Inf. Time
0 9.5435334e-01 0.000000e+00 3.079401e+00 0s
18 4.9030690e-01 0.000000e+00 0.000000e+00 0s
Solved in 18 iterations and 0.00 seconds
Optimal objective 4.903069048e-01
Gurobi 6.0.4: optimal solution; objective 0.4903069048
76 simplex iterations
plus 18 simplex iterations for intbasis