ILOG CPLEX .NET Reference Manual

IMPModeler.Delete Method (ICopyable[], Int32, Int32)

Deletes the modeling objects in obj[start] through obj[start+num-1] from a model.

void Delete(
   ICopyable[] obj,
   int start,
   int num
);

Parameters

obj
An array containing the modeling objects to be deleted from the invoking model.
start
The index of the first modeling object in obj to be deleted from the invoking model.
num
The number of modeling objects in obj to be deleted from the invoking model.

Remarks

Modeling objects obj[start] through obj[start+num-1] are deleted from the invoking model. After you call this method, the deleted objects will no longer be in the model. If a modeling object is referenced multiple times in a model (for example, a variable used by multiple constraints), the object is removed from all places. Thus, when you delete variables from a model, they are removed from all other modeling objects in the model.

See Also

IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.Delete Overload List