Error in setting UpperBound in optimvar
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 28 Sep. 2018
maxGenConst would need to be a nHours by plants numeric array . Using a table object there is not permitted.
George B
am 28 Sep. 2018
George B
am 28 Sep. 2018
Micah Mungal
am 21 Mai 2020
Do you have the code for the Script 9 example. I cant find it.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical 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!