gamultiobj: How do I minimize one function and maximize the other
이전 댓글 표시
Given: function 2 is dependent upon function 1.
댓글 수: 4
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
2018년 3월 13일
Walter Roberson
2018년 3월 13일
Yes, but it is minimizing the negative of the value, which is the same as maximizing the value.
Torsten
2018년 3월 14일
If I wanted to maximize a single function, I would not use gamultiobj.
답변 (1개)
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
댓글 수: 1
Kurt Stewart
2019년 9월 12일
One way to do it anyways
카테고리
도움말 센터 및 File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!