'Constraints handle

I want to add and remove LP constraints multiple times. When removing constraints I need a handle. My question is, do I need to create a container and add and remove constraints from there as well, or is there a way of getting a handle to the current LP constraints on the fly?

// Get rows of the LP.

IloRangeArray rows(m_model.getEnv());

i.e. best way to make rows equal to the current constraints in the LP?

Or better yet, how to GetRows() which cplex has using Concert Technology?

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source