Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
constraint in optimization problem exceeded? why?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!