I am confused by the documentation for fgoalattain
조회 수: 4 (최근 30일)
이전 댓글 표시
When the weighting function weight is positive, fgoalattain attempts to make the objectives less than the goal values. To make the objective functions greater than the goal values, set weight to be negative rather than positive.
Given the formulation: F(x)-weight. y <= goal
Isn't this backwards, particularly the negative weights?
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 11월 11일
It is common to code minimization routines but not maximization routines, and to say "to find the maximum of a function, minimize the negative of the function". The usage you describe is consistent with that, "multiply by a negative if you want to find a high value rather than a low value".
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!