Dados p = (p1, p2) ≥ (0, 0) e c1 < 0, c2 > 0. Resolva o seguinte problema de…
- User
Dados p = (p1, p2) ≥ (0, 0) e c1 < 0, c2 > 0. Resolva o seguinte problema de otimiza¸c˜ao: max{p1x1 + p2x2 : c1 ≤ x1 ≤ 0; 0 ≤ x2 ≤ c2raiz de -x1
- Assistant
Dados p = (p1, p2) ≥ (0, 0) e c1 < 0, c2 > 0. Resolva o seguinte problema de otimiza¸c˜ao: max{p1x1 + p2x2 : c1 ≤ x1 ≤ 0; 0 ≤ x2 ≤ c2raiz de -x1
To solve the optimization problem:
[ \begin{align*} \text{maximize} \quad & f(x_1, x_2) = p_1 x_1 + p_2 x_2 \ \text{subject to} \quad & c_1 \leq x_1 \leq 0, \ & 0 \leq x_2 \leq c_2 \sqrt{-x_1}, \end{align*} ]
with ( p = (p_1, p_2) \geq (0, 0) ), ( c_1 < 0 ), and ( c_2 > 0 ), we proceed as follows:
Step 1: Simplify the Problem
Since ( x_2 ) is bounded above by ( c_2 \sqrt{-x_1} ) and ( p_2 \geq 0 ), to maximize ( f(x_1, x_2) ), we should set ( x_2 ) to its maximum feasible value for a given ( x_1 ):
[ x_2 = c_2 \sqrt{-x_1}. ]
This reduces the problem to maximizing ( f(x_1) ) as a function of ( x_1 ) alone:
[ f(x_1) = p_1 x_1 + p_2 c_2 \sqrt{-x_1}. ]
Step 2: Find the Critical Point
Compute the derivative of ( f(x_1) ) with respect to ( x_1 ):
[ f'(x_1) = p_1 + p_2 c_2 \left( \frac{-1}{2 \sqrt{-x_1}} \right) = p_1 - \frac{p_2 c_2}{2 \sqrt{-x_1}}. ]
Set the derivative to zero to find the critical point:
[ p_1 - \frac{p_2 c_2}{2 \sqrt{-x_1}} = 0 \implies \sqrt{-x_1} = \frac{p_2 c_2}{2 p_1}. ]
Solve for ( x_1 ):
[ x_1^* = - \left( \frac{p_2 c_2}{2 p_1} \right)^2. ]
Step 3: Determine the Optimal ( x_1 )
The optimal ( x_1 ) is the critical point ( x_1^* ) if it lies within the interval ( [c_1, 0] ). Otherwise, we compare the objective function values at the endpoints.
Note: If ( p_1 = 0 ), the derivative ( f'(x_1) ) is always negative, so ( f(x_1) ) is decreasing with ( x_1 ). Hence, the maximum is at ( x_1^{\text{opt}} = c_1 ).
Step 4: Compute the Corresponding ( x_2 )
For the optimal ( x_1^{\text{opt}} ), the optimal ( x_2 ) is:
[ x_2^{\text{opt}} = c_2 \sqrt{ - x_1^{\text{opt}} }. ]
Final Solution
The optimal solution to the problem is:
If ( p_1 > 0 ):
Optimal ( x_1 ):
[ x_1^{\text{opt}} = \max\left{ c_1, - \left( \frac{p_2 c_2}{2 p_1} \right)^2 \right}. ]
Optimal ( x_2 ):
[ x_2^{\text{opt}} = c_2 \sqrt{ - x_1^{\text{opt}} }. ]
If ( p_1 = 0 ):
Conclusion
The optimal solution is:
[ \begin{cases} x_1^{\text{opt}} = \max\left{ c_1,\ - \left( \dfrac{p_2 c_2}{2 p_1} \right)^2 \right}, & \text{if } p_1 > 0, \ x_1^{\text{opt}} = c_1, & \text{if } p_1 = 0, \end{cases} \quad \text{and} \quad x_2^{\text{opt}} = c_2 \sqrt{ - x_1^{\text{opt}} }. ]
Therefore, the solution to the optimization problem is given by:
If ( p_1 > 0 ):
[ x_1^* = \max\left{ c_1, - \left( \frac{p_2 c_2}{2 p_1} \right)^2 \right}, \quad x_2^* = c_2 \sqrt{ - x_1^* }. ]
If ( p_1 = 0 ):
[ x_1^* = c_1, \quad x_2^* = c_2 \sqrt{ - c_1 }. ]
Not yet included in a published release.