I have a function of two variables and I need to maximise it for given constraints. The function: F(x) = x1 / (x2 * constant) subject to: 20000 <= x1 <= 50000, 1 <= x2 <= 5
Kindly guide me how to do this using MATLAB.
Regards Abubakr

 채택된 답변

Walter Roberson
Walter Roberson 2016년 12월 25일
편집: Walter Roberson 2016년 12월 25일

1 개 추천

The constant does not change the relative position of the maximum.
The expression over positives (or if both are negative) x1/x2 always has its maximum when x1 is as far from 0 as the range permits, and x2 is as close to 0 as the range permits.
You do not need to run an optimization, just choose the upper bound of x1 and the lower bound of x2

댓글 수: 3

Abubakr Sheikh
Abubakr Sheikh 2016년 12월 25일
The upper bound of x1 is 50000 and lower bound of x2 is 1, now what will be the maximum value of given function?
Walter Roberson
Walter Roberson 2016년 12월 25일
50000/(constant*1)
Abubakr Sheikh
Abubakr Sheikh 2016년 12월 26일
ok, thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

질문:

2016년 12월 25일

댓글:

2016년 12월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by