Question
Good evening! Would you please help me code this problem in AMPL? Thank you :) Please code this problem in AMPL and solve for an
Good evening! Would you please help me code this problem in AMPL? Thank you :)
Please code this problem in AMPL and solve for an optimal solution. You may \hard code" all parameters for
this problem as opposed to using a data file.
This is a symbolic linear programming model. Its components are fundamental to all models:
sets, like the products
parameters, like the production and profit rates
variables, whose values the solver is to determine
an objective, to be maximized or minimized
constraints that the solution must satisfy.
Given: P, a set of products
aj = tons per hour of product j, for each j P
b = hours available at the mill
cj = profit per ton of product j, for each j P
uj = maximum tons of product j, for each j P
Define variables: Xj = tons of product j to be made, for each j P
Maximize: cj Xj
jP
Subject to: ( 1/ a j ) Xj b
jP
0 Xj uj, for each Jp
Question 3: Portfolio selection Please code this problem in AMPL and solve for an optimal solution. You may \hard code" all parameters for this problem as opposed to using a data file. This is a symbolic linear programming model. Its components are fundamental to all models: sets, like the products parameters, like the production and profit rates variables, whose values the solver is to determine O an objective, to be maximized or minimized constraints that the solution must satisfy. Given: P. a set of products aj= tons per hour of productj, for eachj EP b= hours available at the mill cj=profit per ton of product, for eachj EP u= maximum tons of productj, for each; EP Define variables: X;= tons of product to be made, for eachj EP Maximize: cjX; jEP Subject to: (1/aj) X; sb jep 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started