The model is created by reading it from the file specified as the first command line argument argv[1]
. This is done using the method
importModel
of an IloCplex
object. Here the IloCplex
object is used as a model reader rather than an optimizer. Calling importModel
does not extract the model to the invoking cplex
object. This must be done later by a call to cplex.extract(model)
. The objects obj
, var
, and rng
are passed to importModel
so that later on when results are queried the variables will be accessible.