Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

constraint in optimization problem exceeded? why?

1 visualización (últimos 30 días)
sensation
sensation el 5 de Jul. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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!

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by