Hello, I have two interconnected functions z and t where x:
x=176^a-0.0003^(1-a);
z=x*0.016; 0<z<0.2;
t=x*0.0005; 0<t<800;
I need to find optimal a, which is constrained 0.5<a<0.75 to maximize z and t at the same time. What solution would you suggest?

 採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 7 日

1 投票

You really only have one function.
z = x*0.016, 0 < z < 0.2
is the same as
0 < x < 0.2/0.016
and
t=x*0.0005; 0<t<800;
is the same as
0 < x < 800/0.0005
The first of those is 0 < x < 12.5, and the second is 0 < x < 1600000, so the first one of those dominates.
You have
x = 176^a-0.0003^(1-a);
which you can now rewrite as
0 < 176^a-0.0003^(1-a) < 12.5
The left boundary is reached at a = log(3/10000)/log(33/625) which is about 2.75792414361621 and the right boundary is reached at a approximately 0.4887342220443237643
But 0.488 etc is less than the lower bound of the constraint 0.5 < a < 0.75 so there is no solution to the equation.
You can plot (176^a-0.0003^(1-a))*0.016 over 0.5 to 0.75 and you will see that the value is everywhere greater than 0.2 which is the upper bound for z.

1 件のコメント

John D'Errico
John D'Errico 2016 年 11 月 7 日
Drat. :) Walter types too fast. :)

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

その他の回答 (1 件)

John D'Errico
John D'Errico 2016 年 11 月 7 日

2 投票

First of all, I would point out that you use strict inequalities here, < and >. You cannot in general solve a maximization or minimization problem on open intervals like that, since your variable can never live at the bounds itself, and very often, it is at a boundary where the function will be maximized (or minimized.) That means your function may have NO maximum or minimum value on the open interval.
Anyway, what you ask is not possible in general. You CANNOT maximize two variables at the same time, so that both attain their maximum for the same independent variable. This is true UNLESS the two objectives must be so heavily linked that they always attain their maximum together.
Luckily for you, the caveat I mentioned holds true here. Sort of.
Both of z and t are linearly related to the same variable (x). When one of them is maximized, then so is the other.
So all that you need to do is maximize x(a), subject to the simple bounds on x such that
x(a) >= 0
x(a) <= 0.2/0.016
x(a) <= 800/0.0005
Since it is true that the first of these bounds will be active long before the second:
0.2/0.016
ans =
12.5
and
800/0.0005
ans =
1600000
we know that the latter bound is irrelevant. Now look at x(a).
x=176^a-0.0003^(1-a)
This function will NEVER be negative for any value of a in the interval [0.5,0.75], since it is dominated by the first term, which must always be positive.
But we also just observed that x(a) must NEVER be larger than 12.5.
x = @(a) 176.^a-0.0003.^(1-a);
ezplot(x,[0.5,0.75])
This function is monotone increasing function of a over that interval. Inspection of the function should have told you that, but a plot should be as convincing.
What is the value of x at the lower endpoint of the CLOSED interval?
x(0.5)
ans =
13.249
What would z=x(a)*0.016 have been there?
x(0.5)*0.016
ans =
0.21199
Since we stated that z can NEVER be larger than 0.2, then no solution exists. The original issue of open or closed intervals is not even relevant in the end, since you can NEVER solve what you are asking to solve.
When you have a problem, apply common sense. Plot what you can plot, since a plot can often help to aid common sense.

カテゴリ

ヘルプ センター および File Exchange で Systems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by