Finding the maximum and minimum of a function

4 ビュー (過去 30 日間)
Bilal Maarouf
Bilal Maarouf 2018 年 5 月 18 日
編集済み: Guillaume 2018 年 5 月 18 日
Hello, How can I find the minimum and maximum of a function similar to this one T=(((x(1)*x(2))/(x(3)*8))*(x(6)^x(7)))+x(4)+x(5). Thank you.
  4 件のコメント
Torsten
Torsten 2018 年 5 月 18 日
Without further restrictions on x(1),...,x(6), the maximum of your function is +Inf and the minimum is -Inf.
Best wishes
Torsten.
Guillaume
Guillaume 2018 年 5 月 18 日
編集済み: Guillaume 2018 年 5 月 18 日
So T is a function of 5 independent variables?
Your particular function is not bounded. If you set x(2:5) to 1, then the limit of your function is ∞ when x(1) goes to ∞ and -∞ when x(1) goes to -∞.
If you are asking how to find the global minimum and maximum of an arbitrary function, then this is not something that matlab can do. In fact, it's not something that anybody knows how to do generically.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by