> Languages and APIs > ILOG Concert Technology for Java Users > Controlling ILOG CPLEX Optimizers > Parameters |
Parameters |
INDEX PREVIOUS NEXT |
Parameters are manipulated by means of IloCplex.setParam
. For example:
cplex.setParam(IloCplex.BooleanParam.PreInd, false); |
sets the Boolean parameter PreInd
to false
, instructing ILOG CPLEX not to apply presolve before solving the problem.
Integer parameters often indicate a choice from a numbered list of possibilities, rather than a quantity. For example, the class IloCplex.PrimalPricing
defines constants with the integer parameters shown in Table 2.5, Constants in IloCplex.PrimalPricing for better maintainability of the code.
Thus, the suggested method for setting steepest-edge pricing for use with the primal simplex algorithm looks like this:
cplex.setParam(IloCplex.IntParam.PPriInd, IloCplex.PrimalPricing.Steep); |
Table 2.6 gives an overview of the classes defining constants for parameters.
Parameters can be queried with method IloCplex.getParam
and reset to their default settings with method IloCplex.setDefaults
. The minimum and maximum value to which an integer or double parameter can be set is queried with methods IloCplex.getMin
and IloCplex.getMax
, respectively. The default value of a parameter is obtained with IloCplex.getDefault
.
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |