Usage of the Mathematical Programming for Solving the Allocation Problem

Total Page:16

File Type:pdf, Size:1020Kb

Usage of the Mathematical Programming for Solving the Allocation Problem Usage of the mathematical programming for solving the allocation problem. 5th FRUCT seminar. Eugene Gavrin [email protected] Introduction Information systems strive to efficiently utilizing massive distributed and parallel systems Programs with high number of inter-task communications may hardly increase execution time by adding communication delays The optimal task allocation can significantly decrease the total execution time by balancing with several criteria 2 Allocation problem Allocation problem arises, when: The number of processes exceeds the number of available PEs Dependencies in parallel algorithm differs from PE interconnection of the parallel platform Allocation purposes: Minimize the total program execution time Get results in the reasonable time Common optimization criteria To obtain the optimal allocation of tasks on processor elements (PE) it is needed to take into account different criteria of optimization. Main of them are: Execution time PE workload The amount of data transmitted over the network Power consumption etc… 4 Allocation task formulation We consider the simplified platform where every PE can directly interact with each other. As source data we have: Platform description (set of PEs) Program graph specification (set of tasks and their interaction) The selected criteria for allocation are: PE workload balancing The amount of data transmitted over the network 5 Overview of solution method Method for solving: Linear programming Solver: GLPK Convenient API Provides simple formalization language Free and open source 6 Formal description: balancing P – is the set of distributed processors T – is the set of tasks to run on the processors qtp – is execution cost of task t on processor p xtp – is the binary decision variable that is equal to 1 if task t is assigned on to processor p ⎡ n ⎤ ⎡ n ⎤ max q()tp ⋅ tp x − min q ()tp⋅ x tp p∈ P ⎢∑ ⎥ p∈ P⎢∑ ⎥ ⎣ t=1 ⎦ ⎣ t=1 ⎦ 7 Formal description: amount of data U – communication between Ti and Tj during processing Cij – communication cost between tasks Ti and Tj 8 Task describing (MathProg) Sets Parameters Variables Objective function Additional limitations 9 Developed toolset scheme 10 Allocation results example ? 11 Allocation results example 12 Results Described problem with the mathematical programming formalism Described task allocation problem in MathProg Implemented a tool set for solving the task allocation problem A successful integration into existing projects Confirmed effectiveness of the proposed method 13 Plans on future Explore possibility to use Quadratic Programming instead of Linear Programming Explore the possibility of solving this difficult problems in parallel Perform computations on the graphics accelerators 14 Many thanks for your attention. You may contact me at [email protected] 15 16 Questions [GLPK alternatives] Free and opensource: CVXOPT glpk Qoca CVXGPL Commercial: AIMMS AMPL CPLEX EXCEL LibrariesLingoMATLABMathematica MOPS MOSEK OptimJ SAS Xpress-MP 17 Questions [Full LP problem] 18.
Recommended publications
  • Load Management and Demand Response in Small and Medium Data Centers
    Thiago Lara Vasques Load Management and Demand Response in Small and Medium Data Centers PhD Thesis in Sustainable Energy Systems, supervised by Professor Pedro Manuel Soares Moura, submitted to the Department of Mechanical Engineering, Faculty of Sciences and Technology of the University of Coimbra May 2018 Load Management and Demand Response in Small and Medium Data Centers by Thiago Lara Vasques PhD Thesis in Sustainable Energy Systems in the framework of the Energy for Sustainability Initiative of the University of Coimbra and MIT Portugal Program, submitted to the Department of Mechanical Engineering, Faculty of Sciences and Technology of the University of Coimbra Thesis Supervisor Professor Pedro Manuel Soares Moura Department of Electrical and Computers Engineering, University of Coimbra May 2018 This thesis has been developed under the Energy for Sustainability Initiative of the University of Coimbra and been supported by CAPES (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior – Brazil). ACKNOWLEDGEMENTS First and foremost, I would like to thank God for coming to the conclusion of this work with health, courage, perseverance and above all, with a miraculous amount of love that surrounds and graces me. The work of this thesis has also the direct and indirect contribution of many people, who I feel honored to thank. I would like to express my gratitude to my supervisor, Professor Pedro Manuel Soares Moura, for his generosity in opening the doors of the University of Coimbra by giving me the possibility of his orientation when I was a stranger. Subsequently, by his teachings, guidance and support in difficult times. You, Professor, inspire me with your humbleness given the knowledge you possess.
    [Show full text]
  • Research and Development of an Open Source System for Algebraic Modeling Languages
    Vilnius University Institute of Data Science and Digital Technologies LITHUANIA INFORMATICS (N009) RESEARCH AND DEVELOPMENT OF AN OPEN SOURCE SYSTEM FOR ALGEBRAIC MODELING LANGUAGES Vaidas Juseviˇcius October 2020 Technical Report DMSTI-DS-N009-20-05 VU Institute of Data Science and Digital Technologies, Akademijos str. 4, Vilnius LT-08412, Lithuania www.mii.lt Abstract In this work, we perform an extensive theoretical and experimental analysis of the char- acteristics of five of the most prominent algebraic modeling languages (AMPL, AIMMS, GAMS, JuMP, Pyomo), and modeling systems supporting them. In our theoretical comparison, we evaluate how the features of the reviewed languages match with the requirements for modern AMLs, while in the experimental analysis we use a purpose-built test model li- brary to perform extensive benchmarks of the various AMLs. We then determine the best performing AMLs by comparing the time needed to create model instances for spe- cific type of optimization problems and analyze the impact that the presolve procedures performed by various AMLs have on the actual problem-solving times. Lastly, we pro- vide insights on which AMLs performed best and features that we deem important in the current landscape of mathematical optimization. Keywords: Algebraic modeling languages, Optimization, AMPL, GAMS, JuMP, Py- omo DMSTI-DS-N009-20-05 2 Contents 1 Introduction ................................................................................................. 4 2 Algebraic Modeling Languages .........................................................................
    [Show full text]
  • A Mixed Integer Linear Programming Approach for Developing Salary Administration Systems
    University of Tennessee, Knoxville TRACE: Tennessee Research and Creative Exchange Masters Theses Graduate School 12-2016 A MIXED INTEGER LINEAR PROGRAMMING APPROACH FOR DEVELOPING SALARY ADMINISTRATION SYSTEMS Taner Cokyasar University of Tennessee, Knoxville, [email protected] Follow this and additional works at: https://trace.tennessee.edu/utk_gradthes Part of the Benefits and Compensation Commons, Industrial Engineering Commons, and the Operational Research Commons Recommended Citation Cokyasar, Taner, "A MIXED INTEGER LINEAR PROGRAMMING APPROACH FOR DEVELOPING SALARY ADMINISTRATION SYSTEMS. " Master's Thesis, University of Tennessee, 2016. https://trace.tennessee.edu/utk_gradthes/4282 This Thesis is brought to you for free and open access by the Graduate School at TRACE: Tennessee Research and Creative Exchange. It has been accepted for inclusion in Masters Theses by an authorized administrator of TRACE: Tennessee Research and Creative Exchange. For more information, please contact [email protected]. To the Graduate Council: I am submitting herewith a thesis written by Taner Cokyasar entitled "A MIXED INTEGER LINEAR PROGRAMMING APPROACH FOR DEVELOPING SALARY ADMINISTRATION SYSTEMS." I have examined the final electronic copy of this thesis for form and content and recommend that it be accepted in partial fulfillment of the equirr ements for the degree of Master of Science, with a major in Industrial Engineering. Alberto Garcia, Major Professor We have read this thesis and recommend its acceptance: John E. Kobza, Rapinder Sawhney Accepted for the Council: Carolyn R. Hodges Vice Provost and Dean of the Graduate School (Original signatures are on file with official studentecor r ds.) A MIXED INTEGER LINEAR PROGRAMMING APPROACH FOR DEVELOPING SALARY ADMINISTRATION SYSTEMS A Thesis Presented for the Master of Science Degree The University of Tennessee, Knoxville Taner Cokyasar December 2016 Copyright © 2016 by Taner Cokyasar All rights reserved.
    [Show full text]
  • Comparative Programming Languages CM20253
    We have briefly covered many aspects of language design And there are many more factors we could talk about in making choices of language The End There are many languages out there, both general purpose and specialist And there are many more factors we could talk about in making choices of language The End There are many languages out there, both general purpose and specialist We have briefly covered many aspects of language design The End There are many languages out there, both general purpose and specialist We have briefly covered many aspects of language design And there are many more factors we could talk about in making choices of language Often a single project can use several languages, each suited to its part of the project And then the interopability of languages becomes important For example, can you easily join together code written in Java and C? The End Or languages And then the interopability of languages becomes important For example, can you easily join together code written in Java and C? The End Or languages Often a single project can use several languages, each suited to its part of the project For example, can you easily join together code written in Java and C? The End Or languages Often a single project can use several languages, each suited to its part of the project And then the interopability of languages becomes important The End Or languages Often a single project can use several languages, each suited to its part of the project And then the interopability of languages becomes important For example, can you easily
    [Show full text]
  • 1. Overview of Pyomo John D
    1. Overview of Pyomo John D. Siirola Discrete Math & Optimization (1464) Center for Computing Research Sandia National Laboratories Albuquerque, NM USA <VENUE> <DATE> Sandia National Laboratories is a multi-program laboratory managed and operated by Sandia Corporation, a wholly owned subsidiary of Lockheed Martin Corporation, for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000. SAND NO. 2011-XXXXP Pyomo Overview Idea: a Pythonic framework for formulating optimization models . Provide a natural syntax to describe mathematical models . Formulate large models with a concise syntax . Separate modeling and data declarations . Enable data import and export in commonly used formats # simple.py Highlights: from pyomo.environ import * . Python provides a M = ConcreteModel() clean, intuitive syntax M.x1 = Var() M.x2 = Var(bounds=(-1,1)) M.x3 = Var(bounds=(1,2)) . Python scripts provide M.o = Objective( a flexible context for expr=M.x1**2 + (M.x2*M.x3)**4 + \ exploring the structure M.x1*M.x3 + \ M.x2*sin(M.x1+M.x3) + M.x2) of Pyomo models model = M Overview of Pyomo 2 Overview . What happened to Coopr? . Three really good questions: . Why another Algebraic Modeling Language (AML)? . Why Python? . Why open-source? . Pyomo: Software library infrastructure . Pyomo: Team overview and collaborators / users . Where to find more information… Overview of Pyomo 3 What Happened to Coopr? . Users were installing Coopr but using Pyomo . Pyomo modeling extensions were not distinct enough . Researchers cited “Coopr/Pyomo” . Users/Developers were confused by the coopr and pyomo commands . Developers were coding in Coopr but talking about Pyomo We needed to provide clear branding this project! Overview of Pyomo 4 Optimization Modeling Goal: .
    [Show full text]
  • Experimental Analysis of Algebraic Modelling Languages for Mathematical Optimization
    INFORMATICA, 2021, Vol. 32, No. 2, 283–304 283 © 2021 Vilnius University DOI: https://doi.org/10.15388/21-INFOR447 Experimental Analysis of Algebraic Modelling Languages for Mathematical Optimization Vaidas JUSEVIČIUS1, Richard OBERDIECK2, Remigijus PAULAVIČIUS1,∗ 1 Vilnius University Institute of Data Science and Digital Technologies, Akademijos 4, LT-08663 Vilnius, Lithuania 2 Gurobi Optimization, LLC, USA e-mail: [email protected], [email protected], [email protected] Received: October 2020; accepted: March 2021 Abstract. In this work, we perform an extensive theoretical and experimental analysis of the charac- teristics of five of the most prominent algebraic modelling languages (AMPL, AIMMS, GAMS, JuMP, and Pyomo) and modelling systems supporting them. In our theoretical comparison, we evaluate how the reviewed modern algebraic modelling languages match the current requirements. In the experimental analysis, we use a purpose-built test model library to perform extensive benchmarks. We provide insights on which algebraic modelling languages performed the best and the features that we deem essential in the current mathematical optimization landscape. Finally, we highlight possible future research directions for this work. Key words: algebraic modelling languages, optimization, AMPL, AIMMS, GAMS, JuMP, Pyomo. 1. Introduction Many real-world problems are routinely solved using modern optimization tools (e.g. Ab- hishek et al., 2010; Fragniere and Gondzio, 2002; Groër et al., 2011; Paulavičius and Žilinskas, 2014; Paulavičius et al., 2020a, 2020b; Pistikopoulos et al., 2015). Internally, these tools use the combination of a mathematical model with an appropriate solution algorithm (e.g. Cosma et al., 2020; Fernández et al., 2020; Gómez et al., 2019;Leeet al., 2019; Paulavičius and Žilinskas, 2014; Paulavičius et al., 2014; Paulavičius and Ad- jiman, 2020; Stripinis et al., 2019, 2021) to solve the problem at hand.
    [Show full text]
  • Software Implementation for Optimization of Production Planning Within Refineries
    Vol.VII(LXX) 1 - 10 Economic Insights – Trends and Challenges No. 1/2018 Software Implementation for Optimization of Production Planning within Refineries Cătălin Popescu Faculty of Economic Sciences, Petroleum-Gas University of Ploieşti, Bd. Bucureşti 39, 100680, Ploieşti, Romania e-mail: [email protected] Abstract The paper will analyse the advantages of using the RPMS program in order to optimize the production plan and to decide on the structure of raw materials and final products within refineries. Also, the paper will include some real-time refining activities to be analysed with the aim of optimizing production. Key words: optimization; RPM; production planning; decision point JEL Classification: C44; C61; C63; L23; L86 Introduction The most popular manufacturing optimization software used today by most refineries are RPMS (Honeywell License), PIMS (Aspen License), and GRTMPS (Harperly Systems License), all based on the LP-Linear Programming principles. These allow modelling of the refinery by using different tables and aim to find the optimal solution taking into account a number of limitations introduced in LP, either linear or non-linear. The constant change in demand-to-offer ratio on the global energy market, as well as the diversity of raw materials and final products on the market require significant economic and financial assessment capacities in the shortest possible time. The development of information systems within companies has allowed shorten the time to assess opportunities and risks in making decisions in order to conclude contracts for the purchase and sale of petroleum products, by taking into account all the expenditures related to the production and transport of goods.
    [Show full text]
  • Algebraic Modeling Languages for Optimization Robert Fourer Northwestern University
    Algebraic Modeling Languages for Optimization Robert Fourer Northwestern University Algebraic modeling languages are sophisticated software packages that provide a key link between an analyst’s mathematical conception of an optimization model and the complex algorithmic routines that seek out optimal solutions. By allowing models to be described in the high-level, symbolic way that people think of them, while automating the translation to and from the quite different low-level forms required by algorithms, algebraic modeling languages greatly reduce the effort and increase the reliability of formulation and analysis. They have thus played an essential role in the spread of optimization to all aspects to OR/MS and to many allied disciplines. Background and motivation Practical software packages for solving optimization problems emerged in the 1950s, as soon as there were computers to run them. Initially based on linear programming, these “solvers” were soon generalized to allow for nonlinearities and to accommodate integer variables and other discrete decisions. Despite continuing progress in algorithms and in computing, however, by the beginning of its second decade large-scale optimization had come to be seen as failing to live up to its potential. The key weakness in early optimization systems was not in their algorithms, however, but in their interaction with modelers. The human time and cost of preparing a solver’s input and examining its output often greatly dominated the computer costs of solving. The cause of this difficulty, and its ultimate cure, can best be understood by considering the steps of the optimization modeling process and their interaction with the technical requirements of large-scale optimization.
    [Show full text]
  • Coopr: a Common Optimization Python Repository
    Coopr: A COmmon Optimization Python Repository William E. Hart¤ Abstract We describe Coopr, a COmmon Optimization Python Repository. Coopr integrates Python packages for de¯ning optimizers, modeling optimization applications, and managing computational experiments. A major driver for Coopr development is the Pyomo package, that can be used to de¯ne abstract problems, create concrete problem instances, and solve these instances with standard solvers. Pyomo provides a capability that is commonly associated with algebraic modeling languages like AMPL and GAMS. 1 Introduction Although high quality optimization solvers are commonly available, the e®ective integration of these tools with an application model is often a challenge for many users. Optimization solvers are typically written in low-level languages like Fortran or C/C++ because these languages o®er the performance needed to solve large numerical problems. However, direct development of applications in these languages is quite challenging. Low-level languages like these can be di±cult to program; they have complex syntax, enforce static typing, and require a compiler for development. User-friendly optimizers can be supported in several ways. For restricted problem domains, special interfaces can be developed that directly interface with application modeling tools. For example, modern spreadsheets like Excel integrate optimizers that can be applied to linear programming and simple nonlinear programming problems in a natural way. Similarly, engineering design frameworks like the Dakota toolkit [5] can apply optimizers to nonlinear programming problems by executing separate application codes via a system call interface that use standardized ¯le I/O. Algebraic Modeling Languages (AMLs) are alternative approach that allows applications to be interfaced with optimizers that can exploit structure in application model.
    [Show full text]
  • Linear Programming 1 Linear Programming
    Linear programming 1 Linear programming Linear programming (LP, or linear optimization) is a method to achieve the best outcome (such as maximum profit or lowest cost) in a mathematical model whose requirements are represented by linear relationships. Linear programming is a special case of mathematical programming (mathematical optimization). More formally, linear programming is a technique for the optimization of a linear objective function, subject to linear equality and linear inequality constraints. Its feasible region is a convex polyhedron, which is a set defined as the intersection of finitely many half spaces, each of which is defined by a linear inequality. Its objective function is a real-valued affine function defined on this polyhedron. A linear programming algorithm finds a point in the polyhedron where this A pictorial representation of a simple linear program with two variables and six inequalities. function has the smallest (or largest) value if such a point exists. The set of feasible solutions is depicted in light Linear programs are problems that can be expressed in canonical form: red and forms a polygon, a 2-dimensional polytope. The linear cost function is represented by the red line and the arrow: The red line is a level set of the cost function, and the arrow indicates the direction in which we are optimizing. A closed feasible region of a problem with three variables is a convex polyhedron. The surfaces giving a fixed value of the objective function are planes (not shown). The linear programming problem is to find a point on the polyhedron that is on the plane with the highest possible value.
    [Show full text]
  • Research and Development of an Open Source Global Optimization System
    Vilnius University Institute of Data Science and Digital Technologies LITHUANIA INFORMATICS (N009) RESEARCH AND DEVELOPMENT OF AN OPEN SOURCE GLOBAL OPTIMIZATION SYSTEM Vaidas Juseviˇcius October 2019 Technical Report DMSTI-DS-N009-19-09 VU Institute of Data Science and Digital Technologies, Akademijos str. 4, Vilnius LT-08412, Lithuania www.mii.lt Abstract We consider a research and development of an open source global optimization system. In this work, we investigate the current state of optimization modeling systems by select- ing four of the most prominent algebraic modeling languages (AMPL, AIMMS, GAMS, Pyomo) and modeling systems supporting them in order to perform an extensive theoretical and experimental analysis of their characteristics. In our theoretical comparison, we evalu- ate how the features of reviewed languages match with requirements for modern AMLs, while in the experimental analysis we create automated tools to generate a test model library and tools to perform extensive benchmarks using the library created. We deter- mine the best performing AMLs by comparing the time needed to create model instance for specific type of optimization problem and analyze the impact that the presolve proce- dures performed by AML have on the actual problem solving. Lastly, we provide insights on which AMLs performed best and features that we deem important in the current land- scape of mathematical optimization. Keywords: Algebraic modeling languages, optimization, AMPL, AIMMS, GAMS, Py- omo DMSTI-DS-N009-19-09 2 Contents 1 Introduction
    [Show full text]
  • Coopr: a Common Optimization Python Repository
    Coopr: A COmmon Optimization Python Repository William E. Hart¤ Abstract We describe Coopr, a COmmon Optimization Python Repository. Coopr integrates Python packages for de¯ning optimizers, modeling optimization applications, and managing computational experiments. A major driver for Coopr development is the Pyomo package, that can be used to de¯ne abstract problems, create concrete problem instances, and solve these instances with standard solvers. Pyomo provides a capability that is commonly associated with algebraic modeling languages like AMPL and GAMS. 1 Introduction Although high quality optimization solvers are commonly available, the e®ective integration of these tools with an application model is often a challenge for many users. Optimization solvers are typically written in low-level languages like Fortran or C/C++ because these languages o®er the performance needed to solve large numerical problems. However, direct development of applications in these languages is quite challenging. Low-level languages like these can be di±cult to program; they have complex syntax, enforce static typing, and require a compiler for development. User-friendly optimizers can be supported in several ways. For restricted problem domains, special interfaces can be developed that directly interface with application modeling tools. For example, modern spreadsheets like Excel integrate optimizers that can be applied to linear programming and simple nonlinear programming problems in a natural way. Similarly, engineering design frameworks like the Dakota toolkit [9] can apply optimizers to nonlinear programming problems by executing separate application codes via a system call interface that use standardized ¯le I/O. Algebraic Modeling Languages (AMLs) are alternative approach that allows applications to be interfaced with optimizers that can exploit structure in application model.
    [Show full text]