Originally posted by: EdKlotz
First, please identify which of CPLEX's numerous APIs you are using when asking a question like this.
You appear to be using the CPLEX class object in the MATLAB API. It does not have a corresponding routine to remove quadratic constraints. I suspect this was because the design of the Cplex class in the MATLAB API wasn't well suited to supporting a separate set of indices for deleting quadratic constraints in addition to the ones used for deleting rows in the delRows routine you mentioned.
What are you trying to do that makes you want to delete quadratic constraints. One possible approach would be to maintain a separate copy of the model with only the linear constraints, then add the quadratic constraints that you don't want to remove to it.
#CPLEXOptimizers#DecisionOptimization