Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
Operations Research Models and Methods
EXERCISE SESSION
Excel Solver and AMPL
Prof. dr. E-H. Aghezzafir. Rodrigo Rezende Amaral
Excel Solver
Session 3 - Exercise 4
Exercise 4
Exercise 4
X1 X2 M1 Limits CV
solution
obj. fun
Exercise 4
Exercise 4
Exercise 4
Exercise 4
X1 X2 M1 Limits CV
solution 1 2 3
obj. fun 300 400 -50 950
0,8 1 -1
Exercise 2
check the LINDO output.
Exercise 2
AMPL
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Session 1 - Exercise 1
Best practices:
Organize your program in 3 files:
• .run → “master program”
• .mod → contains the model logic statements
• .dat → contains the data values
Session 1 - Exercise 1Example: .mod (1/3)
Session 1 - Exercise 1Example: .mod (2/3)
Session 1 - Exercise 1Example: .mod (3/3)
Session 1 - Exercise 1Example: .dat (1/1)
Session 1 - Exercise 1Example: .run (1/1)
Session 1 - Exercise 7
Session 1 - Exercise 7
Session 1 - Exercise 7.mod (1/3)
Session 1 - Exercise 7.dat
Session 1 - Exercise 7.mod (2/3)
Session 1 - Exercise 7.mod (3/3)
Session 1 - Exercise 7.run
Session 1 - Exercise 7
.run (extra info: commands for , let and fix)
Session 2 - Exercise 11
Session 1 - Exercise 9