Constraints used but not applied (beginner)
古いコメントを表示
Hello,
I'm trying to find out answer of a problem which is having equation like mentioned below,
Now adding these contraints (1 and 2) into if-else is the only way to use them or is it good practice? while using the constraints after formula is kind of doubt whether these are applied to the formula or not or writing constraints in this way a good practice or not (specially 2nd constraints). Kindly let me know if you think there is better way or to improve the things. Thanks in advance
E_pv = npv * Apv * Iir(1 - 0:005(Ta((t) - 25)); %all the varibles have scalar values
R_ct=min(Energy_p, E_pv ); %Constraint 1
0 <= R_Pv <= (E_pv -R_ct); %Constraint 2
3 件のコメント
shane watson
2021 年 7 月 28 日
編集済み: shane watson
2021 年 7 月 28 日
Adam Danz
2021 年 7 月 28 日
@Walter Roberson's answer summarizes the issues well. I wonder if Ta() is a function or a non-scalar variable.
shane watson
2021 年 7 月 28 日
編集済み: shane watson
2021 年 7 月 28 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!