Not all implementations of Optimizer support deletion of variables or constraints. However, MOI.delete is used often in the tests, e.g. in linear1test.
Note that there is already the option TestConfig.modify_lhs but deletion is not guarded in a similar fashion.
Not all implementations of
Optimizersupport deletion of variables or constraints. However,MOI.deleteis used often in the tests, e.g. in linear1test.Note that there is already the option
TestConfig.modify_lhsbut deletion is not guarded in a similar fashion.