Excel Solver
Excel Solver
Minitab
Optimization software (NEOS server)
• Make unconstrained variables non-negative: This is enforced when, the decision variables
cannot be negative
• Integer constraints: This is for discrete variables i.e. variables that can only assume whole
numbers e.g. number of heat exchangers
• Binary constraints: This is used for variables that can only assume the values of 1 or 0. Mostly
used in logical constraints. Their effect usually means exist or do no exist
• All different constraints: Sometimes all variables within a certain set must have different
values
Which solver must I choose
• Simplex LP: It is used in solving linear programming/optimization problems. Meaning both the
objective function and all the constraints are linear. This technique will produce a global
optimum for problems that it can solved
• GRG: This solver is used when there is a non-linearity in either the objective function or any of
the constraints. To be able to use GRG, the objective function and all the constraints must be
continuous and smooth. Using GRG on a non-unimodal (non-convex) problem leads to local
optimum solutions. The way to deal with this problem is to solve the problem with multiple
starting point
• Evolutionary method: This is used if either the objective function or any of the constraints is
either discontinuous or non-smooth
Which solver must I choose
• Simplex LP: It is used in solving linear programming/optimization problems. Meaning both the
objective function and all the constraints are linear. This technique will produce a global
optimum for problems that it can solved
• GRG: This solver is used when there is a non-linearity in either the objective function or any of
the constraints. To be able to use GRG, the objective function and all the constraints must be
continuous and smooth. Using GRG on a non-unimodal (non-convex) problem leads to local
optimum solutions. The way to deal with this problem is to solve the problem with multiple
starting point
Now let’s solve the problem
Solution found
Illustrative example LP
Modelling the problem
• Let x1 be barrels of crude type 1 processed,
• Constraints
• a) Using the Lagrange constraint method find the height to diameter ratio that optimizes the cost for a
1000-liter cylindrical tank
𝝅𝑫𝟐 𝝅𝑫𝟐
• The area of the top and bottom side is 𝟐 × =
𝟒 𝟐
𝝅𝑫𝟐
• Objective function=Total cost of cylinder 𝑪 = 𝟓 𝝅𝑫𝑳 + 𝟖
𝟐
• 𝑪 = 𝟓 𝝅𝑫𝑳 + 𝟒𝝅𝑫𝟐
𝝅𝑫𝟐
• Constraints 𝑽 = 𝑳 = 𝟏𝟎𝟎𝟎𝒍𝒊𝒕𝒓𝒆𝒔 = 𝟏𝟎𝟎𝟎𝒅𝒎𝟑
𝟒
• Now that we are done with the modelling, we must put the model on the Excel model
Building the model in excel
• The objective function and
constraints have been set up
in excel
THANK YOU!!!!!