Minimizing a multivariable function in several variables in MATLAB

2 ビュー (過去 30 日間)
AM
AM 2014 年 7 月 2 日
編集済み: John D'Errico 2014 年 7 月 2 日
I need to minimize a nonlinear function subject to constraints, where everything is a parameter - no numbers.
Does anyone know if this is possible in MATLAB?
Here are the details:
Find the minimum of
(2A-MB)G(F+H+J+K+L)+A(B+C+D)(E+F)-(MC-A)^2 with A,B,C,D,E,F,G,H,J,K,L > 0.
Thanks for any help.
  1 件のコメント
James
James 2014 年 7 月 2 日
I'm not sure what your independent variables and coefficients are - how many dimensions does this function have? Also, are you looking for a numerical minimum over defined numerical ranges? Without more constraints, this problem may not be solvable.

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

回答 (1 件)

John D'Errico
John D'Errico 2014 年 7 月 2 日
編集済み: John D'Errico 2014 年 7 月 2 日
So you have a function of 14 unknowns, some of which are bounded, but not all of them.
I'm sorry, but it is unbounded. There is no minimum value. Here is your expression. (Personally, I think you should use * in there to denote multiplies, as there is an ambiguity. Is MC a single parameter, or the product of two parameters, M*C?) When you ask a question try not to leave ambiguities in there.
(2A-MB)G(F+H+J+K+L)+A(B+C+D)(E+F)-(MC-A)^2
See that some of the parameters enter linearly, B for example. But B is unbounded. If we write this expression as
B*stuff1 + stuff2
then clearly, if stuff1 is a positive value, then we can see the expression is unbounded from below by making B as large and negative as we wish. If stuff1 is negative, then we see the function is unbounded from below by making B large and positive.
And if it turns out (in a very rare case) that stuff1 was EXACTLY zero, then the function has no unique minimum as a function of B. There might then be infinitely many solutions, depending on what happened in stuff2, or it could still be unbounded by the same reasoning as above.
Your objective has the same issues with G.
It gets worse though.
How about A? Expand this, then write it as a function of A. It will look like
-A^2 + A*stuff3 + stuff4
Quadratic in A, with a NEGATIVE coefficient on A^2. And A has no bounds at all.
So, NO. There is affirmatively no solution.
  1 件のコメント
John D'Errico
John D'Errico 2014 年 7 月 2 日
編集済み: John D'Errico 2014 年 7 月 2 日
You are not reading the answer I just wrote! Even if ALL of the variables are positive, no minimum will exist.
Again (why must I repeat what I just wrote?) we can write your function as
-A^2 + A*stuff3 + stuff4
Even if A is bounded only from below (i.e., it is positive), A is not bounded from above. Therefore -A^2 can still be made as large and negative as we wish.
NO MINIMUM EXISTS! THE FUNCTION CAN BE MADE AS SMALL AS YOU WISH TO MAKE IT. IT IS UNBOUNDED. PERIOD.

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

カテゴリ

Help Center および File ExchangeLinear Least Squares についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by