hello, everyone!
I met some problems with the variable in the cvx.
I defined the variable, like this: variable x(5,1), and i have to limit the value of x, like x(1,1) = 10; x(5,1) = 100; But when i code this, it doesn’t work. So how can i assign the value of variable?
Equality constraints use ==
, not =
.
x(1) == 10
’
constrains x(1) to equal 10.
If that doesn’t resolve your confusion, please post a complete example, and tell us what exactly doesn’t work, and in what way.