%% AAEC 6305: Dynamic Economic Optimization - Fall 2020
%% Homework 1b
%% Due: 09/09/2020 by 01:00pm
% Instructions:
% There are two problems in total each separated by a Section Break.
% Enter your code and the solutions to the problem in the provided code boxes.
% Save your file using the following structure: HW1b_lastName.mlx
% e-mail your Homework file to chenggang.wang@ttu.edu and cc matthew.looney@ttu.edu
%%
%
%% Problem 1 - Dorian Auto
% Dorian Auto manufactures luxury cars and trucks. The company believes that its most likely customers are high-income women and men. To reach these groups, Dorian Auto embarked on an ambitious TV advertising campaign and had decided to purchase 1-minute commercial spots on two types of programs; comedy shows and football games. Each comedy commercial is seen by 7 million high-income women and 2 million high-income men. Each football commercial is seen by 2 million high-income women and 12 million high-income men. A 1-minute comedy ad costs $50,000 and a 1-minute football ad costs $100,000. Dorian would like the commercials to be seen by at least 28 million high-income women and 24 million high-income men.
% Use linear programming (linprog) to determine how Dorian Auto can meet its advertising requirements at minimal cost. Note: Fractions of minutes are OK in this problem.
%% Solution:

% Enter solution code below

% This program solves Dorian Auto's advertising problem with the matlab
% function "linprog."
clc;clear



% Conduct a sensitivity analysis with respect to one exogenous variable in the model (For Football Games: Evaluate the range of high-income men over 10 to 15 million).  Show the binding and nonbinding constraints in different ranges of that exogenous variable.
%% Solution:

% Enter solution code below




% Interpret you findings.
%% Solution:
%%
%
%% Problem 2 - Profit Pollution Trade-Off
% Chemco is considering producing three products. The per-unit contribution to profit, labor requirements, raw material used per unit produced, and pollution produced per unit of product given in the following table. Currently, 1300 labor hours and 1000 units of raw materials are available. Chemco's two objectives are to maximize profits and minimize pollution produced.
%
% Use the MATLAB solver ' fmincon ' for this problem.
% Graph the trade-off curve for this problem.
%% Solution:

% Enter solution code below
clc;clear



%
%