Linköping Institute of Technology Department of Mathematics/Division of Optimization Kaj Holmberg. Lab Information

Similar documents
1 General Principles. General Principles. In this chapter 1-1

Lesson 4 - Creating a Text Document Using WordPad

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

The Fundamentals. Document Basics

Figure 1: The excel document used to personalize a race car by changing the values of 5 parameters

Adobe illustrator Introduction

CHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows

Dremel Digilab 3D Slicer Software

Adobe Photoshop CS2 Reference Guide For Windows

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

HYPERSTUDIO TOOLS. THE GRAPHIC TOOL Use this tool to select graphics to edit. SPRAY PAINT CAN Scatter lots of tiny dots with this tool.

Chapter 1: Quick Start

Introduction to Microsoft Excel 2010

Tutorial 1 Engraved Brass Plate R

9 Tables Part I. Session 45: Creating Tables Session 46: Modifying the Layout of Tables Session 47: Formatting the Design of Tables. Unit.

SHARPE Interface User's Manual Version 1.01

Anima-LP. Version 2.1alpha. User's Manual. August 10, 1992

Making Windows XP work for you

MatDeck tips. Basic. :=- assignment of variable values; assign value to variable a with code a := value

Chapter 1. Getting to Know Illustrator

Excel & Business Math Video/Class Project #01 Introduction to Excel. Why We Use Excel for Math. First Formula.

Guide to WB Annotations

The first time you open Word

Windows Me Navigating

Day : Date : Objects : Open MS Excel program * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office.

Lecture- 5. Introduction to Microsoft Excel

Quick Start. Getting Started

MIMAKI ENGINEERING CO., LTD.

Quick Start Guide. ASR Automated Systems Research Inc. Toll free: Fax:

Introduction to Microsoft Excel 2010

INKSCRIBE SHORTCUTS SERIES. astutegraphics.com. InkScribe Panel or annotated buttons

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar

AEMLog Users Guide. Version 1.01

Theorem 2.9: nearest addition algorithm

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

Moving and copying data

Introduction to MS Word XP 2002: An Overview

Microsoft Excel Microsoft Excel

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Adobe InDesign CS6 Tutorial

Using Adobe Photoshop

ITEC102 INFORMATION TECHNOLOGIES

ELECOM MouseAssistant

Microsoft Word: Steps To Success (The Bare Essentials)

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...

Intermediate Microsoft Excel (Demonstrated using Windows XP) Using Spreadsheets in the Classroom

On the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW

Lesson 5: Creating Heterogeneous Parts

Contents Microsoft Excel Lesson 1: Entering Text and Numbers...4 The Microsoft Excel Window...4 The Microsoft Office Button...

Using Microsoft Word. Text Editing

Section 3 Formatting

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:

Useful Photoshop Keyboard Shortcuts

Chapter 1. Getting Started with AutoCAD

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science. EECS 150 Spring 2000

Peripheral Devices devices attached to the CPU (computer)

Word Creating & Using Tables. IT Training & Development (818) Information Technology

Microsoft Word 2016 by Prapaporn Techa-angkoon adapted into English by Dr. Prakarn Unachak

Word 2007: Flowcharts Learning guide

The (Over) Zealous Snow Remover Problem

Windows 10 Essentials

Microsoft Excel 2010 Handout

Module 1. Selection of Variables

Using Microsoft Excel

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas.

Using Microsoft Excel

Overview: The Map Window

Create a Scrapbook Page

Rubik s Cube in SketchUp

Top Producer 7i Tips & Tricks Volume 1

MS Word Basic Word 2007 Concepts

Adobe Illustrator CS Design Professional GETTING STARTED WITH ILLUSTRATOR

Word 2013 Quick Start Guide

ArtCAM Pro 5.5. Double click the ArtCAM Pro icon on the screen with the Left mouse button.

Labels and Envelopes in Word 2013

Getting Started with AnyBook

Logger Pro Resource Sheet

FSA Algebra 1 EOC Practice Test Guide

FSA Algebra 1 EOC Practice Test Guide

MICROSOFT WORD 2010 BASICS

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Chapter 2 Using Slide Masters, Styles, and Templates

CADAM Drafting Hints and Tips

MICROSOFT PROJECT 2010 EXERCISE

Working with Spectrum Tabs, Plots, and Charts

13. Albums & Multi-Image Printing

Beyond 20/20. Browser - English. Version 7.0, SP3

Introduction to Microsoft Publisher

Software Introduction

Setup Contacts Add Compose Letter Compose Letter

Microsoft Excel 2010 Tutorial

4) Study the section of a worksheet in the image below. What is the cell address of the cell containing the word "Qtr3"?

Microsoft. Computer Training Center 1515 SW 10 th Avenue Topeka KS

Table of contents. Excel in English. Important information LAYOUT. Format Painter. Format Painter. Fix columns. Fix columns.

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

Press the Plus + key to zoom in. Press the Minus - key to zoom out. Scroll the mouse wheel away from you to zoom in; towards you to zoom out.

Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office

