Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

constraint in optimization problem exceeded? why?

조회 수: 2 (최근 30일)
sensation
sensation 2018년 7월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I have my optimization problem and one constraint is not taken into account. Any idea why? Thanks a lot!
%my constraint:
% minS <= Stor(t) <= maxS
% Stor(t) = s0+sum(inFlow(1:t))-sum(spill(1:t))-sum(turbine(1:t))%i optimize over spill and turbine
c(:,1) = init_s(:,1) + cumsum(inFlow(:,1)); %1 is the first case study since I have a loop for i=1 to M
b = [b;567100000-c; -170130000+c]; %5.6e+08 is max S; 170130000 is minS;
s = -*sparse(tril(ones(N)));
s = [s s];
A = [A;s; -s];
when I run my model and get S values where in majority of time steps S goes beyond 1.5e+09.
I would like to know, why my Smax defined in constraint is exceeded?
Thanks a lot!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by