フィルターのクリア

Constraint problem in Problem-based optimization live task

1 回表示 (過去 30 日間)
yavier kristanto
yavier kristanto 2022 年 10 月 7 日
コメント済み: yavier kristanto 2022 年 10 月 24 日
hi, i'm trying to optimized an equation where the data used was in matrix. it is succesful when there is no constraint but the moment i apply a constraint it error as follows;
i saw one similar problem and was suggested to use fcn2optimexpr, and it exist in the code of define problem objective but not in the define problem constraint, which i cant edit the code that came from the live task.
is there any solution on this? thankyou

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 10 月 7 日
Notice that when you assign to problem.Constraints, you are asking to execute constraintFcn with those parameters, and the constraint that should be stored into problem.Constraints is whatever is returned by the constraintFcn.
  3 件のコメント
Walter Roberson
Walter Roberson 2022 年 10 月 7 日
I have never used the Live Editor task for optimization, sorry.
yavier kristanto
yavier kristanto 2022 年 10 月 24 日
no problem, thankyou.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by