Hi, i have found the reason behind infeasibility, there were corrections to be made in one of the constraint. Thank you for helping me. I need further assistance on this, I will display my project here on what i have done.
- I have declare the ingredients and the foods lists.
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/ffca83ce-b32d-4344-b6a3-9d209fb05a13.png)
- The sodium content is of the food, not of the ingredient. After declaring the ingredients, i am connecting the ingredients with the food that it belongs to (in parameter called as recipe):
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/3e5078ef-f16c-4b4c-bbf0-524db9738101.png)
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/7f88fc6e-e8ff-45aa-8b67-0cb6bbbf34a9.png)
Simple example, bread slice the ingredient not much, so its just bread slice. For tuna sandwich it is bread slice, tuna and mayonnaise i have tick across and i thought AIMMS can read the ingredients as the subset of the respective foods.
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/3b93bb5f-e9b1-4545-bb69-890a6fcb52c8.png)
I find it somehow correct by the way AIMMS show this.
- Linking with the constraint
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/5276d093-34fc-4048-8bcf-79be1cfc0ac0.png)
Callback the parameter “recipe” in one of the constraint as i am using Linear programming model to solve this problem. And the decision variable X includes (days, s-meals, food, ingredients, patients).
- The result im expecting should be somehow like below when i extract from AIMMS for respective patients:
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/9b2781d2-b73e-4366-a4ca-ad83e89dc708.png)
- But what i obtained now is as per below:
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/bd400b08-c4ce-4a02-ab52-240286402d87.png)
Question: How come AIMMS cannot read the connected ingredients to the food it belongs?