There are actually several errors in your model and data:
Errors in the model:
Cost is an indexed parameter, but you have declared as an scalar parameter param cost;
, yo should rather use param cost{FOODS};
.
This happens with other parameters in your model.
You should not name parameters and constraints in the same way, so you have "proteins" as a parameter and also as a constraint.
Errors in the data: 4. In your data section, you are re-declaring parameters. Data section is to assign values rather than declaring new entities:
param calories{FOODS};
param proteins{FOODS};
param calcium{FOODS};
param vitaminA{FOODS};
param cost{FOODS};
All the previous lines in the data section shouldn't be there
param calcium :=
Bread 418
Meat 41