gamultiobj: How do I minimize one function and maximize the other

Given: function 2 is dependent upon function 1.

4 件のコメント

Torsten
Torsten 2018 年 3 月 13 日
If the two functions are dependent upon each other, it won't in general be possible to minimize the first while maximizing the second. You will have to find a compromise - that's what Pareto optima obtained from gamultiobj do.
Best wishes
Torsten.
Devdatt Thengdi
Devdatt Thengdi 2018 年 3 月 13 日
Thanks. What if I wanted to maximize a single function? I tried:
@(x)-Lobo(x(1), x(2), x(3), x(4), x(5))
I didn't work. It's still minimizing.
Walter Roberson
Walter Roberson 2018 年 3 月 13 日
Yes, but it is minimizing the negative of the value, which is the same as maximizing the value.
Torsten
Torsten 2018 年 3 月 14 日
If I wanted to maximize a single function, I would not use gamultiobj.

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

回答 (1 件)

Kurt Stewart
Kurt Stewart 2019 年 9 月 12 日

1 投票

To find the maximum, if the function is positive, shift it down (subtract a really big value) such that it is completely negative and then take the aboslute value. You will find your x where the maximum is.... then plug it into the original function and you will find your maximum

カテゴリ

ヘルプ センター および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

質問済み:

2018 年 3 月 13 日

コメント済み:

2019 年 9 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by