Recognizing parameters that differ
Access procedures differ between the C, C++, and Java APIs in these parameters.
This table contains a list of parameters for which access procedures differ between the C, C++, and Java APIs. The complete list of parameters is available in the reference manual, Parameters of CPLEX.
Names of classes, methods, and symbolic constants in the C#.NET API correspond very closely to those in the Java API with these systematic exceptions:
-
In the Java API, the names of classes begin with the prefix Ilo, whereas in C#.NET they do not.
-
In the Java API, the names of methods conventionally begin with a lowercase letter, for example,
addCols, whereas in the C#.NET API, the names of methods conventionally begin with an uppercase (that is, capital) letter, for example,AddColsaccording to Microsoft practice.
| Purpose | Java API | C++ API | C API |
|---|---|---|---|
| Turns on data consistency checking. | ---- | ---- | data consistency checking and modeling assistance: CPX_PARAM_DATACHECK |
| Sets method for linear optimization. | IloCplex. setParam (IloCplex.IntParam. RootAlg) | IloCplex:: setParam (IloCplex::RootAlg) | algorithm for continuous linear problems: CPX_PARAM_LPMETHOD |
| Sets method for quadratic optimization. | IloCplex. setParam (IloCplex.IntParam. RootAlg) | IloCplex:: setParam (IloCplex::RootAlg) | algorithm for continuous quadratic optimization: CPX_PARAM_QPMETHOD |
| Turns on use of MIP priority orders. | Use IloCplex. delPriorities and IloCplex. delDirection | Use IloCplex:: delPriorities and IloCplex:: delDirections | MIP priority order switch: CPX_PARAM_MIPORDIND |
| Determines whether messages are displayed on the screen. | Use IloCplex. setOut | Use IloAlgorithm:: out. IloCplex derives from IloAlgorithm and thus inherits this method. | messages to screen switch: CPX_PARAM_SCRIND |
| Sets MIP starting LP algorithm. | IloCplex. setParam (IloCplex.IntParam. RootAlg) | IloCplex:: setParam (IloCplex::RootAlg) | algorithm for initial MIP relaxation: CPX_PARAM_STARTALG |
| Sets MIP subproblem LP algorithm. | IloCplex. setParam (IloCplex.IntParam. NodeAlg) | IloCplex:: setParam (IloCplex::NodeAlg) | MIP subproblem algorithm: CPX_PARAM_SUBALG |