SILVACO. An Intuitive Front-End to Effective and Efficient Schematic Capture Design INSIDE. Introduction. Concepts of Scholar Schematic Capture

Boise State University. Getting To Know FrontPage 2000: A Tutorial

DW DIGs Model Windows Tricks

Transcription:

Linköping Institute of Technology 2017 03 17 Department of Mathematics/Division of Optimization Kaj Holmberg Lab Information 1 VINEOPT: Visual Network Optimization 1.1 Introduction VINEOPT is a program for visualization and optimization of graph and network problems, such as the linear minimum cost flow problem, the maximum flow problem and the shortest path problem, as well as the minimal spanning tree problem, the traveling salesman problem and the Chinese postman problem. The program supports graphical input of network data and plots the network on the screen. One can change the network in various ways (i.e. change all network data), and change the network picture (zoom, etc.). One can save the changed network. Moreover one can solve the optimization problem, and the solution is visualized in the network or shown in the tables. The program is implemented in Tcl/Tk by Kaj Holmberg, and run as a tclkit. To run the program, start a terminal window, set the search paths by writing module add ext/mai and module add math/optlab and then write dine 1. 1.2 Main window VINEOPT starts with a window where the majority of operations take place. The window contains the following parts. Under the title bar, there is a main menu bar with the submenus File Alt -f, Optimize Alt -o, Visual Alt -v, Change Alt -c, Check Alt -e, Selection Alt -s, Sets Alt -t, Help Alt -h. The first status bar under the graphic window displays various information. The second status bar displays what mode is used (see section 1.5.4), then the problem name and size. The last part of the row contains the coordinates for the mouse pointer (with the current scaling). When the coordinate square is red, the program performs computations or is busy with reading/writing data, and one should wait before another command is executed. The third status bar provides brief instructions about what to do in a current situation, and sometimes what has been just done. Finally the forth status bar displays the problem type and whether one has changed the problem without saving it. 1

