Originally posted by: Jernej1
Hello,
the tuning tool suggested I should play with the CPX_PARAM_SUBMIPSTARTALG and CPX_PARAM_SUBMIPSUBALG parameters. As you can see from the linked documentation, the respective C++ class members are IloCplex::Param::MIP::Strategy::SubMIPStartAlg and IloCplex::Param::MIP::Strategy::SubMIPSubAlg . However setting them in C++ as shown in the example below, raises a compilation error.
test.cpp:11:20: error: 'SubMIPStartAlg' is not a member of 'IloCplex::Param::MIP::Strategy'
cplex.setParam(IloCplex::Param::MIP::Strategy::SubMIPStartAlg, CPX_ALG_PRIMAL);
^
test.cpp:12:20: error: 'SubMIPSubAlg' is not a member of 'IloCplex::Param::MIP::Strategy'
cplex.setParam(IloCplex::Param::MIP::Strategy::SubMIPSubAlg, CPX_ALG_PRIMAL);
I do not get this error if setting any other kind of parameter I tried so far. I am ussing the latest CPLEX version. Any reason why this happens?
#include <ilcplex/ilocplex.h>
int main(int argc, char **argv) {
IloEnv env;
IloModel model(env);
IloCplex cplex(model);
cplex.setParam(IloCplex::Param::MIP::Strategy::SubMIPStartAlg, CPX_ALG_PRIMAL);
cplex.setParam(IloCplex::Param::MIP::Strategy::SubMIPSubAlg, CPX_ALG_PRIMAL);
return 0;
}
#CPLEXOptimizers#DecisionOptimization