Setting conditions for optimization variables
Ältere Kommentare anzeigen
We are now setting the conditions for the following optimization variables.
x = optimvar('x', 100, 'LowerBound', 0)
showbounds(x)
Then,
0<=x(1)
0<=x(2)
・・・
0<=x(100).
How do we write the code to add the following condition?
We want to add an upperbond=0 in the interval 1 < x < 10.
0<=x(1)<=0
0<=x(2)<=0
・・・
0<=x(10)<=0
0<=x(11)
0<=x(12)
・・・
0<=x(100)
1 Kommentar
A.O.
am 22 Aug. 2022
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Problem-Based Optimization Setup finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!