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

5 visualizzazioni (ultimi 30 giorni)
Given: function 2 is dependent upon function 1.
  4 Commenti
Walter Roberson
Walter Roberson il 13 Mar 2018
Yes, but it is minimizing the negative of the value, which is the same as maximizing the value.
Torsten
Torsten il 14 Mar 2018
If I wanted to maximize a single function, I would not use gamultiobj.

Accedi per commentare.

Risposte (1)

Kurt Stewart
Kurt Stewart il 12 Set 2019
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

Categorie

Scopri di più su Get Started with Optimization Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by