Correspondence of parameters between APIs
Certain specialized parameters of one API may not have an equivalent in another API.
Some parameters available for the C API are not supported as parameters for the object-oriented APIs or have a slightly different name there. In particular:
MIP callback switch between original model and reduced, presolved model
(CPX_PARAM_MIPCBREDLP), the parameter specifying whether to use the reduced or original model in MIP callbacks, has no equivalent in the object-oriented APIs (C++, Java, .NET), nor in the Python API.Logging output is controlled by a parameter in the C API (
CPX_PARAM_SCRIND), but when using the object-oriented APIs, you control logging by configuring the output channel:-
IloCplex::outin C++For example, to turn off output to the screen, use
cplex.setOut(env.getNullStream()) . -
IloCplex.outputin JavaFor example, to turn off output to the screen, use
cplex.setOut(null). -
Cplex.Outin .NETFor example, to turn off output to the screen, use
Cplex.SetOut(Null). -
cplex.set_results_streamin PythonFor example, to turn off output to the screen, use
cplex.set_results_stream(None).
-
The parameter
IloCplex::RootAlgin the C++ API corresponds to these parameters in the C API:algorithm for initial MIP relaxation:
CPX_PARAM_STARTALGalgorithm for continuous linear problems:
CPX_PARAM_LPMETHODalgorithm for continuous quadratic optimization:
CPX_PARAM_QPMETHOD
The parameter
IloCplex::NodeAlgin the C++ API corresponds to the parameter MIP subproblem algorithmCPX_PARAM_SUBALGin the C API.