Excuse me, how can we solve this problem?

I add constraints like the following to an otherwise well-functioning model. And then the following question arises, I don’t know why, is there something wrong with my constraint?

This new addition to the model code, I think is likely to cause the above problems?

Here are the corresponding additional constraints
image
image
image


image

Hello someone can answer the following

Please see the reply in this thread. Also, to get the best response, try use only one thread for all of your questions on a particular topic.

To “see details” as mentioned in the error message, you’ll need to set

option ipopt_options "halt_on_ampl_error yes";

or, if you are already setting an ipopt_options string, add halt_on_ampl_error yes to it.