ILOG CPLEX .NET Reference Manual

IMPModeler.Delete Method (ICopyable)

Deletes an object from a model.

void Delete(
   ICopyable obj
);

Parameters

obj
The modeling object to be deleted from the invoking model.

Remarks

After you call this method, the modeling object obj is no longer in the model. If the modeling object is referenced multiple times in a model (for example, a variable used by multiple constraints), then that object is removed from all places. In particular, when you delete a variable from a model, the variable is removed from all the other modeling objects in the model. Modeling objects that are variables are not of type IAddable. In fact, the type of the removed object is ICopyable, a common base interface of both IAddable and INumVar.

See Also

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