Error in setting UpperBound in optimvar
이전 댓글 표시
I'm trying to implement this example:
when I get to this line:
power = optimvar('power',nHours,plants,'LowerBound',0,'UpperBound',maxGenConst);
I get the following error message: " _Error using optimvar (line 118) Error setting property 'UpperBound' of class 'optim.problemdef.OptimizationVariable': Value must be numeric."
The UpperBound variable maxGenConst is a 24x4 table containing numerical values. What is the problem here?
댓글 수: 4
Walter Roberson
2018년 9월 28일
maxGenConst would need to be a nHours by plants numeric array . Using a table object there is not permitted.
George B
2018년 9월 28일
George B
2018년 9월 28일
Micah Mungal
2020년 5월 21일
Do you have the code for the Script 9 example. I cant find it.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!