Sum of Optimization Variables NOT working
이전 댓글 표시
Hi, I am trying to find the sum of an optimization variable. However I am getting no output when the optimization variable contains quadratic terms. For exmaple, if I try to find the sum of an optimization array containing terms such as:
6.19*power(1, 'P_1') + 17.26*power(1, 'P_2') + 16.6*power(1, 'P_3') + 16.5*power(1, 'P_4') + 19.7*power(1, 'P_5') ...
I am able to find the sum.
However, when the array contains terms such as:
0.00048*power(1, 'P_1')^2 + 0.00031*power(1, 'P_2')^2 + 0.002*power(1, 'P_3')^2 + 0.00211*power(1, 'P_4')^2 + 0.00398*power(1, 'P_5')^2 + .........
And I attempt to find the sum, I dont get an output. Neither do I get an error message. The "ans" variable is empty.
Any help is greatly appreciated.
댓글 수: 6
Walter Roberson
2020년 1월 30일
Could you post some sample code?
Micah Mungal
2020년 1월 31일
Walter Roberson
2020년 1월 31일
When you talk about getting no output, is that from the call to cplexmiqp()? That is a third party toolbox from IBM.
Micah Mungal
2020년 1월 31일
Walter Roberson
2020년 1월 31일
편집: Walter Roberson
2020년 1월 31일
Which MATLAB release are you using?
We might need a copy of the xlsx files, just in case the problem is data-specific somehow.
Micah Mungal
2020년 1월 31일
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Choose a Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
