# \[AMPL 24563\] Constraint not being recognized by AMPL/KNitro

**URL:** <https://discuss.ampl.com/t/ampl-24563-constraint-not-being-recognized-by-ampl-knitro/411>\
**Category:** Google Group Mirror\
**Created:** [February 27, 2023, 4:39pm UTC](https://discuss.ampl.com/t/ampl-24563-constraint-not-being-recognized-by-ampl-knitro/411 "2023-02-27T16:39:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 3, 2023, 3:57am UTC](https://discuss.ampl.com/t/ampl-24563-constraint-not-being-recognized-by-ampl-knitro/411/2 "2023-03-03T03:57:15Z")

</div>

I tried out the AMPL statements that you show, with some made-up test data, but I did not observe the “0 constraints” that you are seeing. So, the error must be originating in some other part of your model and data. Some possibilities are that:

- CHOICE\_SETS is an empty set, due to some error in reading the data for it.
- Your constraint “effort\_constraint” is not being actually read by AMPL.

If you need more help, try replying with your complete model and data file uploaded. (Judging from the message “Substitution eliminates 1822104 variables,” your set “effort” may be very large; if so, it may be helpful to create a smaller data example for testing.)

---

_[View the full topic](https://discuss.ampl.com/t/ampl-24563-constraint-not-being-recognized-by-ampl-knitro/411)._
