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

Antworten (1)

Matt J
Matt J am 17 Jan. 2023
Bearbeitet: Matt J am 17 Jan. 2023

0 Stimmen

Impose the constraint w<=x.

Kategorien

Mehr zu Simulink Design Optimization finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 17 Jan. 2023

Bearbeitet:

am 17 Jan. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by