AMPL Network Optimization

Size: px
Start display at page:

Download "AMPL Network Optimization"

Transcription

1 AMPL Network Optimization ORLAB Operations Research Laboratory Borzou Rostami Politecnico di Milano, Italy December 14, 2011

2 Network Optimization Shortest path models Consider the problem of finding the shortest path from node 1 to node 4 in the following network: Remember that the first step in formulating an optimization problem is to specify the decision variables. we need to find a certain path each path consists of a set of arc

3 We might think to make a decision variable for each arc, indicating whether that arc is in our path or not. Variables: if arc is in the shortest path, and if not. Objective function: In this case, the cost of a path is simply the cost of its component arcs: Min Constraints: The constraints must represent a path from node 1 to node 4. Excluding the origin and destination r and s, at every node i on the path we must have one arc entering this node, and one arc leaving this node. That is, for some arc, and for some other arc.

4 { # Model (shortestpath1.mod) param numnodes; set Nodes := 1..numNodes; param cost{i in Nodes, j in Nodes}; param demand{i in Nodes}; var flow{i in Nodes, j in Nodes} >= 0; minimize tripcost: sum{i in Nodes, j in Nodes} flow[i,j] * cost[i,j]; subject to conservation{i in Nodes}: sum{j in Nodes} flow[i,j] = demand[i] + sum{h in Nodes} flow[h,i];

5 # Data (shortestpath1.dat) param numnodes = 4; param cost: := ; param demand := ;

6 #Model (shortestpath2.mod) set Nodes; set Arcs within {Nodes, Nodes}; # Vertex set # Arc set param demand{i in Nodes}; param cost{(i,j) in Arcs }; var flow{(i,j) in Arcs} >= 0; minimize tripcost: sum{(i,j) in Arcs } flow[i,j] * cost[i,j]; subject to constraint{i in Nodes}: sum{(i,j) in Arcs } flow[i,j] = demand[i] + sum{(h,i) in Arcs } flow[h,i];

7 #Data (shortestpath2.dat) set Nodes := ; set Arcs := (1,2) (1,3) (2,3) (2,4)(3,4); param demand := ; param cost:= ;

8 Network Optimization : Minimum-cost transshipment models: Imagine that the nodes and arcs in the Figure represent cities and intercity transportation links. A manufacturing plant at the city marked PITT will make 450,000 packages of a certain product in the next week, as indicated by the 450 at the left of the diagram.

9 The cities marked NE and SE are the northeast and southeast distribution centers, which receive packages from the plant and transship them to warehouses at the cities coded as BOS, EWR, BWI, ATL and MCO. These warehouses require 90, 120, 120, 70 and 50 thousand packages, respectively, as indicated by the numbers at the right. For each intercity link there is a shipping cost per thousand packages and an upper limit on the packages that can be shipped, indicated by the two numbers next to the corresponding arrow in the diagram. The optimization problem over this network is to find the lowest-cost plan of shipments that uses only the available links, respects the specified capacities, and meets the requirements at the warehouses. # Model (transshipment.mod) set CITIES; set LINKS within {CITIES,CITIES};

10 param supply {CITIES} >= 0; param demand {CITIES} >= 0; param cost {LINKS} >= 0; param capacity {LINKS} >= 0 ; var Ship {(i,j) in LINKS} >= 0, <= capacity[i,j] ; # amounts available at cities # amounts required at cities # shipment costs/l000 packages # max packages that can be shipped # packages to be shipped minimize Total_Cost: sum {(i,j) in LINKS} cost[i,j] * Ship[i,j]; subject to Balance {k in CITIES} : supply[k] + sum {(i,k) in LINKS} Ship[i,k]= demand[k] + sum {(k,j) in LINKS} Ship[k,j];

11 # Data (transshipment.dat) set CITIES := PITT NE SE BOS EWR BWI ATL MCO ; set LINKS := (PITT,NE) (PITT,SE) (NE, BOS) (NE, EWR) (NE,BWI) (SE,EWR) (SE,BWI) (SE,ATL) (SE,MCO); param supply default 0 := PITT 450; param demand default 0 := BOS 90, EWR 120, BWI 120, ATL 70, MCO 50; param : cost capacity := PITT NE PITT SE NE BOS NE EWR NE BWI SE EWR SE BWI SE ATL SE MCO ;

12 Network Optimization :Maximum flow models The Figure presents a diagram of a simple traffic network. The nodes and arcs represent intersections and roads: capacities, shown as numbers next to the roads, are in cars per hour. We want to find the maximum traffic flow that can enter the network at a and leave at g.

13 You may permit a parameter to represent character string values, by including the keyword symbolic in its declaration. A symbolic parameter's values may be strings or numbers, just like a set's members, but the string values may not participate in arithmetic. A model for this situation begins with a set of intersections, and symbolic parameters to indicate the intersections that serve as entrance and exit to the road network: set INTER; param entr symbolic in INTER; param exit symbolic in INTER, <> entr; The set of roads is defined as a subset or the pairs of intersections: set ROADS within (INTER diff {exit}) cross (INTER diff {entr}) ; This definition ensures that no road begins at the exit or ends at the entrance. param cap {ROADS} >= 0 ; var Traff {(i,j) in ROADS}>= 0, <= cap[i,j]; The constraints say that except for the entrance and exit, flow into each intersection equals flow out:

14 subject to Balance {k in INTER diff {entr,exit}} : sum {(i,k) in ROADS}Traff[i,k]=sum {(k,j) in ROADS} Traff[k,j]; Given these constraints, the flow out of the entrance must be the total flow through the network, which is to be maximized: maximize Entering_Traff: sum {(entr,j) in ROADS} Traff[entr,j]; Model (Maximum flow.mod) set INTER; # intersections param entr symbolic in INTER; param exit symbolic in INTER, <> entr; # entrance to road network # exit from road network set ROADS within (INTER diff {exit}) cross (INTER diff {entr}) ; param cap {ROADS} >= 0; var Traff {(i,j) in ROADS} >= 0, <= cap[i,j]; # capacities # traffic loads

15 maximize Entering_Traff : sum {(entr,j) in ROADS} Traff[entr,j]; subject to Balance {k in INTER diff {entr,exit}}: sum {(i,k) in ROADS} Traff[i,k] = sum {(k,j) in ROADS} Traff[k,j]; Data (Maximum flow.dat) set INTER := a b c d e f g; param entr : = a; param exit : = g; param : ROADS : cap:= a b 50 b d 40 c d 60 d e 50 e g 70 a c 100 b e 20 c f 20 d f 60 f g 70;

16 Exercise: For new year s eve, the police department of Milan expects a massive inflow of people to the Duomo Square around midnight.

17 It is expected that from midnight to 1 a.m. the people will leave the Square and reach the closest underground stations: Cordusio, San Babila, Missori, Montenapoleone, Cairoli, Cadorna, Lanza. It is also supposed that the people will take the shortest path to reach the underground. For safety reasons, access to the Duomo underground station will be restricted. Consider the following, simplified, street map of Milan:

18

19 In the following table, we report the expected traveling time (in fraction of hours) between each pair of underground stations (including the Duomo one). Since the street map is itself sparse, we also give the table in a sparse form. Give a linear programming formulation for the problem of finding the shortest paths that the people will take, so as to be able to suggest to the police department which routs will be, most likely, taken.

20 Sets V : nodes T: target nodes A V V : arcs Parameters s T: root node : cost for arc (i, j), (i, j) A Variables : quantity of flow on arc (i, j), (i, j) A Model Max s.t.? A

21 Downloading AMPL Student Edition Software My Address Lab session web site

Network Linear Programs

Network Linear Programs 15 Network Linear Programs Models of networks have appeared in several chapters, notably in the transportation problems in Chapter 3. We now return to the formulation of these models, and AMPL s features

More information

Foundations of Operations Research Introduction to AMPL and Modellisation

Foundations of Operations Research Introduction to AMPL and Modellisation Foundations of Operations Research Introduction to AMPL and Modellisation Pierre Hosteins hosteins@di.unito.it Politecnico di Milano November 14th 2013 Transportation Problem and Integrality Property Graph

More information

AMPL Integer Linear Programming. ORLAB Operations Research Laboratory. Borzou Rostami. Politecnico di Milano, Italy.

AMPL Integer Linear Programming. ORLAB Operations Research Laboratory. Borzou Rostami. Politecnico di Milano, Italy. AMPL Integer Linear Programming ORLAB Operations Research Laboratory Borzou Rostami Politecnico di Milano, Italy January 18, 2012 Integer Programming: Many linear programming problems require certain variables

More information

AMPL Integer Linear Programming And Sensitivity Analysis for LP. ORLAB Operations Research Laboratory. Borzou Rostami. Politecnico di Milano, Italy

AMPL Integer Linear Programming And Sensitivity Analysis for LP. ORLAB Operations Research Laboratory. Borzou Rostami. Politecnico di Milano, Italy AMPL Integer Linear Programming And Sensitivity Analysis for LP ORLAB Operations Research Laboratory Borzou Rostami Politecnico di Milano, Italy December 6, 2012 Integer Programming: Many linear programming

More information

Lecture 8 Network Flow Models

Lecture 8 Network Flow Models Lecture 8 Andrew Nunekpeku / Charles Jackson Fall 2011 Outline 1 1 Assignment 4 When we ask for the solution of an LP, we typically mean tell me the values of the decision variables or what is the plan?

More information

NETWORK OPTIMIZATION MODELS

NETWORK OPTIMIZATION MODELS NETWORK OPTIMIZATION MODELS Network models Transportation, electrical and communication networks pervade our daily lives. Network representation are widely used in: Production, distribution, project planning,

More information

Modeling and Solving Nontraditional Optimization Problems Session 1b: Current Features

Modeling and Solving Nontraditional Optimization Problems Session 1b: Current Features Modeling and Solving Nontraditional Optimization Problems Session 1b: Current Features Robert Fourer Industrial Engineering & Management Sciences Northwestern University AMPL Optimization LLC 4er@northwestern.edu

More information

Strategies for Using Algebraic Modeling Languages to Formulate Second-Order Cone Programs

Strategies for Using Algebraic Modeling Languages to Formulate Second-Order Cone Programs Strategies for Using Algebraic Modeling Languages to Formulate Second-Order Cone Programs Robert Fourer, Jared Erickson Industrial Engineering & Management Sciences Northwestern University 4er@northwestern.edu,

More information

Discrete Optimization and Network Flows (laboratory 15 h)

Discrete Optimization and Network Flows (laboratory 15 h) Business Information Systems Adam Kasperski Discrete Optimization and Network Flows (laboratory 15 h) Project co-financed by the European Union within the European Social Fund A mixed integer linear programming

More information

Network Optimization Problems. Chapter 6: Hillier and Hillier

Network Optimization Problems. Chapter 6: Hillier and Hillier Network Optimization Problems Chapter 6: Hillier and Hillier Agenda Minimum-Cost Flow Problems Case Study: Distribution Unlimited Co. Maximum Flow Problems Case Study: BMZ Company Shortest Path Problems

More information

This matrix is not TU since the submatrix shown below has determinant of

This matrix is not TU since the submatrix shown below has determinant of EMIS 8373: Integer Programming [Homework 5 Solutions] 1 Problem 1 Problem 1 on page 50 of the Wolsey text book. (a) A 1 = 1 0 1 0 1 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 This matrix is not TU since the submatrix

More information

8. The Postman Problems

8. The Postman Problems 8. The Postman Problems The Chinese postman problem (CPP) A postal carrier must pick up the mail at the post office, deliver the mail along blocks on the route, and finally return to the post office. To

More information

OPERATIONS RESEARCH. Transportation and Assignment Problems

OPERATIONS RESEARCH. Transportation and Assignment Problems OPERATIONS RESEARCH Chapter 2 Transportation and Assignment Problems Prof Bibhas C Giri Professor of Mathematics Jadavpur University West Bengal, India E-mail : bcgirijumath@gmailcom MODULE-3: Assignment

More information

Foundations of Operations Research Introduction to AMPL and Modellisation

Foundations of Operations Research Introduction to AMPL and Modellisation Foundations of Operations Research Introduction to AMPL and Modellisation Pierre Hosteins hosteins@di.unito.it Politecnico di Milano October 17th 2013 Use of scripts in AMPL Problems of Linear Programming:

More information

Columnwise Formulations

Columnwise Formulations 16 Columnwise Formulations Because the fundamental idea of an optimization problem is to minimize or maximize a function of the decision variables, subject to constraints on them, AMPL is oriented toward

More information

1.1. Driving Around Euclid. Goals. Launch 1.1

1.1. Driving Around Euclid. Goals. Launch 1.1 1.1 Driving Around Euclid Goals Review the coordinate system Explore distances on a coordinate grid In this problem, students review the concept of the coordinate grid and are introduced to the idea of

More information

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 17. PATH ANALYSIS AND NETWORK APPLICATIONS 17.1 Path Analysis 17.1.1 Source Raster 17.1.2 Cost Raster Box 17.1 Cost Raster for a Site Analysis of Pipelines 17.1.3 Cost Distance Measures 17.1.4

More information

2. CONNECTIVITY Connectivity

2. CONNECTIVITY Connectivity 2. CONNECTIVITY 70 2. Connectivity 2.1. Connectivity. Definition 2.1.1. (1) A path in a graph G = (V, E) is a sequence of vertices v 0, v 1, v 2,..., v n such that {v i 1, v i } is an edge of G for i =

More information

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997 56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997 Answer #1 and any five of the remaining six problems! possible score 1. Multiple Choice 25 2. Traveling Salesman Problem 15 3.

More information

APPM 4120/5120 Exam #2 Practice Solutions Spring 2015

APPM 4120/5120 Exam #2 Practice Solutions Spring 2015 APPM 4120/5120 Exam #2 Practice Solutions Spring 2015 You are not allowed to use textbooks, class notes. Problem #1 (20 points): Consider the following activity-on-arc project network, where the 12 arcs

More information

Graph Optimization - Lab 1

Graph Optimization - Lab 1 Graph Optimization - Lab 1 ORLAB - Operations Research Laboratory Stefano Gualandi October 24, 2011 What you do during lab sessions Data Math Model Algorithms Solver Solution(s) Modeling Interpretation

More information

Fundamentals of Integer Programming

Fundamentals of Integer Programming Fundamentals of Integer Programming Di Yuan Department of Information Technology, Uppsala University January 2018 Outline Definition of integer programming Formulating some classical problems with integer

More information

Methods and Models for Combinatorial Optimization Modeling by Linear Programming

Methods and Models for Combinatorial Optimization Modeling by Linear Programming Methods and Models for Combinatorial Optimization Modeling by Linear Programming Luigi De Giovanni, Marco Di Summa 1 Linear programming models Linear programming models are a special class of mathematical

More information

Math 464 (Spring 2007) Introduction to AMPL

Math 464 (Spring 2007) Introduction to AMPL Math464 - Feb 13, 2007 1 Math 464 (Spring 2007) Introduction to AMPL Details of how to download and start up the student version of AMPL are given in http://www.ampl.com. Download and install AMPL in your

More information

Ryerson Polytechnic University Department of Mathematics, Physics, and Computer Science Final Examinations, April, 2003

Ryerson Polytechnic University Department of Mathematics, Physics, and Computer Science Final Examinations, April, 2003 Ryerson Polytechnic University Department of Mathematics, Physics, and Computer Science Final Examinations, April, 2003 MTH 503 - Operations Research I Duration: 3 Hours. Aids allowed: Two sheets of notes

More information

Integer Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University

Integer Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University Integer Programming Xi Chen Department of Management Science and Engineering International Business School Beijing Foreign Studies University Xi Chen (chenxi0109@bfsu.edu.cn) Integer Programming 1 / 42

More information

Chalmers University of Technology. Network Models. April 11, Birgit Grohe

Chalmers University of Technology. Network Models. April 11, Birgit Grohe Chalmers University of Technology Applied Optimisation lp 4 VT08 Network Models April 11, 2008 Birgit Grohe Network Models - Examples Many different problems can be formulated as graph/network models:

More information

Network Models - Examples. Network Models. Definition and Terminology. The Minimum Spanning Tree (MST) Problem

Network Models - Examples. Network Models. Definition and Terminology. The Minimum Spanning Tree (MST) Problem Chalmers University of Technology Applied Optimisa- Network Models - Examples tion lp 4 VT08 Network Models April 11, 2008 Birgit Grohe Many different problems can be formulated as graph/network models:

More information

Notes on AMPL for and (Adapted from notes by Sommer Gentry)

Notes on AMPL for and (Adapted from notes by Sommer Gentry) Notes on AMPL for 16.410 and 16.413 (Adapted from notes by Sommer Gentry) User Guides for MS-Dos and UNIX: http://www.ampl.com/refs/index.html#os_links About AMPL/CPLEX AMPL stands for A Mathematical Programming

More information

Introduction to AMPL (Math 464, Spring 2018)

Introduction to AMPL (Math 464, Spring 2018) Math464 - AMPL Handout 1 Introduction to AMPL (Math 464, Spring 2018) Details of how to download and start up the demo version of AMPL are given in http://www.ampl.com. Download and install AMPL in your

More information

Shortest Paths. CSE 373 Data Structures Lecture 21

Shortest Paths. CSE 373 Data Structures Lecture 21 Shortest Paths CSE 7 Data Structures Lecture Readings and References Reading Section 9., Section 0.. Some slides based on: CSE 6 by S. Wolfman, 000 //0 Shortest Paths - Lecture Path A path is a list of

More information

Mathematics for Decision Making: An Introduction. Lecture 4

Mathematics for Decision Making: An Introduction. Lecture 4 Mathematics for Decision Making: An Introduction Lecture 4 Matthias Köppe UC Davis, Mathematics January 15, 2009 4 1 Modeling the TSP as a standard optimization problem, I A key observation is that every

More information

OIM 413 Logistics and Transportation Lecture 2: Representation of a Transportation Network

OIM 413 Logistics and Transportation Lecture 2: Representation of a Transportation Network OIM 413 Logistics and Transportation Lecture 2: Representation of a Transportation Network Professor Anna Nagurney John F. Smith Memorial Professor and Director Virtual Center for Supernetworks Department

More information

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998 56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998 Part A: Answer any four of the five problems. (15 points each) 1. Transportation problem 2. Integer LP Model Formulation

More information

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1 4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1 Mathematical programming (optimization) problem: min f (x) s.t. x X R n set of feasible solutions with linear objective function

More information

Introduction to Mathematical Programming IE406. Lecture 16. Dr. Ted Ralphs

Introduction to Mathematical Programming IE406. Lecture 16. Dr. Ted Ralphs Introduction to Mathematical Programming IE406 Lecture 16 Dr. Ted Ralphs IE406 Lecture 16 1 Reading for This Lecture Bertsimas 7.1-7.3 IE406 Lecture 16 2 Network Flow Problems Networks are used to model

More information

2.3 Optimal paths. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

2.3 Optimal paths. E. Amaldi Foundations of Operations Research Politecnico di Milano 1 . Optimal paths E. Amaldi Foundations of Operations Research Politecnico di Milano Optimal (minimum or maximum) paths have a wide range of applications: Google maps, GPS navigators planning and management

More information

Lecture 2 Generalized Representation of a Transportation Network

Lecture 2 Generalized Representation of a Transportation Network Lecture 2 Generalized Representation of a Transportation Network Professor Anna Nagurney John F. Smith Memorial Professor and Director Virtual Center for Supernetworks Isenberg School of Management University

More information

2.3 Optimal paths. Optimal (shortest or longest) paths have a wide range of applications:

2.3 Optimal paths. Optimal (shortest or longest) paths have a wide range of applications: . Optimal paths Optimal (shortest or longest) paths have a wide range of applications: Google maps, GPS navigators planning and management of transportation, electrical and telecommunication networks project

More information

4. Linear Programming

4. Linear Programming /9/08 Systems Analysis in Construction CB Construction & Building Engineering Department- AASTMT by A h m e d E l h a k e e m & M o h a m e d S a i e d. Linear Programming Optimization Network Models -

More information

Classic Graph Theory Problems

Classic Graph Theory Problems Classic Graph Theory Problems Hiroki Sayama sayama@binghamton.edu The Origin Königsberg bridge problem Pregel River (Solved negatively by Euler in 176) Representation in a graph Can all the seven edges

More information

Optimization Methods in Management Science

Optimization Methods in Management Science Optimization Methods in Management Science MIT 15.053 Recitation 9 TAs: Giacomo Nannicini, Ebrahim Nasrabadi Problem 1 We apply Dijkstra s algorithm to the network given below to find the shortest path

More information

2.3 Algorithms Using Map-Reduce

2.3 Algorithms Using Map-Reduce 28 CHAPTER 2. MAP-REDUCE AND THE NEW SOFTWARE STACK one becomes available. The Master must also inform each Reduce task that the location of its input from that Map task has changed. Dealing with a failure

More information

The AMPL approach. # used in distributing starting periods

The AMPL approach. # used in distributing starting periods Introduction We describe two approaches to a network scheduling problem, one using the student version of AMPL (Fourer, Gay and Kernighan 1993) which in turn can call one of a variety of l.p. solvers.

More information

Network Flow Models. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Network Flow Models. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7 7-1 Chapter Topics The Shortest Route Problem The Minimal Spanning Tree Problem The Maximal Flow Problem 7-2 Network Components A network is an arrangement of paths (branches)

More information

Introduction to Mosel and Xpress

Introduction to Mosel and Xpress ORLAB - Operations Research Laboratory Politecnico di Milano, Italy April 15, 2011 From Modeling to Strategies Model Algorithms Solution(s) Problem Modeling Interpretation Strategy From Modeling to Strategies

More information

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014

The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014 The Islamic University of Gaza Faculty of Commerce Quantitative Analysis - Dr. Samir Safi Midterm #2-28/4/2014 Name TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 1)

More information

All Shortest Paths. Questions from exercises and exams

All Shortest Paths. Questions from exercises and exams All Shortest Paths Questions from exercises and exams The Problem: G = (V, E, w) is a weighted directed graph. We want to find the shortest path between any pair of vertices in G. Example: find the distance

More information

of optimization problems. In this chapter, it is explained that what network design

of optimization problems. In this chapter, it is explained that what network design CHAPTER 2 Network Design Network design is one of the most important and most frequently encountered classes of optimization problems. In this chapter, it is explained that what network design is? The

More information

V. Solving Integer Linear Programs

V. Solving Integer Linear Programs Optimization Methods Draft of August 26, 2005 V. Solving Integer Linear Programs Robert Fourer Department of Industrial Engineering and Management Sciences Northwestern University Evanston, Illinois 60208-3119,

More information

1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes:

1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes: 1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes: x 1 = -8.75-3.1 x 2 + 4.2 x 3 + 7 x 5-8 x 6 2. What constraint is added? 3. What do you need

More information

IV. Special Linear Programming Models

IV. Special Linear Programming Models IV. Special Linear Programming Models Some types of LP problems have a special structure and occur so frequently that we consider them separately. A. The Transportation Problem - Transportation Model -

More information

New Interface Developments in the AMPL Modeling Language & System

New Interface Developments in the AMPL Modeling Language & System New Interface Developments in the AMPL Modeling Language & System Robert Fourer AMPL Optimization Inc. www.ampl.com +1 773-336-AMPL EURO-INFORMS Joint International Meeting Rome 1-4 July 2013 Track TB-56,

More information

Exploration Assignment #1. (Linear Systems)

Exploration Assignment #1. (Linear Systems) Math 0280 Introduction to Matrices and Linear Algebra Exploration Assignment #1 (Linear Systems) Acknowledgment The MATLAB assignments for Math 0280 were developed by Jonathan Rubin with the help of Matthew

More information

Overview. H. R. Alvarez A., Ph. D.

Overview. H. R. Alvarez A., Ph. D. Network Modeling Overview Networks arise in numerous settings: transportation, electrical, and communication networks, for example. Network representations also are widely used for problems in such diverse

More information

D-BAUG Informatik I. Exercise session: week 5 HS 2018

D-BAUG Informatik I. Exercise session: week 5 HS 2018 1 D-BAUG Informatik I Exercise session: week 5 HS 2018 Homework 2 Questions? Matrix and Vector in Java 3 Vector v of length n: Matrix and Vector in Java 3 Vector v of length n: double[] v = new double[n];

More information

APPLICATION FOR LAUREA PROGRAMMES: HOW TO REGISTER FOR THE ENTRANCE TEST

APPLICATION FOR LAUREA PROGRAMMES: HOW TO REGISTER FOR THE ENTRANCE TEST APPLICATION FOR LAUREA PROGRAMMES: HOW TO REGISTER FOR THE ENTRANCE TEST Welcome to these guidelines. In order to ease your application as much as possible, we have summarized in a few pages all the main

More information

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta.

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta. Prepared By Handaru Jati, Ph.D Universitas Negeri Yogyakarta handaru@uny.ac.id Chapter 8 Using The Excel Solver To Solve Mathematical Programs Chapter Overview 8.1 Introduction 8.2 Formulating Mathematical

More information

A New Quick Algorithm for Finding the Minimal Spanning Tree

A New Quick Algorithm for Finding the Minimal Spanning Tree A New Quick Algorithm for Finding the Minimal Spanning Tree Mai Mismar Al-Quds Open University, Nablus-Palestine ABSTRACT In this paper, I propose a new Algorithm for finding the minimal spanning tree

More information

What is Network Analyst?

What is Network Analyst? What is Network Analyst? Extension for analyzing transportation networks Four network solvers Route Closest Facility Service Area Uses Network Datasets Origin-Destination (OD) Cost Matrix Specialized layers

More information

Introduction to Management Science (8th Edition, Bernard W. Taylor III) Chapter 12 Network Flow Models. Chapter 12 - Network Flow Models 1

Introduction to Management Science (8th Edition, Bernard W. Taylor III) Chapter 12 Network Flow Models. Chapter 12 - Network Flow Models 1 Introduction to Management Science (8th Edition, Bernard W. Taylor III) Chapter 12 Network Flow Models Chapter 12 - Network Flow Models 1 Chapter Topics The Shortest Route Problem The Minimal Spanning

More information

Vodafone 5G Trial for the metropolitan area of Milano

Vodafone 5G Trial for the metropolitan area of Milano Vodafone 5G Trial for the metropolitan area of Milano Sabrina Baggioni 5G Program Director, Vodafone Italia Politecnico di Milano, 10 Luglio 2018 Why Vodafone at an International Conference for Automotive?

More information

Minimal Equation Sets for Output Computation in Object-Oriented Models

Minimal Equation Sets for Output Computation in Object-Oriented Models Minimal Equation Sets for Output Computation in Object-Oriented Models Vincenzo Manzoni Francesco Casella Dipartimento di Elettronica e Informazione, Politecnico di Milano Piazza Leonardo da Vinci 3, 033

More information

New AMPL Interfaces for Enhanced Optimization Model Development and Deployment

New AMPL Interfaces for Enhanced Optimization Model Development and Deployment New AMPL Interfaces for Enhanced Optimization Model Development and Deployment Robert Fourer AMPL Optimization Inc. www.ampl.com +1 773-336-AMPL INFORMS Annual Meeting Minneapolis 6-9 October 2013 Session

More information

Network Analyst: An Introduction

Network Analyst: An Introduction 2013 Esri International User Conference July 8 12, 2013 San Diego, California Technical Workshop Network Analyst: An Introduction Patrick Stevens Robert Garrity Esri UC2013. Technical Workshop. Introduction

More information

Material handling and Transportation in Logistics. Paolo Detti Dipartimento di Ingegneria dell Informazione e Scienze Matematiche Università di Siena

Material handling and Transportation in Logistics. Paolo Detti Dipartimento di Ingegneria dell Informazione e Scienze Matematiche Università di Siena Material handling and Transportation in Logistics Paolo Detti Dipartimento di Ingegneria dell Informazione e Scienze Matematiche Università di Siena Introduction to Graph Theory Graph Theory As Mathematical

More information

We have already seen the transportation problem and the assignment problem. Let us take the transportation problem, first.

We have already seen the transportation problem and the assignment problem. Let us take the transportation problem, first. Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 19 Network Models In this lecture, we will discuss network models. (Refer

More information

CS1 Lecture 4 Jan. 23, 2019

CS1 Lecture 4 Jan. 23, 2019 CS1 Lecture 4 Jan. 23, 2019 First graded discussion sections this week yesterday/today 10 DS assignments worth 2 points each everyone gets one free 2-pointer. I.e. your lowest DS grade will be replaced

More information

2.2 Optimal cost spanning trees

2.2 Optimal cost spanning trees . Optimal cost spanning trees Spanning trees have a number of applications: network design (communication, electrical,...) IP network protocols compact memory storage (DNA)... E. Amaldi Foundations of

More information

Parallel Graph Algorithms

Parallel Graph Algorithms Parallel Graph Algorithms Design and Analysis of Parallel Algorithms 5DV050/VT3 Part I Introduction Overview Graphs definitions & representations Minimal Spanning Tree (MST) Prim s algorithm Single Source

More information

Problem A: Optimal Array Multiplication Sequence

Problem A: Optimal Array Multiplication Sequence Problem A: Optimal Array Multiplication Sequence Source: Input: Output: array.{c cc cpp} stdin stdout Given two arrays A and B, we can determine the array C = A B using the standard definition of matrix

More information

OPTIMIZATION. joint course with. Ottimizzazione Discreta and Complementi di R.O. Edoardo Amaldi. DEIB Politecnico di Milano

OPTIMIZATION. joint course with. Ottimizzazione Discreta and Complementi di R.O. Edoardo Amaldi. DEIB Politecnico di Milano OPTIMIZATION joint course with Ottimizzazione Discreta and Complementi di R.O. Edoardo Amaldi DEIB Politecnico di Milano edoardo.amaldi@polimi.it Website: http://home.deib.polimi.it/amaldi/opt-16-17.shtml

More information

Shortest Paths. Nishant Mehta Lectures 10 and 11

Shortest Paths. Nishant Mehta Lectures 10 and 11 Shortest Paths Nishant Mehta Lectures 0 and Finding the Fastest Way to Travel between Two Intersections in Vancouver Granville St and W Hastings St Homer St and W Hastings St 6 Granville St and W Pender

More information

Solutions for Operations Research Final Exam

Solutions for Operations Research Final Exam Solutions for Operations Research Final Exam. (a) The buffer stock is B = i a i = a + a + a + a + a + a 6 + a 7 = + + + + + + =. And the transportation tableau corresponding to the transshipment problem

More information

Chapter 10. Fundamental Network Algorithms. M. E. J. Newman. May 6, M. E. J. Newman Chapter 10 May 6, / 33

Chapter 10. Fundamental Network Algorithms. M. E. J. Newman. May 6, M. E. J. Newman Chapter 10 May 6, / 33 Chapter 10 Fundamental Network Algorithms M. E. J. Newman May 6, 2015 M. E. J. Newman Chapter 10 May 6, 2015 1 / 33 Table of Contents 1 Algorithms for Degrees and Degree Distributions Degree-Degree Correlation

More information

Transportation Planning: The maximum flow problem

Transportation Planning: The maximum flow problem Transportation lanning: The maximum flow problem In many applications, and especially in the planning of Transportation and Logistics of materials, one important problem is that of finding how much material

More information

Solutions to Assignment# 4

Solutions to Assignment# 4 Solutions to Assignment# 4 Liana Yepremyan 1 Nov.12: Text p. 651 problem 1 Solution: (a) One example is the following. Consider the instance K = 2 and W = {1, 2, 1, 2}. The greedy algorithm would load

More information

Math/Stat 2300 Modeling using Graph Theory (March 23/25) from text A First Course in Mathematical Modeling, Giordano, Fox, Horton, Weir, 2009.

Math/Stat 2300 Modeling using Graph Theory (March 23/25) from text A First Course in Mathematical Modeling, Giordano, Fox, Horton, Weir, 2009. Math/Stat 2300 Modeling using Graph Theory (March 23/25) from text A First Course in Mathematical Modeling, Giordano, Fox, Horton, Weir, 2009. Describing Graphs (8.2) A graph is a mathematical way of describing

More information

Notes for Lecture 24

Notes for Lecture 24 U.C. Berkeley CS170: Intro to CS Theory Handout N24 Professor Luca Trevisan December 4, 2001 Notes for Lecture 24 1 Some NP-complete Numerical Problems 1.1 Subset Sum The Subset Sum problem is defined

More information

Ma/CS 6a Class 27: Shortest Paths

Ma/CS 6a Class 27: Shortest Paths // Ma/CS a Class 7: Shortest Paths By Adam Sheffer Naïve Path Planning Problem. We are given a map with cities and noncrossing roads between pairs of cities. Describe an algorithm for finding a path between

More information

AP Calculus. Extreme Values: Graphically. Slide 1 / 163 Slide 2 / 163. Slide 4 / 163. Slide 3 / 163. Slide 5 / 163. Slide 6 / 163

AP Calculus. Extreme Values: Graphically. Slide 1 / 163 Slide 2 / 163. Slide 4 / 163. Slide 3 / 163. Slide 5 / 163. Slide 6 / 163 Slide 1 / 163 Slide 2 / 163 AP Calculus Analyzing Functions Using Derivatives 2015-11-04 www.njctl.org Slide 3 / 163 Table of Contents click on the topic to go to that section Slide 4 / 163 Extreme Values

More information

Networks in GIS. Geometric Network. Network Dataset. Utilities and rivers One-way flow. Traffic data 2-way flow Multi-modal data

Networks in GIS. Geometric Network. Network Dataset. Utilities and rivers One-way flow. Traffic data 2-way flow Multi-modal data Unit 6: Networks Networks in GIS Model the flow of resources Consist of a set of connected centers or junctions (ArcGIS) displayed as points. Junctions are connected by links, or edges (ArcGIS) displayed

More information

Group Strategyproof Mechanisms via Primal-Dual Algorithms. Key Points to Discuss

Group Strategyproof Mechanisms via Primal-Dual Algorithms. Key Points to Discuss Group Strategyproof Mechanisms via Primal-Dual Algorithms Martin Pál and Éva Tardos (2003) Key Points to Discuss The Cost-Sharing Problem Metric Facility Location Single Source Rent-or-Buy Definition of

More information

Advanced Operations Research Techniques IE316. Lecture 10. Dr. Ted Ralphs

Advanced Operations Research Techniques IE316. Lecture 10. Dr. Ted Ralphs Advanced Operations Research Techniques IE316 Lecture 10 Dr. Ted Ralphs IE316 Lecture 10 1 Reading for This Lecture AMPL Book: Chapter 1 AMPL: A Mathematical Programming Language IE316 Lecture 10 2 Software

More information

Practical Use of ADUS for Real- Time Routing and Travel Time Prediction

Practical Use of ADUS for Real- Time Routing and Travel Time Prediction Practical Use of ADUS for Real- Time Routing and Travel Time Prediction Dr. Jaimyoung Kwon Statistics, Cal State East Bay, Hayward, CA, USA Dr. Karl Petty, Bill Morris, Eric Shieh Berkeley Transportation

More information

Algorithms IV. Dynamic Programming. Guoqiang Li. School of Software, Shanghai Jiao Tong University

Algorithms IV. Dynamic Programming. Guoqiang Li. School of Software, Shanghai Jiao Tong University Algorithms IV Dynamic Programming Guoqiang Li School of Software, Shanghai Jiao Tong University Dynamic Programming Shortest Paths in Dags, Revisited Shortest Paths in Dags, Revisited The special distinguishing

More information

Internet Measurements. Motivation

Internet Measurements. Motivation Internet Measurements Arvind Krishnamurthy Fall 2004 Motivation Types of measurements Understand the topology of the Internet Measure performance characteristics Tools: BGP Tables Traceroute measurements

More information

Credit Cards. Validating Credit Cards. Answers

Credit Cards. Validating Credit Cards. Answers Answers 7 8 9 10 11 12 TI-Nspire Coding Student 60 min Validating Credit Cards Imagine you are building a website that requires financial transactions to take place. Users need to enter their credit card

More information

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Honors Algebra 1 Semester 2 Final Exam Review Packet Name Date Period SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. Solve the equation. 1) 27x = 81

More information

2 hours THE UNIVERSITY OF MANCHESTER. 22 May :00 16:00

2 hours THE UNIVERSITY OF MANCHESTER. 22 May :00 16:00 2 hours THE UNIVERSITY OF MANCHESTER DISCRETE MATHEMATICS 22 May 2015 14:00 16:00 Answer ALL THREE questions in Section A (30 marks in total) and TWO of the THREE questions in Section B (50 marks in total).

More information

Use the Associative Property of Multiplication to find the product.

Use the Associative Property of Multiplication to find the product. 3-1 1. The Associative Property of Multiplication states factors can be grouped differently and the product remains the same. Changing the grouping of the factors changes the factors that are multiplied

More information

FOUNDATIONS OF OPERATIONS RESEARCH

FOUNDATIONS OF OPERATIONS RESEARCH Master of Science in Computer Engineering FOUNDATIONS OF OPERATIONS RESEARCH Edoardo Amaldi DEI - Politecnico di Milano amaldi@elet.polimi.it Course website: http://home.dei.polimi.it/amaldi/for-10-11.html

More information

MAXIMAL FLOW THROUGH A NETWORK

MAXIMAL FLOW THROUGH A NETWORK MAXIMAL FLOW THROUGH A NETWORK L. R. FORD, JR. AND D. R. FULKERSON Introduction. The problem discussed in this paper was formulated by T. Harris as follows: "Consider a rail network connecting two cities

More information

Computer Project #2 (Matrix Operations)

Computer Project #2 (Matrix Operations) Math 0280 Introduction to Matrices and Linear Algebra Fall 2006 Computer Project #2 (Matrix Operations) SCHEDULE: This assignment is due in class on Monday, October 23, 2006. One submission per group is

More information

STRAIGHT LINE GRAPHS THE COORDINATES OF A POINT. The coordinates of any point are written as an ordered pair (x, y)

STRAIGHT LINE GRAPHS THE COORDINATES OF A POINT. The coordinates of any point are written as an ordered pair (x, y) THE COORDINATES OF A POINT STRAIGHT LINE GRAPHS The coordinates of any point are written as an ordered pair (x, y) Point P in the diagram has coordinates (2, 3). Its horizontal distance along the x axis

More information

2.3.4 Optimal paths in directed acyclic graphs

2.3.4 Optimal paths in directed acyclic graphs .3.4 Optimal paths in directed acyclic graphs Definition: A directed graph G = (N, A) is acyclic if it contains no circuits. A directed acyclic graph is referred to as DAG. circuit Problem Given a directed

More information

Multi-Objective Path Search Problem Based on an Extended Network Model

Multi-Objective Path Search Problem Based on an Extended Network Model Proceedings of the 2014 International Conference on Industrial Engineering and Operations Management Bali, Indonesia, January 7 9, 2014 Multi-Objective Path Search Problem Based on an Extended Network

More information

Characteristics of Optimal Solutions to the Sensor Location Problem

Characteristics of Optimal Solutions to the Sensor Location Problem Characteristics of Optimal Solutions to the Sensor Location Problem David R. Morrison Susan Martonosi, Advisor Kimberly Tucker, Reader May, 2008 Department of Mathematics Copyright c 2008 David R. Morrison.

More information

Class VIII Chapter 10 Visualising Solid Shapes Maths

Class VIII Chapter 10 Visualising Solid Shapes Maths Exercise 10.1 Question 1: For each of the given solid, the two views are given. Match for each solid the corresponding top and front views. The given solids, matched to their respective side view and top

More information

Network Analyst Creating Network Datasets

Network Analyst Creating Network Datasets 2013 Esri International User Conference July 8 12, 2013 San Diego, California Technical Workshop Network Analyst Creating Network Datasets Colin Childs Alan Hatakeyama Esri UC2013. Technical Workshop.

More information