[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-133314-en":3,"doc-seo-133314-105":31,"detail-sidebar-cat-0-en-105":96},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":28,"seo_description":14,"update_tm":29,"read_time":30},133314,687197207057,"Sage","https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0",6,"Technology","GAMS - A User's Guide - Tutorial - December 1998","GAMS A User's Guide provides a structured introduction to building and running optimization models using the GAMS language. It covers core concepts such as sets, parameters, scalars, tables, variables, equations, objective functions, and the model/solve workflow. The guide explains data entry methods, expression syntax, bounds and attributes, and detailed output and error reporting. It also includes guidance on program structure, documentation, portability, and how to interpret execution and solution reports.","GAMS  \nA USER'S GUIDE  \nby: Anthony Brooke David Kendrick Alexander Meeraus Ramesh Raman  \nTutorial  \nby:  \nRichard E. Rosenthal  \nDecember 98  \n© GAMS Development Corporation, 1998  \nGAMS Development Corporation  \n1217 Potomac Street, N.W. Washington, DC 20007, USA Tel: +1 202 342-0180  \nFax: +1 202 342-0181  \n[E-mail:sales@gams.com](E-mail:sales@gams.com)  \n[Http://www.gams.com/](Http://www.gams.com/)  \n\n| GAMS |  |\n| --- | --- |\n|  |  |\n\nGAMS Software GmbH  \nGutenbergstr. 13 35390 Giessen, Germany Tel: +49 641-93246-0  \nFax: +49 641-93246-10  \n[E-mail:info@gams.de](E-mail:info@gams.de)  \n[Http://www.gams.de/](Http://www.gams.de/)  \nTable of Contents1  \nIntroduction 1  \n1.1 MOTIVATION 1  \n1.2 BASIC FEATURES OF GAMS 1  \n1.2.1 GENERAL PRINCIPLES 1  \n1.2.2 DOCUMENTATION 2  \n1.2.3 PORTABILITY 2  \n1.2.4 USER INTERFACE 2  \n1.2.5 MODEL LIBRARY 2  \n1.3 ORGANIZATION OF THE BOOK 3  \nA Gams Tutorial 5  \n2.1 INTRODUCTION 5  \n2.2 STRUCTURE OF A GAMS MODEL 7  \n2.3 SETS 9  \n2.4 DATA 10  \n2.4.1 DATA ENTRY BY LISTS 10  \n2.4.2 DATA ENTRY BY TABLES 11  \n2.4.3 DATA ENTRY BY DIRECT ASSIGNMENT 11  \n2.5 VARIABLES 12  \n2.6 EQUATIONS 13  \n2.6.1 EQUATION DECLARATION 13  \n2.6.2 GAMS SUMMATION (AND PRODUCT) NOTATION 14  \n2.6.3 EQUATION DEFINITION 14  \n2.7 OBJECTIVE FUNCTION 16  \n2.8 MODEL AND SOLVE STATEMENTS 16  \n2.9 DISPLAY STATEMENTS 17  \n2.10 THE '.LO, .L, .UP, .M' DATABASE 17  \n2.10.1 ASSIGNMENT OF VARIABLE BOUNDS AND/OR INITIAL VALUES 17  \n2.10.2 TRANSFORMATION AND DISPLAY OF OPTIMAL VALUES 18  \n2.11 GAMS OUTPUT 19  \n2.11.1 ECHO PRINTS 19  \n2.11.2 ERROR MESSAGES 21  \n2.11.3 REFERENCE MAPS 23  \n2.11.4 EQUATION LISTINGS 24  \n2.11.5 MODEL STATISTICS 25  \n2.11.6 STATUS REPORTS 25  \n2.11.7 SOLUTION REPORTS 26  \n2.12 SUMMARY 27  \n1 This is version: ug254j  \niv  \nGams Programms 29  \n3.1 INTRODUCTION 29  \n3.2 THE STRUCTURE OF GAMS PROGRAMS 29  \n3.2.1 FORMAT OF GAMS INPUT 29  \n3.2.2 CLASSIFICATION OF GAMS STATEMENTS 30  \n3.2.3 ORGANIZATION OF GAMS PROGRAMS 30  \n3.3 DATA TYPES AND DEFINITIONS 31  \n3.4 LANGUAGE ITEMS 32  \n3.4.1 CHARACTERS 32  \n3.4.2 RESERVED WORDS 33  \n3.4.3 IDENTIFIERS 33  \n3.4.4 LABELS 34  \n3.4.5 TEXT 34  \n3.4.6 NUMBERS 35  \n3.4.7 DELIMITERS 35  \n3.4.8 COMMENTS 36  \n3.5 SUMMARY 36  \nSet Definitions 37  \n4.1 INTRODUCTION 37  \n4.2 SIMPLE SETS 37  \n4.2.1 THE SYNTAX 37  \n4.2.2 SET NAMES 37  \n4.2.3 SET ELEMENTS 38  \n4.2.4 ASSOCIATED TEXT 38  \n4.2.5 SEQUENCES AS SET ELEMENTS 39  \n4.2.6 DECLARATIONS FOR MULTIPLE SETS 40  \n4.3 THE ALIAS STATEMENT: MULTIPLE NAMES FOR A SET 40  \n4.4 SUBSETS AND DOMAIN CHECKING 41  \n4.5 MULTI-DIMENSIONAL SETS 41  \n4.5.1 ONE-TO-ONE MAPPING 41  \n4.5.2 MANY-TO-MANY MAPPING 42  \n4.6 SUMMARY 43  \nData Entry: Parameters, Scalars & Tables 45  \n5.1 INTRODUCTION 45  \n5.2 SCALARS 45  \n5.2.1 THE SYNTAX 45  \n5.2.2 AN ILLUSTRATIVE EXAMPLE 45  \n5.3 PARAMETERS 46  \n5.3.1 THE SYNTAX 46  \n5.3.2 AN ILLUSTRATIVE EXAMPLES 46  \n5.3.3 PARAMETER DATA FOR HIGHER DIMENSIONS 47  \n5.4 TABLES 48  \n5.4.1 THE SYNTAX 48  \n5.4.2 AN ILLUSTRATIVE EXAMPLE 48  \n5.4.3 CONTINUED TABLES 49  \nv  \n5.4.4 TABLES WITH MORE THAN TWO DIMENSIONS 49  \n5.4.5 CONDENSING TABLES 50  \n5.4.6 HANDLING LONG ROW LABELS 50  \n5.5 ACRONYMS 51  \n5.5.1 THE SYNTAX 51  \n5.5.2 ILLUSTRATIVE EXAMPLE 51  \n5.6 SUMMARY 51  \nData Manipulations With Parameters 53  \n6.1 INTRODUCTION 53  \n6.2 THE ASSIGNMENT STATEMENT 53  \n6.2.1 SCALAR ASSIGNMENTS 53  \n6.2.2 INDEXED ASSIGNMENTS 53  \n6.2.3 USING LABELS EXPLICITLY IN ASSIGNMENTS 54  \n6.2.4 ASSIGNMENTS OVER SUBSETS 54  \n6.2.5 ISSUES WITH CONTROLLING INDICES 54  \n6.2.6 EXTENDED RANGE IDENTIFIERS IN ASSIGNMENTS 55  \n6.2.7 ACRONYMS IN ASSIGNMENTS 55  \n6.3 EXPRESSIONS 55  \n6.3.1 STANDARD ARITHMETIC OPERATIONS 56  \n6.3.2 INDEXED OPERATIONS 56  \n6.3.3 FUNCTIONS 58  \n6.3.4 EXTENDED RANGE ARITHMETIC AND ERROR HANDLING 58  \n6.4 SUMMARY 60  \nVariables 61  \n7.1 INTRODUCTION 61  \n7.2 VARIABLE DECLARATIONS 61  \n7.2.1 THE SYNTAX 61  \n7.2.2 VARIABLE TYPES 62  \n7.2.3 STYLES FOR VARIABLE DECLARATION 62  \n7.3 VARIABLE ATTRIBUTES 63  \n7.3.1 BOUNDS ON VARIABLES ","cbCaiugIw6SYP7O0","https://ap.wps.com/l/cbCaiugIw6SYP7O0","pdf",740200,2,1,276,"English","en",105,"# Introduction\n## Motivation\n## Basic features of GAMS\n# A Gams Tutorial\n## Structure of a GAMS model\n## Sets\n## Data\n## Variables\n## Equations\n## Objective function\n## Model and solve statements\n## Display statements\n## The .lo .l .up .m database\n## GAMS output\n# Gams Programms\n## Structure of GAMS programs\n## Data types and definitions\n## Language items\n# Set Definitions\n# Data Entry: Parameters, Scalars & Tables\n# Data Manipulations With Parameters\n# Variables\n# Equations\n# Model And Solve Statements\n# Gams Output","[{\"question\":\"What are the key building blocks for a GAMS model described in this guide?\",\"answer\":\"The guide explains sets, data (scalars, parameters, tables), variables, equations, and the objective function, then connects them through model and solve statements.\"},{\"question\":\"How does the guide describe entering data in GAMS?\",\"answer\":\"Data entry is covered through lists, tables, and direct assignment, along with supporting concepts like aliases and multidimensional structures for sets.\"},{\"question\":\"How are variable bounds and initial values handled in GAMS?\",\"answer\":\"The guide introduces the .lo, .l, .up, and .m database and explains how to assign bounds and/or initial values and transform or display optimal values.\"},{\"question\":\"What output and reporting does GAMS produce after solving a model?\",\"answer\":\"It details compilation output, execution output, and solve-related reports such as equation and column listings, model statistics, solver reports, and solution listings.\"}]","GAMS - A User's Guide - Tutorial - December 1998 | PDF",1787217321,696,{"code":4,"msg":32,"data":33},"ok",{"site_id":25,"language":24,"slug":34,"title":13,"keywords":35,"description":14,"schema_data":36,"social_meta":91,"head_meta":93,"extra_data":95,"updated_unix":29},"gams-a-users-guide-tutorial-december-1998","",{"@graph":37,"@context":90},[38,54,69],{"@type":39,"itemListElement":40},"BreadcrumbList",[41,45,48,51],{"item":42,"name":43,"@type":44,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":46,"name":47,"@type":44,"position":20},"https://docshare.wps.com/document/","Document",{"item":49,"name":12,"@type":44,"position":50},"https://docshare.wps.com/document/technology/",3,{"item":52,"name":13,"@type":44,"position":53},"https://docshare.wps.com/document/gams-a-users-guide-tutorial-december-1998/133314/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":24,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":42,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-27","2026-08-20",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82,86],{"name":73,"@type":74,"acceptedAnswer":75},"What are the key building blocks for a GAMS model described in this guide?","Question",{"text":76,"@type":77},"The guide explains sets, data (scalars, parameters, tables), variables, equations, and the objective function, then connects them through model and solve statements.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"How does the guide describe entering data in GAMS?",{"text":81,"@type":77},"Data entry is covered through lists, tables, and direct assignment, along with supporting concepts like aliases and multidimensional structures for sets.",{"name":83,"@type":74,"acceptedAnswer":84},"How are variable bounds and initial values handled in GAMS?",{"text":85,"@type":77},"The guide introduces the .lo, .l, .up, and .m database and explains how to assign bounds and/or initial values and transform or display optimal values.",{"name":87,"@type":74,"acceptedAnswer":88},"What output and reporting does GAMS produce after solving a model?",{"text":89,"@type":77},"It details compilation output, execution output, and solve-related reports such as equation and column listings, model statistics, solver reports, and solution listings.","https://schema.org",{"og:url":52,"og:type":92,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":94,"canonical":52},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":97},[98,102,106,110,115,118,123,128,133,136,140],{"id":21,"doc_module":4,"doc_module_name":47,"category_name":99,"show_sort_weight":100,"slug":101},"Story & Novel",90,"story-novel",{"id":20,"doc_module":4,"doc_module_name":47,"category_name":103,"show_sort_weight":104,"slug":105},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":47,"category_name":107,"show_sort_weight":108,"slug":109},"Exam",70,"exam",{"id":111,"doc_module":4,"doc_module_name":47,"category_name":112,"show_sort_weight":113,"slug":114},5,"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":47,"category_name":12,"show_sort_weight":116,"slug":117},50,"technology",{"id":119,"doc_module":4,"doc_module_name":47,"category_name":120,"show_sort_weight":121,"slug":122},7,"Healthcare",40,"healthcare",{"id":124,"doc_module":4,"doc_module_name":47,"category_name":125,"show_sort_weight":126,"slug":127},8,"Research & Report",30,"research-report",{"id":129,"doc_module":4,"doc_module_name":47,"category_name":130,"show_sort_weight":131,"slug":132},9,"Religion & Spirituality",20,"religion-spirituality",{"id":131,"doc_module":4,"doc_module_name":47,"category_name":134,"show_sort_weight":131,"slug":135},"World Cup","world-cup",{"id":137,"doc_module":4,"doc_module_name":47,"category_name":138,"show_sort_weight":137,"slug":139},10,"Lifestyle","lifestyle",{"id":141,"doc_module":4,"doc_module_name":47,"category_name":142,"show_sort_weight":111,"slug":143},19,"General","general"]