Nutrition And Operational Research
This application calculates the most inexpensive mix of available foods which satisfy infant (0 – 24 months) nutritional needs. The application uses the “Simplex Algorithm” to calculate the food mix and is written in FoxPro
Available Foods
Objectives
Executing Simplex Algorithm
Execute the Simplex Algorithm
Let her rip. The tables is rotated and each line and column calculated and the table sorted. This could take several hundred reiterations.
The Trick
The Constraints file directs the Nutrition program because it contains information necessary for comparing the nutrients of an Available Foods to those fixed by the Objectives.
Storing information in the Constraints file permits the manipulation (adding, modifying, deleting) of the data before executing the Simplex Algorithm. For example, a record could be added which establishes a percentage of a food (i.e. >10 % sugar) to be included. This causes a food to become an objective.
Nutrients could be excluded from the calculation if the amount of the nutrient in a food is unknown. A negative value for a nutrient (either in the Available foods or Objective files) indicates that the value is unknown and that the nutrient can not be considered in the calculation.
For example, one record contains :
CODE_CONS 

NOM_CONS 

TEXT_CONS 

VAR_OBJET 

VAR_DISPON 

INF_EQ_SUP 

ACTIVE 

LIST_OPT 

VALUE_CONS 

INIT_LEG 

CONV_CALC 

DIVIDE_100 

TAUX_PERT 

TENEUR_EST 

PER_SATIS 

RPT_TEXT 

TEXT_CONSE 

RPT_TEXTE 
