I trying to find optimum behavior in order to achieve greatest reward of this following formula. The program is running, but the output is the same as the input which means something is wrong with the code.
im trying to define price elasticity, where I need to find optimium price tariffs during peak and low peak hours, which are defined specific hours of the day. High peak is 16-23 oclock and low peak is the rest of hours. My question is it possible to define an if statement in the constraint?
Con4(hpd)$(if(ord(hpd)>15)and(ord(hpd)<23)).. P_H(hpd) =E= PHP;
Con5(hpd)$((ord(hpd)<16)and(ord(hpd)>22)).. P_H(hpd) =E= PLP;
All best,