Info

This question is closed. Reopen it to edit or answer.

constraint in optimization problem exceeded? why?

2 views (last 30 days)
sensation
sensation on 5 Jul 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
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!

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!