I need an optimvar to be zero when another optimvar is zero
이전 댓글 표시
I have a problem with three varibles:
x = optimvar('x',NumSitiPot,NumSitiUtenti,'Type','integer','LowerBound',0,'UpperBound',1);
y = optimvar('y',NumSitiPot,'Type','integer','LowerBound',0,'UpperBound',1);
w = optimvar('w',NumSitiPot,NumSitiUtenti,'LowerBound',zeros(NumSitiPot,NumSitiUtenti),'UpperBound',ones(NumSitiPot,NumSitiUtenti));
and I need w(i, j) to be zero when x(i, j) is zero
답변 (1개)
Impose the constraint w<=x.
카테고리
도움말 센터 및 File Exchange에서 Simulink Design Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!