1.3 Network types VINEOPT can deal with many kinds of problems, based on various network types. A fundamental problem type is a linear minimum cost flow problem in a directed network, with the following data. Arcs: starting node, ending node, arc costs, lower bounds, upper bounds. Nodes: demand (strength of source/sink). Coordinates for the nodes (x,y). Node names. 1.4 Shortcuts The following shortcuts are useful. Space : OK (instead of Enter/Return). F4: Quit program. F3: Close active window. F10: Open File menu. Pressing simultaneously Control and an arrow button (right/left/up/down) moves the network in the corresponding direction. If also Shift is pressed, the movement steps are larger. Control together with = gives free zoom. If the mouse is moved with the middle button pressed down, the whole picture of the network is moved. Control together with + or - gives zooming (in/out). Control together with * yields free move f the picture. Finally, Control -( increase node size and Control -( decrease node size. ( Autoscale in Visualization is an option to recover the network if you accidentally did something wrong.) There is a special window for numerical input of data, which can be edited (using standard commands). Write only digits and avoid writing letters, other signs or Enter/Return. Tab move mouse to the next box or button. Control -s saves data, which is good to do often, since VINEOPT has no Undo command. Simultaneously pressing Control, Shift and the left button on mouse, enables temporary markings in the graphic window. Avoid Enter/Return completely in VINEOPT. Space bar can often be used for accepting standard answers. A complete list of shortcuts is available in the Help menu. 1.5 Menus 1.5.1 File Here one can read input data for a problem. (Input data contains information about the network type, which is set automatically.) One can also save data in a current file or in a new one. Also the shortcut Control -s can be used to save data. The picture of the graph can be exported as a postscript file, or printed out directly. It is also possible to list and 2

erase existing network files. 1.5.2 Optimize VINEOPT contain solvers for (among others) the following optimization problems. Min cost flow problem. (D) Max flow problem. (D) Shortest path between two nodes, from one to all, from all to one. (D,U) Shortest path between all node pairs. (D,U) Maximal spanning tree. (U) Maximal cost 1-tree. (U) Strongly connected components. (U) Maximal weighted matching. (U) Minimal weighted perfect matching. (U) Chinese postman problem. (D,U) Rural postman problem. (D,U) Traveling salesman problem. (D,U) Traveling salesman problem with repetitions. (U) Each optimization problem in the list above is marked with D if it can be solved for directed graphs, and with U if it can be solved for undirected graphs. Some of the optimization codes are free for academical (non-commercial) usage. Some of the codes are own implementations. When the optimal solution is found, VINEOPT displays the total cost in the lower righthand side corner. A numerical list of the optimal flow can be also displayed, if required. 1.5.3 Visual Here the graphic presentation of the network is chosen. One can choose whether or not to display nodes, arcs, node names, etc. It is possible to mark arcs with flow, arcs included in the minimum cut, etc. Arc costs, capacities and flow as well as demand data and node prices can be displayed in the network. Shortest paths and maximal spanning tree can be displayed. One can also choose how to draw the connection of the arcs to the nodes. One can mark a node with a certain name. It is possible to zoom in/out, make nodes larger or smaller, and move the network up/down/right/left by large or small steps. One can also adjust the best scaling. Moreover, all colors can be changed and number for arcs and nodes be moved. A background figure (in gif format) can be displayed in the graphic window (but it will not move with the graph). One can also see all data and solutions numerically in separate windows, which can be printed out or saved in a file. Shortcut Control -f displays the current flow and shortcut Control -t displays the current tour. 3

1.5.4 Change Here one decides in which mode to change a graph. The chosen set-up holds until it is changed. The following set-ups are available (with a shortcut in brackets): Move node. F2 Add node. F5 Delete node. F6 Change demand. F7 Add link. F8 Change link. F9 Delete link. Move link. Add node in the middle of a link. Choose starting node. Control -a Choose ending node. Control -z Swap two nodes. Select a set of nodes. Data can also be changed in a table format. A directed graph can be made undirected, and an undirected one directed. It is possible to add/remove many arcs in various ways, e.g. to get a complete graph. Multiple data can be changed at a time, e.g. add a constant to all arc costs/capacities or set a particular value to all arc costs/capacities. Selection of node: The node closest to the cursor when the left button on the mouse is pressed is chosen. Selection of link: A link is chosen either by clicking on it (which requires precision) or by choosing first its starting node and then its ending node. (VINEOPT does not handle parallel links.) The following is done in the different modes. Move node: The node closets to the cursor is chosen when the left mouse button is depressed, and moved as long as the button is held down. Add node: The new node is place at the cursor when the left mouse button is pressed. The node is given demand zero. Delete node: The node closest to the cursor is removed when the left mouse button is depressed. All links adjacent to the node are also removed. Change demand: The node closest to the cursor when pressing the left mouse button is chosen. A small window appears, with the current net demand, where the net demand can be entered. Add link: The node closest to the cursor when the left mouse button is pressed for the first time is chosen as starting node. The node closest to the cursor when the left mouse button is pressed for the second time is chosen as ending node. When starting and ending nodes have been chosen, a menu appears with a suggested link cost (the Euclidean distance between the two nodes multiplied with the distance factor), a suggested link capacity (very large) and lower bound for flow (zero). All these numbers can be changed, and are saved 4

by clicking on Save. Change link data: The link is chosen as described above. Then data is changed in the appearing link data form. Delete link: The link is chosen as above, and is (if it exists) removed immediately. Move link: The link to be moved is chosen as above. After this, the new starting node and ending nodes are chosen. The link is moved, keeping all its data. Add a node in the middle of a link: A link is chosen as above. The data of the original link is placed on the first of the two new links. The second link is given link cost zero, large capacity and lower bound equal to zero. Choose starting node: The node closest to the cursor when the left mouse button is pressed is chosen. Choose ending node: The node closest to the cursor when the left mouse button is pressed is chosen. Swap two nodes: The two nodes are chosen as above, and their coordiantes are exchanged. 1.5.5 Check Network data can be checked in various ways. One can sum up demand (this should be zero in case of a min cost flow problem). One can check whether the triangular inequality holds, examine node degrees and check whether the graph is connected. 1.5.6 Selection One can select node or link sets, graphically or in tables, in various ways. Then one can perform many different changes in the selected node or link set. (Many changes are the same as in the menu Change, but only for the selected nodes or links.) 1.5.7 Sets When one has selected certain nodes or links, one can define them as a node or link set. One can define several different node and/or link sets, and let those nodes/links which are not included create a new set. These sets can be saved on file and read from file. 1.5.8 Help Here one can get a short help text in a separate window, in Swedish or English. One can also get a list of the available shortcuts. 5

One can choose between two user levels, novice and expert, where in the later case one gets fewer questions like Are you really sure to remove this node?. Shortcut Control -e selects user level expert. There is also a possibility to remove all temporary files and cancel input phase (e.g. when the program waits for value for an ending node). Shortcut Control -i cancel input phase. One can also look at the problem commentaries saved in a logfile together with the problem. 1.6 Right-click menu By clicking the right button of the mouse while the pointer is in the graphic window, one can make certain changes related to the node closest to the pointer, with the help of a context menu. One can remove the node (and all adjacent links), change its name or demand. Moreover, it is possible to remove or change data for a link adjacent to the node. Then the link is selected in a menu which contains all links adjacent to this node. If the pointer is at a link (so that the link is blue), then one instead gets a menu for links, with similar options. (It can be difficult to point at a required link exactly, therefore sometimes it could be better to select links with the help of nodes.) 1.7 Finally VINEOPT is in the process of continuous development. New improvements are added faster than the documentation is updated. Please check the menus in the program. Try not to get too angry if something does not work. There is no program without bugs. VINEOPT has no Undo command, so one can not go back. Therefore save your network often. If the program behaves strangely, the easiest remedy is to quit the program, start it again, read the problem and continue from where you were. Never try to use the program after an error message. 6