Hello there, I need to solve optimization problem.
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 7 de Nov. de 2016
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.
Categorías
Más información sobre Systems of Nonlinear Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!