How to define a constraint in MATLAB

1 回表示 (過去 30 日間)
kianmehr
kianmehr 2023 年 7 月 19 日
Hello
I have a mathematical model and I want to define the limit and the objective function and solve it with nsga2 algorithm, but I don't know how to define the limit, for example, I have a limit that I will upload a photo of, if possible, get the code
Q'PMp't=Decision variable
d'p'n't=parameter
p'=3
t=3
n'=4

回答 (1 件)

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2023 年 7 月 20 日
You will not easily get someone to code for you. Best way to get help is to try something and if it does not work or you have problems, then ask here. What I would say is that if you have a summation to perform, you could run a for-loop for every value of n' and sum the values into a variable.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by