GAMS: General Algebraic Modeling System Linear and Nonlinear Programming The full system documentation is provided electronically with the software.

Slides:



Advertisements
Similar presentations
Chapter 19 – Linear Programming
Advertisements

Introduction to Mathematical Programming
Linear Programming Problem. Introduction Linear Programming was developed by George B Dantzing in 1947 for solving military logistic operations.
Linear Programming. Introduction: Linear Programming deals with the optimization (max. or min.) of a function of variables, known as ‘objective function’,
Linear Programming Models & Case Studies
Chapter 5 LP formulations. LP formulations of four basic problem Resource allocation problem Transportation problem Feed mix problem Joint products problem.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
19 Linear Programming CHAPTER
Basic Linear Programming Concepts Lecture 2 (4/1/2015)
Operations Management
Constrained Maximization
Duality Dual problem Duality Theorem Complementary Slackness
Basic LP Problem McCarl and Spreen Chapter 2 LP problem is linear form of Mathematical Program This formulation may also be expressed in matrix notation.
Linear Programming. Linear programming A technique that allows decision makers to solve maximization and minimization problems where there are certain.
6s-1Linear Programming CHAPTER 6s Linear Programming.
Linear Programming Econ Outline  Review the basic concepts of Linear Programming  Illustrate some problems which can be solved by linear programming.
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Operations Management - 5 th Edition Chapter 13 Supplement Roberta Russell & Bernard W. Taylor, III Linear Programming.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
INTRODUCTORY MATHEMATICAL ANALYSIS For Business, Economics, and the Life and Social Sciences  2007 Pearson Education Asia Chapter 3 Lines, Parabolas and.
Spreadsheet Modeling & Decision Analysis:
1 Linear Programming Supplements (Optional). 2 Standard Form LP (a.k.a. First Primal Form) Strictly ≤ All x j 's are non-negative.
THE MATHEMATICS OF OPTIMIZATION
FORMULATION AND GRAPHIC METHOD
FORS 4710 / 6710 Forest Planning FORS 8450 Advanced Forest Planning Lecture 2 Linear Programming.
Chapter 3 Introduction to Optimization Modeling
Lecture #7. Lecture Outline Review Go over Exam #1 Continue production economic theory.
Introduction to Mathematical Programming OR/MA 504 Chapter 3.
Chapter 19 Linear Programming McGraw-Hill/Irwin
KAY174 MATHEMATICS II Prof. Dr. Doğan Nadi Leblebici.
Special Conditions in LP Models (sambungan BAB 1)
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. 6S Linear Programming.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
1 DSCI 3023 Linear Programming Developed by Dantzig in the late 1940’s A mathematical method of allocating scarce resources to achieve a single objective.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
CDAE Class 11 Oct. 3 Last class: Result of Quiz 2 2. Review of economic and business concepts Today: Result of Quiz 2 3. Linear programming and applications.
1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.
Chapter 6 Supplement Linear Programming.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Mar 4, 2011.
Review of the previous lecture The consumer optimizes by choosing the point on his budget constraint that lies on the highest indifference curve. When.
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
Linear Programming Models: Graphical and Computer Methods
Chapter 3 Profit and costs1 CHAPTER 3 Profit maximisation, input demand, output supply and duality.
Arben Asllani University of Tennessee at Chattanooga Business Analytics with Management Science Models and Methods Chapter 2 Introduction to Linear Programming.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
LINEAR PROGRAMMING.
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Linear Programming Department of Business Administration FALL by Asst. Prof. Sami Fethi.
MCCARL AND SPREEN TEXT CH. 2 T Y/MCCARL-BRUCE/BOOKS.HTM Lecture 2: Basic LP Formulation.
Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP.
6s-1Linear Programming William J. Stevenson Operations Management 8 th edition.
Linear Programming.
Linear Programming: Sensitivity Analysis and Duality
Linear Programming Topics General optimization model
McCarl and Spreen Chapter 2
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming Topics General optimization model
Linear Programming Topics General optimization model
The Simplex Method: Standard Minimization Problems
Duality Theory and Sensitivity Analysis
Basic Linear Programming Concepts
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming.
Presentation transcript:

