IENG 212 LAB 1 Research Assıstant: Kehınde Adewale ADESINA

Slides:



Advertisements
Similar presentations
What is GAMS?. While they are not NLP solvers, per se, attention should be given to modeling languages like: GAMS- AIMMS-
Advertisements

Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
Getting Started: Ansoft HFSS 8.0
Microsoft Excel 2010 Chapter 7
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Lesson 1 – Microsoft Excel The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
Chapter 9 Creating a Document.
Using a Spreadsheet Chapter 5.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 2 Modifying a Table and Creating.
LINGO TUTORIAL. WHAT IS LINGO : LINGO is a software tool designed to efficiently build and solve linear, nonlinear, and integer optimization models. CREATING.
1. Using word you can create the document and edit them later, as and when required,by adding more text, modifying the existing text, deleting/moving.
Microsoft Word 2000 Presentation 3 Microsoft Word Topics Wizards –Letters –Envelopes and Labels Quick Navigation of Documents –Keyboard short-cuts Editing.
Understanding Microsoft Excel
LINGO TUTORIAL.
Formula Auditing, Data Validation, and Complex Problem Solving
Excel Tutorial 8 Developing an Excel Application
4.2 Microsoft Word.
Microsoft Word 125 S. Clark St., 4th floor, Chicago, Illinois  Telephone  Fax
Word Lesson 1 Word Basics
Visual Basic.NET Windows Programming
Practical Office 2007 Chapter 2
Microsoft Word Objectives: Word processing using Microsoft Word
Understanding Microsoft Excel
Introduction to Microsoft Publisher 2016
How can Microsoft Excel 2007 help you to be more productive?
Microsoft Excel.
SQL and SQL*Plus Interaction
Microsoft Office Access 2010 Lab 2
Computing Fundamentals
Chapter 2 - Introduction to C Programming
Microsoft Office Access 2003
Microsoft Word 2010.
Solver & Optimization Problems
Lesson 2 Tables and Charts
Microsoft Excel A Spreadsheet Program.
Basic operations in Matlab
Word Processing.
Creating, Formatting, and Editing a Word Document with Pictures
Tutorial 1 – Creating a Document
Chapter 2 - Introduction to C Programming
لینگو به نام خدا.
The How-to-Guide for Using Word
4.2 Microsoft Word.
Understanding Microsoft Excel
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Microsoft Excel All editions of Microsoft office.
به نام خدا آشنایی با LINDO Software استاد :‌ راحله خاندوزی.
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Microsoft PowerPoint 2007 – Unit 2
8 6 MySQL Special Topics A Guide to MySQL.
Stata Basic Course Lab 2.
Understanding Microsoft Excel
Lesson 13 Editing and Formatting documents
Chapter 2 - Introduction to C Programming
1 Word Processing Part I.
Grauer and Barber Series Microsoft Access Chapter Two
Lesson 2: Editing, Viewing, and Printing Worksheets
Introduction to C Programming
Using Microsoft Outlook: Outlook Support Number
Executive Admin Assistant
Unit J: Creating a Database
Upload/Download Inventory
Upload/Download Inventory
Executive Admin Assistant
IENG 212 LAB 1 Research Assıstant: Kehınde Adewale ADESINA
Presentation transcript:

IENG 212 LAB 1 Research Assıstant: Kehınde Adewale ADESINA

Different software for solving Linear Programming problems WHAT IS LINGO : LINGO is a software tool designed to efficiently build and solve linear, nonlinear, and integer optimization models. CREATING A LINGO MODEL: An optimization model consists of three parts: Objective function: This is a single formula that describes exactly what the model should optimize. Variables: These are the quantities that can be changed to produce the optimal value of the objective function. Constraints: These are formulas that define the limits on the values of the variables.

Why Lıngo? Key Benefits of LINGO Easy Model Expression It helps to reduce model development time. It allows formulation of linear, nonlinear and integer problems quickly in a highly readable format. It allows straightforward expression of models in an intuitive manner using summations and subscripted variables just like you would with pencil and paper. Models are easier to build, easier to understand, and, therefore, easier to maintain. Convenient Data Options It takes the time and hassle out of managing your data. It allows you to build models that pull information directly from databases and spreadsheets. It can output solution information right into a database or spreadsheet making it easier for you to generate reports in the application of your choice. Powerful Solvers It is available with a comprehensive set of fast, built-in solvers for Linear, Nonlinear (convex & nonconvex/Global), Quadratic, Quadratically Constrained, Second Order Cone, Stochastic, and Integer optimization. There is no need to specify or load a separate solver, because LINGO reads your formulation directly and automatically execute the appropriate one. Model Interactively or Create Turn-key Applications You can build and solve models within LINGO, You can call LINGO directly from other application written separately. Interactively, LINGO gives a complete modeling environment to build, solve, and analyze your models.. LINGO can also be called directly from an Excel macro or database application. Extensive Documentation and Help LINGO provides all of the tools you will need to get up and running quickly.

1. File Menu Commands: New Opens a new model window. Open Opens an existing model previously saved to disk. Save Saves the contents of the current window to disk. Save As Saves the contents of the current window to a new name. Close Closes the current window. Print Prints the contents of the current window. Print Setup Configures your printer. Print Preview Displays the contents of the current window as it would appear if printed Log Output Opens a log file for logging output to the command window. Take Commands Runs a command script contained in a file. Export File Exports a model in MPS or MPI file format. License Prompts you for a new license password to upgrade your system. Database User Info Prompts you for a user id and password for database access via the @ODBC() function. Exit Exits LINGO.

2. Edit Menu Commands: Undo Undoes the last change. Redo Redoes the last undo command. Cut Cuts the current selection from the document. Copy Copies the current selection to the clipboard. Paste Pastes the contents of the clipboard into the document. Paste Special Pastes the contents of the clipboard into the document, allowing choice as to how the object is pasted. Select All Selects the entire contents of the current window. Find Searches the document for the occurrence of a specified text string. Find Next Repeats the find operation for the last string specified. Replace Replaces a specified text string with a new string. Go To Line Moves the cursor to a specified line number. Match Parenthesis Finds the parenthesis that closes a selected parenthesis. Paste Function Pastes a template of a selected LINGO @function. Select Font Specifies a font for a selected block of text. Insert New Object Embeds an OLE (Object Linking and Embedding) object into the document. Links Controls the links to external objects in your document. Object Properties Specifies the properties of a selected, embedded object.

3. LINGO Menu Commands: Solve Solves the model in the current window. Solution Generates a solution report window for the current model. Range Generates a range analysis report for the current window. Options Sets system options. Generate Generates the algebraic representation for the current model. Picture Displays a graphical picture of a model in matrix form. Debug Tracks down formulation errors in infeasible and unbounded linear programs. Model Statistics Displays a brief report regarding the technical detail of a model. Look Generates a formulation report for the current window.

PRIMARY RULES Comments in the model are initiated with an exclamation mark (!) and appear in green text. Each LINGO statement must end in a semi-colon (;). Operators and functions in LINGO appear with blue text. All other text is shown in black. Variable names must begin with a letter (A-Z). characters in the variable name may be letters, numbers (0-9), or the underscore character (_). Variable names can be up to 32 characters in length.

LINGO OPERATORS: Exponentiation: ^ Multiplication: * Division: / Addition: + Subtraction: - The relational operators are used when defining the constraints for a model. They are as follows: The expression is equal: = The left side of the expression is STRICTLY LESS THAN to the right side: < The left side of the expression is less THAN OR EQUAL to the right side: <= The left side of the expression is less STRICTLY GREATER THAN to the right side: > The left side of the expression is GREATER THAN OR EQUAL to the right side: >=

COMMON LINGO ERROR MESSAGES: Unable to open file: filename. Retype filename correctly. Invalid input: A syntax error has occurred. Check the line LINGO suggests for missing semi-colons. Unmatched parenthesis. Close the parenthesis set . No relational operator found. Make sure all constraints contain =, <=, >= ,<, >. Unterminated condition. Put a colon at the end of each conditional statement in a set operator

The model’s dimensions exceed the capacity of this version. No feasible solution found. Check model’s consistency and constraints. Unbounded solution. Add constraints. Unrecognized variable name: variable name. Check spelling.

A SIMPLE EXAMPLE: Find the solution of the following LP model by using LINGO MAX = 3x1+x2; S.T. x1 ≤ 4 x1+x2 ≤ 7 X1,X2≥0 The LINGO model has been entered into the LINGO Model window, the model can be solved by clicking the Solve button on the toolbar, by selecting LINGO Solve from the menus.

If no errors are found, then the LINGO Solver Status window appears.

REPORTS: LINGO will notify you of any errors if it has encountered one REPORTS: LINGO will notify you of any errors if it has encountered one. The best way to get information about these errors is to consult the Error Messages section in the software’s proprietary tutorial.

This window shows the values of each variable that will produce the optimal value of the objective function. The reduced cost for any variable that is included in the optimal solution is always zero. For variables not included in the optimal solution, the reduced cost shows how much the value of the objective function would decrease (for a MAX problem) or increase (for a MIN problem) if one unit of that variable were to be included in the solution. For example, if the reduced cost of a certain variable was 5, then the optimal value of the MAX problem would decrease by 5 units if 1 unit of the variable were to be added.

Example 2 : Solve the following LP by using LINGO. Min z= 6X1+7X2+3X3+5X4 Subject to 5X1+6X2-3X3+4X4≥12 X2-5X3-6X4≥10 2X1+5X2+X3+X4≥8 X1,X2,X3,X4≥0