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.
Direct link to this comment:
It depends on what x(1) .. x(5) is. If x is a vector, then T is a scalar, such that searching the minimum and maximum is trivial. So please explain, what your inputs are.
Each x is a different variable. i.e. x is not a vector.
Without further restrictions on x(1),...,x(6), the maximum of your function is +Inf and the minimum is -Inf.
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.
Sign in to comment.
Sign in to answer this question.
Opportunities for recent engineering grads.
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office