GAMS: General Algebraic Modeling System Linear and Nonlinear Programming The full system documentation is provided electronically with the software and is also available on-line at:       http://www.gams.com/docs/document.htm

The lectures are based on: -- McCarl, Bruce A., and Thomas H. Spreen. Applied Mathematical Programming Using Algebraic Systems. Available at: http://agecon.tamu.edu/faculty/mccarl/regbook.htm -- Paris, Q. An Economic Interpretation of Linear Programming. Iowa State University Press: Ames, Iowa, 1991.

Outline 1. Types of Programming Problems 2. Linear Programming (LP) the general mathematical programming problem different types of mathematical programming problems 2. Linear Programming (LP) assumptions of LP an example of LP problem duality in LP (primal & dual) programming without using algebraic modeling 3. Nonlinear Programming (NLP) price endogenous model comparison with LP

Types of Programming Problems ♣ The general mathematical programming problem: Optimize Subject to (s.t.) -- X is a vector of decision variables -- F(X) is called the objective function -- G(X) must belong to S1 -- the variables individually must fall into S2

♣ Different Types of Mathematical Programming Problems: F(X) G(X) X a linear programming problem linear non-negative an integer programming some are integers a quadratic programming quadratic a nonlinear programming nonlinear

2. Linear Programming ♣ Assumptions of LP Proportionality Additivity Definition Example Proportionality Relationship between Outputs and inputs are proportional If the net return per unit of xj produced is cj , then 100 units of xj have 100cj return Additivity Every function is the sum of individual contribution of respective activities a1x1(wheat)+a2x2(corn) =available land Divisibility All decision variables are continuous (can take on any non-negative value including fractional ones) x1=12, x2=3.8 Certainty All parameters are known constants a1=5, a2=2

♣ An Example of LP Problem GAMS program and results: see handout 1!

♣ Duality in LP -- Economic theory indicates: scarce resources have value -- In LP models, scarce resources are allocated, so they should be, valued -- Whenever we solve an LP problem, we solve two problems: the primal resource allocation problem, and the dual resource valuation problem -- If the primal problem has n variables and m constraints, the dual problem will have m variables and n constraints

Primal and Dual Algebra

Example Primal Dual

Summary Primal Dual maximize minimize ≤constraint y≥0 x≥0 ≥constraint y free x free

GAMS program and results for dual problem: see handout 2!

☺ variable y1 gives the marginal value of the 1st resource Important Economic Interpretation -- y1 is associated with the first primal constraint (land), y2 with the second primal constraint (labor) -- dual variables (yi) can be interpreted as the marginal value (or shadow price) of each resource Thus, ☺ variable y1 gives the marginal value of the 1st resource (land) ☺ variable y2 gives the marginal value of the 2nd resource (labor)

☺ the value of the land and labor used in producing a unit of x1 should be greater than or equal to the marginal revenue contribution of x1 (40, price of x1) the marginal value of land plus twice the marginal value of labor should be greater than or equal to the profit earned by producing x2 (30, price of x2)

♣ Programming without using algebraic modeling -- take the above primal problem as an example: see handout 3! -- only good for small sized problems ♠ for medium or large sized models (more than 30 rows and/or columns) ♠ to concisely state problems in an abstract general fashion → use algebraic modeling!!!

Before we finish LP, remember that the default LP solver is Cplex!!!

3. Nonlinear Programming turn our attention to continuous, certain, nonlinear optimization problems relax the LP additivity and proportionality assumptions

focus on nonlinear objective function It is much more difficult for nonlinear solvers to deal with nonlinear constraints general NLP solver is Minos!!!

♣ price endogenous model -- a quadratic programming problem -- originally motivated by Enke and Samuelson -- fully developed by Takayama and Judge (1973)

-- general form: maximizes the integral of the area underneath the demand curve minus the integral underneath the supply curve s.t. a supply-demand balance -- the resultant objective function value of the general form is commonly called consumers' plus producers' surplus

GAMS program and results: see handout 4!

♣ Comparison with LP Two important changes: the objective function equation contains the nonlinear squared terms in the SOLVE statement we indicate that the problem is a nonlinear programming problem by saying SOLVE USING NLP