Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
constraint in optimization problem exceeded? why?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!