Overview

CP Optimizer uses constructive search strategies to find a solution to a constraint programming problem. While the built-in algorithm will generally be sufficient, it may be helpful for you to know about the other algorithms in the case that you need to tune the optimizer.

CP Optimizer provides a number of search strategies for you to use. While the built-in algorithm will generally be sufficient, it may be helpful for you to know about the other algorithms in the case that you need to tune the optimizer.

In the C++ API of CP Optimizer, you use the class IloCP, which is a subclass of IloAlgorithm, to execute and control the search. The constructor for IloCP takes an IloModel as its argument. As with the environment, once you are finished with the optimizer, you call the method IloCP::end to reclaim the memory used by the optimizer.

In the Java™ API of CP Optimizer, you use the class IloCP to execute and control the search.

Likewise, in the C# API of CP Optimizer, you use the class CP to execute and control the search to find a solution to a problem expressed in a model.

Note:

CP optimizer

The class IloCP in the C++ API and the Java API and the class CP in the C# API can be used to employ different algorithms for solving problems modeled with Concert Technology modeling classes.

An object of this class is sometimes referred to as the optimizer.