Originally posted by: SystemAdmin
[prubin said:]
I seem to have misunderstood. You're saying that you use a separate call to CPLEX's solve() method at each node of a tree that you (not CPLEX) build? In that case, it's a question of how you are handling your node models and whether you want to permanently delete a column from every model it's in or not.
The easiest answer is to invoke the end() method on the variable you want to delete. If it's a member of an IloNumVarArray, don't invoke end() on the array, but rather invoke it on the array entry (e.g., myVarArray[5].end()). That will irreversibly eliminate the variable from any and all models containing it.
If you have a single variable instance that belongs to more than one model, and you want to delete it from one model but not from others, use the IloModel::remove() method. You invoke that method on the model and feed it the variable as an argument.
/Paul
#CPLEXOptimizers#DecisionOptimization