Rec5Solution

# Rec5Solution - Fall 2010 Optimization I(ORIE 3300/5300...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Fall 2010 Optimization I (ORIE 3300/5300) Recitation 5 Solution Problem 1 AMPL book 1-6 (a) Skipped (explained verbally in recitation). (b) The model file that follows the algebraic problem in the book is: Model File set INTER; #intermediates set PROD; #final products set ATT; #attributes ##Technological Data param inter_avail {INTER} >= 0; #barrels of intermediate i available param att_per_inter {INTER, ATT}; #units of attribute contributed per barrel of intermediate param att_per_barrel_UB {PROD, ATT}; #max allowed units of attribute per barrel of final product param blend_possible {INTER, PROD} binary; #1 if intermediate allowed in blend for product ##Economic Data param rev {PROD} >= 0; #revenue per barrel ##Decision Variables var X {i in INTER, j in PROD} >= 0, <= blend_possible[i,j]*inter_avail[i]; #barrels of intermediate used to make final product var Y {j in PROD} >= 0; #barrels of product made maximize Total_Revenue: sum{j in PROD} rev[j]*Y[j]; subject to Amt_Inter {i in INTER}: #must use all of attribute available sum{j in PROD} X[i,j] = inter_avail[i]; subject to Material_Balance {j in PROD}: sum{i in INTER} X[i,j] = Y[j]; subject to Attr_Limit {j in PROD, k in ATT}: #must not exceed attribute limit sum{i in INTER} att_per_inter[i,k]*X[i,j] <= att_per_barrel_UB[j,k]*Y[j]; (c) The data file is: Data File 1 Fall 2010 Optimization I (ORIE 3300/5300) set INTER := SRG N RF CG B DI GO RS; set PROD := PG RG D HF; set ATT := vap oct den sul; param inter_avail := SRG 21170 N 500 RF 16140 CG 4610 B 370 DI 250 GO 11600 RS 25210; param att_per_inter: vap oct den sul := SRG 18.4-78.5 N 6.54-65.0 272...
View Full Document

{[ snackBarMessage ]}

### Page1 / 7

Rec5Solution - Fall 2010 Optimization I(ORIE 3300/5300...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online