limits of Optimization variable can be another variable in problem based optimization?
6 次查看(过去 30 天)
显示 更早的评论
I have optimization variable named PbattV1 in problem based optimization
Pmax1=10;
PbattV1 = optimvar('PbattV1',N,'LowerBound',0,'UpperBound',Pmax1);
As per optimvar help, Pmax1 (UpperBound) should be scalar. Now i want to change Pmax1= 10*a
where 'a' is another variable 0<a<1, is it possible to do it in problem based optimization and define 'a ' is a nother optimal variable ?
1 个评论
Matt J
2022-8-9
As per optimvar help, Pmax1 (UpperBound) should be scalar
No, it doesn't have to be a scalar. It must be a constant, however.
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!