Parameters are manipulated using IloCplex.setParam()
. For example:
cplex.setParam(IloCplex.BooleanParam.PreInd, false); |
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.4, Constants in IloCplex.PrimalPricing for better maintainability of the code.
cplex.setParam(IloCplex.IntParam.PPriInd, IloCplex.PrimalPricing.Steep); |
Table 2.5 gives an overview of the classes defining constants for parameters.
Dynamic control of the solution process of MIPs is provided through goals or control callbacks. Goals and control callbacks are discussed for C++ in Chapter 9, More About Using ILOG CPLEX. The Java goals and callbacks are similar to the C++ versions. Goals and callbacks allow you to control the solution process when solving MIPs based on information generated during the solution process itself.