Hi all,
It is a classic hydro power plant in a wholesale market problem. The objective is maximized income
I have a variable Reservoir_level(i) to control the level within the reservoir limits. I can do this!
822.5 meters < reservoir_level(i) < 824 meters
What I can’t do is limit the reservoir level to a value (823.2 meters) on every hour 8 of (all) my dataset (tabela i ‘hour’)=8
I’ve tried something like: eq12(i).. reservoir_level (i $(tabela(i,’hour’) eq 8)) =L=823.2 ;
It did work
Thanks
Regards
(This table has 30 days X 24 hours entries)
PARAMETER
TABLE tabela(i,j)
hour DA_price
P1 1 29.67
P2 2 25.61
P3 3 24.03
P4 4 23.11
P5 5 23.09
P6 6 25.70
P7 7 31.06
P8 8 29.61
P9 9 31.20
P10 10 35.48
P11 11 35.00
P12 12 35.30
P13 13 35.00
P14 14 35.70
P15 15 34.89
P16 16 30.71
P17 17 43.00
P18 18 54.00
--- --- ---
Partial Hydro constraint
Re: Partial Hydro constraint
You would want this equation to hold based on your condition. The correct place to use if condition is after the equation name. Something like the following should work.
eq12(i)$(tabela(i,’hour’) eq 8).. reservoir_level (i) =L=823.2 ;
- Atharv
eq12(i)$(tabela(i,’hour’) eq 8).. reservoir_level (i) =L=823.2 ;
- Atharv
-
- User
- Posts: 18
- Joined: 3 years ago
Re: Partial Hydro constraint
It worked !!!
Thanks
Thanks