aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/linprog/cplex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/linprog/cplex.cpp')
-rw-r--r--native/src/linprog/cplex.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/linprog/cplex.cpp b/native/src/linprog/cplex.cpp
index 9be1e74..3706379 100644
--- a/native/src/linprog/cplex.cpp
+++ b/native/src/linprog/cplex.cpp
@@ -96,6 +96,9 @@ void CPLEXSolution::solve_model(unsigned int max_num_vars,
96 solver_costs.start(); 96 solver_costs.start();
97#endif 97#endif
98 98
99 // The primal solver seems to be slightly faster.
100 cplex.setParam(IloCplex::RootAlg, IloCplex::Primal);
101 cplex.setParam(IloCplex::PreDual, -1);
99 cplex.solve(); 102 cplex.solve();
100 103
101#if DEBUG_LP_OVERHEADS >= 3 104#if DEBUG_LP_OVERHEADS >= 3