MATLAB Answers

Please help me to write the code of this constraint with optimproblem format 😔🙏

7 ビュー (過去 30 日間)
S AsZ
S AsZ 2019 年 12 月 1 日
Edited: S AsZ 2019 年 12 月 2 日
I want to add this constraint to my model but I don't know how can I write the code of this constraint.
My model is exist here
Can anyone help me please? 🙏
k = 15;
j = 2;
r = 6;
rprim = r;
vjk = 1 + 3*rand(j,k);
ujrrprim = 1 + 10*rand(j,r,rprim);
zjkr = optimvar('zjkr',j,k,r,'LowerBound',0);
I mean rprim is r'.

  0 件のコメント

サインイン to comment.

採用された回答

Alan Weiss
Alan Weiss 2019 年 12 月 2 日
constr = sum((zjkr.*ujrrprim)./(1-vjk),'all') == sum(zjkr,'all');
I am not sure that the right-hand side of what I wrote is the same as what you wrote, because your formulation does not make sense to me, so I wrote what I understood to be correct.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

  1 件のコメント

S AsZ
S AsZ 2019 年 12 月 2 日
Thank you so much 🌺🌺🌺🌺🌺🌺🌺🌺

サインイン to comment.

More Answers (0)

サインイン してこの質問に回答します。

製品


リリース

R2019b

Translated by