1.224j recitation #3 networks and introduction to ampl

5
1.224J Recitation #3 Networks And Introduction to AMPL

Upload: jacob-hart

Post on 27-Mar-2015

221 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1.224J Recitation #3 Networks And Introduction to AMPL

1.224J Recitation #3

Networks

And

Introduction to AMPL

Page 2: 1.224J Recitation #3 Networks And Introduction to AMPL

Topics

• Network formulation review

• Tournament example

• Product distribution example in AMPL

Page 3: 1.224J Recitation #3 Networks And Introduction to AMPL

Network highlights

• Node-arc incidence matrix

• Sign convention – Arc from i to j , i gets the +1, j gets the -1 – Convention: b(i) positive for supply, negative f

or demand

• Integer data…integer solutions

Page 4: 1.224J Recitation #3 Networks And Introduction to AMPL

Tournament problem

• N teams compete in a tournament of k rounds. During each round, each team plays every other team once. Given a particular outcome vector (for example, team 1 won 3 games, team 2 won 7 games…) decide if that is a possible outcome.

Page 5: 1.224J Recitation #3 Networks And Introduction to AMPL

Product distribution network

ORIG DEST

b1

b2

b3