フィルターのクリア

Optimization Toolbox Defining Constraints

1 回表示 (過去 30 日間)
Azime Beyza Ari
Azime Beyza Ari 2022 年 3 月 23 日
編集済み: Torsten 2022 年 3 月 23 日
Hello Everyone,
I am using Genetic Algorithm Solver to solve maximization problem. I have several constraints and i looked through the documents and saw that while defining constrants to the solver a matrix and a vector is being used. My constraints are linear inequality constraints but the left sides have a summation operation. So here are my constraints;
Trying to write them in matrixes will be very hard for me since i am very new to matlab. Also, i do not know if they can be written in matrix form.
Any ideas on how can i write them?
thank you in advance,
beyza.

採用された回答

Torsten
Torsten 2022 年 3 月 23 日
編集済み: Torsten 2022 年 3 月 23 日
And better use "intlinprog" instead of the "ga" - solver if the above equations define your problem completely.
  1 件のコメント
Azime Beyza Ari
Azime Beyza Ari 2022 年 3 月 23 日
Thank you!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by