Change the Problem Object

In analyzing a given mathematical program, you may make changes in a model and study their effect. As you make such changes, you must keep ILOG CPLEX informed about the modifications so that ILOG CPLEX can efficiently re-optimize your changed problem. Always use the problem modification routines from the Callable Library to make such changes and thus keep ILOG CPLEX informed. In other words, do not change a problem by altering the original data arrays and calling CPXcopylp() again. That tempting strategy usually will not make the best use of ILOG CPLEX. Instead, modify your problem by means of the problem modification routines.

For example, let's say a user has already solved a given problem and then changes the upper bound on a variable by means of an appropriate call to the Callable Library. ILOG CPLEX will then begin any further optimization from the previous optimal basis. If that basis is still optimal with respect to the new bound, then ILOG CPLEX will return that information without even needing to refactor the basis.


Previous Page: Optimize the Problem  Return to Top Next Page: Destroy the Problem Object