Selecting the optimizer

The sample provides a command line argument for the application user to select an optimizer.

The switch statement controlled by the second command line argument selects the optimizer. A user of the application specifies the optimizer by means of a CPLEX parameter. In the sample, a call to setParam(IloCplex::RootAlg, alg) specifies the selected optimizer as an instance of IloCplex::Algorithm.