필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Optimization constraint not met

조회 수: 1 (최근 30일)
Michael-Allan Millar
Michael-Allan Millar 2019년 8월 5일
마감: Michael-Allan Millar 2019년 8월 12일
Hey
New to matlab and trying to model a hot water storage tank that buys electricity when the price is low and uses it later to meet the demand. So in a perfect scenario 100% of the demand would be stored or purchased when the cost is low. The heater can produce Q_hph, which can either be sent to meet demand Q_hphj or it can be sent to the tank Q_teshin. Q_hph can be greater than the demand (Q_demh) but Q_demh==Q_hphj+Q_teshout, where Q_teshout is what leaves the tank.
When I run the optimization, Q_hph always returns 0 and Q_teshout=Q_demh, which shouldn't be the case without first having a value for Q_teshin.
Thanks in advance for any help!
Michael
  댓글 수: 2
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 8월 8일
In the code which you have provided you did not declare the variable ‘i’. Provide the correct declaration.
Michael-Allan Millar
Michael-Allan Millar 2019년 8월 12일
thanks for that! Managed to get it :)

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by