Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

1. Design an effective socialization program for employees.

Answered: 1 week ago