rec4 - ORIE 321/521 RECITATION 4 Spring 2007 Consider the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ORIE 321/521 RECITATION 4 Spring 2007 Consider the following AMPL model file maxflow.mod for the maximum flow problem, which can be found in the MODELS folder within the amplcml folder on your desktop. set nodes; param orig symbolic in nodes; param dest symbolic in nodes, <> orig; set arcs within (nodes diff {dest}) cross (nodes diff {orig}); param cap {arcs} >= 0; var Flow {(i,j) in arcs} >= 0, <= cap[i,j]; maximize Total_Flow: sum {(orig,j) in arcs} Flow[orig,j]; subject to Balance {k in nodes diff {orig,dest}}: sum {(i,k) in arcs} Flow[i,k] = sum {(k,j) in arcs} Flow[k,j]; Again, change this model so that the capacity constraints are explicit con- straints of the model, rather than just upper bounds on the variable Flow . This week you will be using the max flow model to solve the so-called baseball elimination problem, which will be introduced in recitation. The data for this problem consists of a collection of teams: team 1, team 2, through team n ; each pair of teams i and j has been scheduled to play each other a given number of times; of these, g ( i, j ) games currently remain, and team i has won a total of w ( i ) games thus far. For simplicity, we assume that each team plays the same total number of games in the entire season. We would like to determine if team n has been eliminated already: that is, even if team n wins all of its remaining games, no matter how the games between the other teams turn out, there will always be some team with more wins...
View Full Document

This lab report was uploaded on 04/06/2008 for the course ORIE 321 taught by Professor Shmoys/lewis during the Spring '07 term at Cornell University (Engineering School).

Page1 / 5

rec4 - ORIE 321/521 RECITATION 4 Spring 2007 Consider the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online