Setting parameters
These methods and routines access and modify parameters that control various aspects of CPLEX behavior.
These methods and routines set parameters that control various aspects of CPLEX behavior; they also access current, default, and allowed values for parameters. For more information about parameters, see 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 |
|---|---|---|---|
| Recommends parameters to reset for improved performance | IloCplex. tuneParam | IloCplex:: tuneParam |
CPXXtuneparam and CPXtuneparam
|
| Changes a parameter of type double | IloCplex.setParam(ilog.cplex.IloCplex.DoubleParam, double) | IloCplex:: setParam |
CPXXsetdblparam and CPXsetdblparam
|
| Accesses a parameter of type double | IloCplex.getParam(ilog.cplex.IloCplex.DoubleParam) | IloCplex:: getParam |
CPXXgetdblparam and CPXgetdblparam
|
| Gets default value and range of parameter of type double | IloCplex. getMin, getMax, getDefault | IloCplex:: getMin, getMax, getDefault |
CPXXinfodblparam and CPXinfodblparam
|
| Changes parameter of type integer | IloCplex.setParam(ilog.cplex.IloCplex.IntParam, int) | IloCplex:: setParam |
CPXXsetintparam and CPXsetintparam
|
| Accesses parameter of type integer | IloCplex. getParam | IloCplex:: getParam |
CPXXgetintparam and CPXgetintparam
|
| Gets default value and range of parameter of type integer | IloCplex. getMin, getMax, getDefault | IloCplex:: getMin, getMax, getDefault |
CPXXinfointparam and CPXinfointparam
|
| Resets all parameters to their standard default values | IloCplex. setDefaults | IloCplex:: setDefaults |
CPXXsetdefaults and CPXsetdefaults
|
| Changes parameter of type string | IloCplex.setParam(ilog.cplex.IloCplex.StringParam, java.lang.String) | IloCplex:: setParam |
CPXXsetstrparam and CPXsetstrparam
|
| Accesses parameter of type string | IloCplex. getParam | IloCplex:: getParam |
CPXXgetstrparam and CPXgetstrparam
|
| Gets default value of parameter of type string | IloCplex. getDefault | IloCplex:: getDefault |
CPXXinfostrparam and CPXinfostrparam
|
| Sets value of delete mode. | IloCplex. setDeleteMode | IloCplex:: setDeleteMode |
CPXXpivotout and CPXpivotout
|
| Accesses setting for delete mode | IloCplex. getDeleteMode | IloCplex:: getDeleteMode | ---- |
| Accesses the number of a parameter from its name | ---- | ---- |
CPXXgetparamnum and CPXgetparamnum
|
| Accesses the name of a parameter from its number | ---- | ---- |
CPXXgetparamname and CPXgetparamname
|