Professional Documents
Culture Documents
Fall 2021
The plot above was created using python. The feasible region is shaded in light
purple. The contours of objective function are drawn as dashed lines.
The optimal solutions: is shown using green cross marks. The optimal solutions
(x, y) are (-1,0) and (0, -1).
The optimal objective value for both the optimal solutions is 5. (Obtained after
inputting x and y values from above optimal solutions into objective function
(x − 1)2 + (y − 1)2 ).
Ans:
Ans:
3. Consider the following optimization problem:
(P ) max x(y 2 − z 2)
s.t. |y| + z ≤ 1,
x ∈ {0, 1}, z ≥ 0.
Answer the questions:
(a) Is (P) a linear program, a mixed integer nonlinear program, or a
mixed integer quadratic program? Choose all descriptions that apply.
Ans:
As specified in the question, I acquired the data for the last two years from
Yahoo Finance, spanning from '2022-01-01' to '2024-01-01'. The maximum
expected return, attainable by fully investing in Microsoft, is 0.011426 or
1.14%. Consequently, the selected threshold for the expected return is
established at 0.0114, a significantly lower value compared to the previously
defined threshold of 2% based on historical data in a prior solution.