# Excuse me, how can we solve this problem?

**URL:** <https://discuss.ampl.com/t/excuse-me-how-can-we-solve-this-problem/917>\
**Category:** Support\
**Created:** [January 22, 2024, 9:06am UTC](https://discuss.ampl.com/t/excuse-me-how-can-we-solve-this-problem/917 "2024-01-22T09:06:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liangzilu\_liangzilu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/liangzilu_liangzilu/32/408_2.png) [@liangzilu\_liangzilu](https://discuss.ampl.com/u/liangzilu_liangzilu)\
**Post date:** [January 22, 2024, 9:06am UTC](https://discuss.ampl.com/t/excuse-me-how-can-we-solve-this-problem/917/1 "2024-01-22T09:06:52Z")

</div>

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?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/d2ec0c1c2f909d507ad81658f2ec9a5d57dc55d8.png)

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

 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/b77756a46ebda63ad3f6528425f1ae212fc9f682.png)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/34ea7a50dc7accb91e12d06544758bb28deaedc4.png)

Here are the corresponding additional constraints  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/d010b8eae79b001758098ea5dfc5be6287fb33ca.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/7fc0424f3f91bf9bd025bcad09eead199923528a.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/24f88b764a9f822e4629dc87d6f4fdc37227ca15.png)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/2bce58f56bbaec97f320c1ad25aae405638f3427.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/740b2e323027a1393846bbc7b4b15925634114ed.png)

---

<div class="post-metadata">

**Author:** ![liangzilu\_liangzilu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/liangzilu_liangzilu/32/408_2.png) [@liangzilu\_liangzilu](https://discuss.ampl.com/u/liangzilu_liangzilu)\
**Post date:** [January 23, 2024, 12:47am UTC](https://discuss.ampl.com/t/excuse-me-how-can-we-solve-this-problem/917/2 "2024-01-23T00:47:32Z")

</div>

Hello someone can answer the following

---

<div class="post-metadata">

**Author:** ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)\
**Post date:** [January 24, 2024, 5:12pm UTC](https://discuss.ampl.com/t/excuse-me-how-can-we-solve-this-problem/917/3 "2024-01-24T17:12:54Z")

</div>

Please see the reply in [this thread](https://discuss.ampl.com/t/exp-850-how-do-i-solve-this-problem/918/2). 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

```auto
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.
