Professional Documents
Culture Documents
Milp Problems and Solve The Using Gams
Milp Problems and Solve The Using Gams
Chandkheda, Ahmedabad
Affiliated
Under subject of
Computer Aided Process Synthesis
B. E. Semester – VII
Chemical Engineering
Submitted by:
This is to certify that project work embodied in this report Entitled “MILP
PROBLEMS AND SOLVE THE USING GAMS” was carried out by Vasava
Vijay (170990105061) studying at Shroff S.R. Rotary Institute Of Chemical
Technology code no. 099 for partial fulfilment of the subject COMPUTER
AIDED PROCESS SYNTHESIS. This project work has been carried out
under my guidance and supervision and it is up to my satisfaction.
Date:
ACKNOWLEDGEMENT
Success of any project depends on the dedication and sincere hard work. It also
requires some essentials like motivation, guidelines, encouragement, positive
attitude, good observation and time. We express our sincere gratitude to our Guide
(Mr. Krunal suthar sir). We would like to thanks to the department of chemical
engineering for his constant support and valuable suggestion without which the
successful completion of this project would not have been possible. Finally we
express our great thanks and regards to our parents and our family for their support
which helped us through the difficulty and hardships of life to earn achievement.
Yours Sincerely,
Vijay Vasava
INTRODUCTION
WHAT IS GAMS?
The General Algebraic Modeling System is a high-level modeling language used to
express optimization formulations
www.gams.com
Advantages:
o Admits all problem types (LP, IP, NLP, MILP, MINLP)
o Interfaces with a variety of solvers
o Can express models compactly and symbolically
o Data and models are stored separately
Disadvantages:
o Overhead slows execution
o Cumbersome to do scientific computations for preparing input data or for post-
processing optimization results
WHY PREFER GAMS?
Optimization models can be solved also in popular environments such as Excel,
Mathematica, Matlab, Maple, etc.
However, GAMS is superior when it comes to large-scale models
o GAMS does not implement solvers, rather than it interfaces with the best freely- or
commercially-available ones
o You can easily try various applicable solvers and find what works best for your
problem
o The other environments typically have proprietary routines, which may not
necessarily be state-of-the-art nor “the best” for a given problem
HOW DOES GAMS WORK?
The user creates a text file in GAMS-readable format (a Windows editor interface
is available)
This file is saved with the extension .gms and can be provided as input to the
GAMS software
GAMS compiles and executes, providing
output to console
output to file(s), as instructed by the user
a default file with extension .lst providing record of the run, including optimal
solution values and any possible compilation or runtime errors
MODELING IN GAMS
In order to implement a
mathematical model using GAMS optimization package the following steps are
needed:
• The total supply of the product from production plant i is ai, where i = 1,
2, ...,m.
• The total demand for the product at store j is bj , where j = 1, 2, ..., n.
• The cost of sending one unit of the product from production plant i to
store j is equal to cij , where i = 1, 2, ..., m and j = 1, 2, ...n.