Turned A (for all/for each) Symbol

Problems with modeling
Post Reply
marape
User
User
Posts: 1
Joined: 8 months ago

Turned A (for all/for each) Symbol

Post by marape » 8 months ago

Hello everyone,

I am building the last constraint of my optimisation model.
I want each element of my F(n) variable to be lower than an equation but it seems like I cannot include the 'for each' symbol

Sets
n all foods
/
$include %primary%foods.txt
/
Parameter
F0(n) food units at time 0
/
$include %primary%units.txt
/;

Variables
F(n) number of food units
Positive Variable F;
F.L(n) = F0(n);
Equations
Eq_minimumvar minimum amount
Eq_minimumvar.. F(n) =g=((F0(n)-((0.0099)*F0(n)))); -> with this equation I want to say that:
F(n1) =g=((F0(n1)-((0.0099)*F0(n1))))
F(n2) =g=((F0(n2)-((0.0099)*F0(n2))))
F(n3) =g=((F0(n3)-((0.0099)*F0(n3)))) etc.
for each n element.

Anyone could help?

Thanks in advance!
Mara

Post Reply