GAMS Workshop With Formulation
GAMS Workshop With Formulation
using GAMS
Rofice Dickson
• Summary
LP : Linear Programming
MILP : Mixed integer LP
NLP : Nonlinear Programming
MINLP : Mixed Integer NLP
𝑠. 𝑡. 𝑔 𝑥, 𝑦 ≥ 0 (2)
ℎ 𝑥, 𝑦 = 0, (3)
𝑥 𝐿𝑂 ≤ 𝑥 ≤ 𝑥 𝑈𝑃 (4)
𝑛 (5)
𝑥 ∈ 𝑋, 𝑦 ∈ 0, 1
Gasoline
1
3
Jet Fuel
Lube
4 Lube oil
Chain
Objective function:
There are nineteen optimization variables in the above formulation. All are
continuous variables. The objective function is a linear function of these
variables, and so are Eqs. 1 and 5, therefore this is a linear programming
(LP) formulation.
11 Department of Chemistry and Chemical Engineering, LUMS Rofice Dickson 2/17/2022
Suggested Exercises
1) What happens if the maximum demand for gasoline is
increased from 170 to 200 kbbl/wk?
Note that possible alternatives for this problem include the following: install
only process I and purchase chemical B: install process I and either
process II and/or II with or without purchase of B: and finally, do not
install any of the 3 processes
• Assume that the production of the selected process can exceed the
demand of 1 ton/hr of product C. However, the production of up to 1
ton/hr can be sold at $13,000 $/ton, while the excess above this amount
can only be sold at 10,000 $/ton. Modify the MINLP model to predict the
optimal solutions for this case.
1 18 30
2 14 25
Model variables
P(G) Total power output of generators in MW
X(G, F) Power outputs of generators from specific fuels
Z(F) Total Amounts of fuel purchased
Obj objective function
✓ Linearization
✓ approximation