Skip to main content

Hi, I'm Anne here. Im tackling a problem on producing a food menu fulfilling optimal salt intake for every day. The result will be in table form. I have obtained the result on this problem, but now the new problem Is I was supposed to obtain a new table where it shows all the food for all meals (breakfast, lunch, tea, dinner) and for 5 type of patients (normal, hypertension, heart failure, Chronic kidney disease, diabetes) for all 7 days in a week and I'm detail the table should display each food's recipe in the end result. 

I already declare set of ingredients, and in parameter select the ingredients for the food it belongs to, add the new index set in all areas of constraints and at the decision variables and I run. But it shows main execution could not provide integer solution and it's infeasible. What else I should be correcting?

Note: Solving using linear programming model in AIMMS.

Hi ​@Anne, if you can, share your project with us! 

 

To analyse infeasibility you can always use the Math Inspector (https://aimms.com/story/easy-analysis-and-debugging-with-aimms-math-program-inspector/). 


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.

 

  1. I have declare the ingredients and the foods lists.
  1. 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):

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.

I find it somehow correct by the way AIMMS show this.

  1. Linking with the constraint

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).

  1. The result im expecting should be somehow like below when i extract from AIMMS for respective patients: 
  1. But what i obtained now is as per below:

 

Question: How come AIMMS cannot read the connected ingredients to the food it belongs?


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator