我自己找不到答案,因此我问你。我试图根据两个不同的价格范围修改输入负载。它很顺利我收到关于nload的答案,但是当找到最大值时它不起作用。我甚至用数字替换了smax,但输出的答案很奇怪......
Con3(d,hpd).. ndload(d,hpd) =E= odload(d,hpd)*(1+sum(hpd1,PRICE_EL(hpd,hpd1)*(P_H(hpd1)-PH_OLD)/PH_OLD));
Con4(hpd)$((ord(hpd)>15)and(ord(hpd)<23)).. P_H(hpd) =E= PHP;
Con5(hpd)$((ord(hpd)<16)or(ord(hpd)>22)).. P_H(hpd) =E= PLP;
Con6.. E_NEW =E= sum((d,hpd),ndload(d,hpd)) ;;
Con7.. LF_NEW =E= sum(d,NDLF(d))/1;
Con8(d).. NDLF(d) =E= sum(hpd,ndload(d,hpd))/(smax(hpd,ndload(d,hpd))*24);