IBM ILOG OPL IDE Tutorials

Total Page:16

File Type:pdf, Size:1020Kb

IBM ILOG OPL IDE Tutorials IBM ILOG OPL V6.3 IBM ILOG OPL IDE Tutorials © Copyright International Business Machines Corporation 1987, 2009 US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Copyright COPYRIGHT NOTICE © Copyright International Business Machines Corporation 1987, 2009. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Trademarks IBM, the IBM logo, ibm.com, WebSphere, ILOG, the ILOG design, and CPLEX are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at http://www.ibm.com/legal/copytrade.shtml Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. Java and all Java-based trademarks and logos are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Other company, product, or service names may be trademarks or service marks of others. Acknowledgement The language manuals are based on, and include substantial material from, The OPL Optimization Programming Language by Pascal Van Hentenryck, © 1999 Massachusetts Institute of Technology. CONTENTS Table of contents IDE Tutorials................................................................................................................7 About IDE tutorials......................................................................................................................9 Understanding solving statistics and progress (MP models)...............................................11 Purpose of the tutorial..................................................................................................................................13 The scalable warehouse example................................................................................................................14 The scalable warehouse project...................................................................................................................15 Executing the warehouse project with scalable data....................................................................................18 Examining the statistics and progress chart (MP)........................................................................................19 The Progress Chart (MP models).....................................................................................................20 The Statistics table (MP models)......................................................................................................21 Examining the engine log.............................................................................................................................22 Examining the results and the data..............................................................................................................24 Changing a CPLEX parameter value...........................................................................................................26 Understanding solving statistics and progress (CP models)...............................................29 Purpose of the tutorial..................................................................................................................................30 The steel mill example..................................................................................................................................31 Executing the model in the OPL IDE............................................................................................................32 Coloring of CP keywords and functions in the IDE.......................................................................................33 Examining the statistics and progress chart (CP)........................................................................................35 Statistics............................................................................................................................................36 The progress chart (CP models).......................................................................................................37 The statistics table (CP models).......................................................................................................38 Examining the engine log.............................................................................................................................39 © Copyright IBM Corp. 1987, 2009 3 Changing a CP parameter value..................................................................................................................41 Working with external data.......................................................................................................43 Purpose and prerequisites...........................................................................................................................44 Using data sources.......................................................................................................................................45 The oil database example............................................................................................................................47 Description of the example................................................................................................................48 The oil database tables.....................................................................................................................50 The oil database project....................................................................................................................53 The oil database data file..................................................................................................................55 Executing the oil database example..................................................................................................58 Viewing the result in the database....................................................................................................60 The Result table after execution........................................................................................................61 The oil sheet example..................................................................................................................................63 Description of the example................................................................................................................64 The oil data spreadsheet...................................................................................................................65 The oil sheet project..........................................................................................................................67 The oil sheet data file........................................................................................................................69 Executing the oil sheet example........................................................................................................71 Viewing the result in the spreadsheet...............................................................................................73 The RESULT sheet after execution...................................................................................................74 Using IBM ILOG Script for OPL................................................................................................75 Purpose and prerequisites...........................................................................................................................76 Features of IBM ILOG Script for OPL...........................................................................................................78 The multiperiod production planning example..............................................................................................79 Presenting the multiperiod production planning example.................................................................80 Setting up the multiperiod production model and data......................................................................82 Executing a flow control script...........................................................................................................83 Purpose of the flow control script......................................................................................................84 Debugging a flow control script.........................................................................................................85 The transportation example..........................................................................................................................91 Presenting the transportation example.............................................................................................92 Setting up the transportation model and data...................................................................................94 Executing preprocessing scripts.......................................................................................................95
Recommended publications
  • 30 Years of Moving Individual Atoms
    FEATURES 30 YEARS OF MOVING INDIVIDUAL ATOMS 1 2 l Christopher Lutz and Leo Gross – DOI: https://doi.org/10.1051/epn/2020205 l 1 IBM Research – Almaden, San Jose, California, USA l 2 IBM Research – Zurich,¨ 8803 Ruschlikon,¨ Switzerland In the thirty years since atoms were first positioned individually, the atom-moving capability of scanning probe microscopes has grown to employ a wide variety of atoms and small molecules, yielding custom nanostructures that show unique electronic, magnetic and chemical properties. his year marks the thirtieth anniversary of the publication by IBM researchers Don Eigler and Erhard Schweizer showing that individ- Tual atoms can be positioned precisely into chosen patterns [1]. Tapping the keyboard of a personal computer for 22 continuous hours, they controlled the movement of a sharp tungsten needle to pull 35 individ- ual xenon atoms into place on a surface to spell the letters “IBM” (Figure 1). Eigler and Schweitzer’s demonstration set in motion the use of a newly invented tool, called the scanning tunneling microscope (STM), as the workhorse for nanoscience research. But this achievement did even more than that: it changed the way we think of atoms. m FIG. 2: The STM that Don Eigler and coworkers used to position atoms. The It led us to view them as building blocks that can be tip is seen touching its reflection in the sample’s surface. (Credit: IBM) arranged the way we choose, no longer being limited by the feeling that atoms are inaccessibly small. with just one electron or atom or (small) molecule. FIG.
    [Show full text]
  • The Evolution of Ibm Research Looking Back at 50 Years of Scientific Achievements and Innovations
    FEATURES THE EVOLUTION OF IBM RESEARCH LOOKING BACK AT 50 YEARS OF SCIENTIFIC ACHIEVEMENTS AND INNOVATIONS l Chris Sciacca and Christophe Rossel – IBM Research – Zurich, Switzerland – DOI: 10.1051/epn/2014201 By the mid-1950s IBM had established laboratories in New York City and in San Jose, California, with San Jose being the first one apart from headquarters. This provided considerable freedom to the scientists and with its success IBM executives gained the confidence they needed to look beyond the United States for a third lab. The choice wasn’t easy, but Switzerland was eventually selected based on the same blend of talent, skills and academia that IBM uses today — most recently for its decision to open new labs in Ireland, Brazil and Australia. 16 EPN 45/2 Article available at http://www.europhysicsnews.org or http://dx.doi.org/10.1051/epn/2014201 THE evolution OF IBM RESEARCH FEATURES he Computing-Tabulating-Recording Com- sorting and disseminating information was going to pany (C-T-R), the precursor to IBM, was be a big business, requiring investment in research founded on 16 June 1911. It was initially a and development. Tmerger of three manufacturing businesses, He began hiring the country’s top engineers, led which were eventually molded into the $100 billion in- by one of world’s most prolific inventors at the time: novator in technology, science, management and culture James Wares Bryce. Bryce was given the task to in- known as IBM. vent and build the best tabulating, sorting and key- With the success of C-T-R after World War I came punch machines.
    [Show full text]
  • IBM Virtualization Engine Platform Version 2 Technical Presentation Guide
    Front cover IBM Virtualization Engine Platform Version 2 Technical Presentation Guide Describes the Virtualization Engine management collection components Describes the Virtual resources for all IBM ^ servers Provides slides with speaker notes Jim Cook Christian Matthys Takaki Kimachi EunYoung Ko Ernesto A Perez Edelgard Schittko Laurent Vanel ibm.com/redbooks International Technical Support Organization IBM Virtualization Engine Platform Version 2 Technical Presentation Guide March 2006 SG24-7112-00 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. First Edition (March 2006) This edition applies to the IBM Virtualization Engine Version 2.1 © Copyright International Business Machines Corporation 2006. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix The team that wrote this redbook. .x Become a published author . xii Comments welcome. xii Chapter 1. Introduction to the Virtualization Engine platform . 1 1.1 The IBM Systems Agenda . 2 1.2 From Web services to the On Demand Operating Environment. 5 1.3 The On Demand Operating Environment architecture details. 10 1.4 Standards: from OGSI to WSDM . 13 1.5 The Virtualization Engine platform . 20 1.6 Virtual resources . 24 1.7 The Virtualization Engine management collection . 26 1.8 What is new with the Virtualization Engine Version 2 . 28 1.9 The Virtualization Engine Version 2 products offerings . 31 1.10 Virtualization: topology and terminology . 35 1.11 Management servers: the supported operating systems . 37 1.12 Managed servers: the supported operating systems .
    [Show full text]
  • CA SOLVE:FTS Installation Guide
    CA SOLVE:FTS Installation Guide Release 12.1 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the “Documentation”) is for your informational purposes only and is subject to change or withdrawal by CA at any time. This Documentation may not be copied, transferred, reproduced, disclosed, modified or duplicated, in whole or in part, without the prior written consent of CA. This Documentation is confidential and proprietary information of CA and may not be disclosed by you or used for any purpose other than as may be permitted in (i) a separate agreement between you and CA governing your use of the CA software to which the Documentation relates; or (ii) a separate confidentiality agreement between you and CA. Notwithstanding the foregoing, if you are a licensed user of the software product(s) addressed in the Documentation, you may print or otherwise make available a reasonable number of copies of the Documentation for internal use by you and your employees in connection with that software, provided that all CA copyright notices and legends are affixed to each reproduced copy. The right to print or otherwise make available copies of the Documentation is limited to the period during which the applicable license for such software remains in full force and effect. Should the license terminate for any reason, it is your responsibility to certify in writing to CA that all copies and partial copies of the Documentation have been returned to CA or destroyed. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION “AS IS” WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT.
    [Show full text]
  • IBM Kenexa Assessments Solutions Brief and Catalog
    IBM Kenexa Solutions Brief and Catalog IBM Kenexa Assessments Solutions Brief and Catalog Choosing the right person for the right job, and assessing traits, skills and fit for individuals, managers, and leaders is crucial to your success. IBM Kenexa Assessments Catalog IBM Kenexa offers an expansive portfolio of assessments • A multiple-choice format and newer formats of that assess personality traits, problem solving, learned skills, simulation and computer-adaptive testing for job and job/organizational fit. Our assessments are designed for evaluation. all levels of an organization, including individual • Capacity and capability assessments including natural contributors, managers, and leaders. IBM Kenexa Assess on talent in a specific area, work style preferences, acquired Cloud is one of the industry’s largest and most powerful experience, and a combination of cognition and global and mobile capable content solutions available in the knowledge; organizational fit assessments that measure marketplace today. IBM Kenexa Assessments provide you fit in terms of company culture, values, and preferences with industry-leading content and support to find quality for job characteristics; and onboarding assessments to candidates and maximize their performance. help accelerate time-to-productivity of new hires and understand their learning styles. At IBM Kenexa, we know that people differentiate great • Each result includes a detailed candidate profile that companies. We believe empowering companies to hire the reveals strengths and developmental needs as compared right people yields the best business results. IBM Kenexa to the job evaluation; follow-up interview questions employs Ph.D. or licensed Industrial/Organizational (I/O) tailored to the role and the candidate’s specific results; psychologists worldwide.
    [Show full text]
  • IBM Storage Suite for IBM Cloud Paks Data Sheet
    IBM Storage Suite for IBM Cloud Paks Data Sheet IBM Storage Suite for IBM Cloud Paks IBM Storage Suite for Cloud Paks offers Highlights a faster, more reliable way to modernize and move to the cloud • Flexible sofware-defined data resources for easy Today, 85% of enterprises around the world are already container deployments operating in a hybrid cloud environment.1 At the same time, • Reduce risk and complexity more than three-quarters of all business-critical workloads when moving mission- have yet to make the transition to the cloud.2 These metrics critical apps to the cloud suggest that for all the benefits conveyed by cloud • Market-leading Red Hat and computing, many organizations still face plenty of challenges award-winning IBM ahead to fully incorporate cloud-native solutions into their Spectrum Storage software core business environments. Containerization is a key enabling technology for flexibly delivering workloads to private and public clouds and DevOps. Among their many benefits, containers allow legacy applications to run in almost any host environment without being rewritten – an enormous advantage for enterprises with numerous applications, each composed of thousands of lines of code. To facilitate deployment of containerized workloads and development of new cloud-native applications, companies large and small are modernizing around platforms such as Red Hat OpenShift. IBM has developed a series of middleware tools called IBM Cloud Pak solutions designed to enhance and extend the functionality and capabilities of Red Hat OpenShift. The solutions include Cloud Pak for Data, Business Automation, Watson AIOps, Integration, Network Application, and Security, and give enterprises the fully modular and easy-to- consume capabilities they need to bring the next 80% of their workloads into modern, cloud-based environments.
    [Show full text]
  • STM Single Atom/Molecule Manipulation and Its Application to Nanoscience and Technology
    Critical Review article, J. Vac. Sci. Tech. in press (2005). STM Single Atom/Molecule Manipulation and Its Application to Nanoscience and Technology Saw-Wai Hla Department of Physics and Astronomy, Nanoscale and Quantum Phenomena Institute, Ohio University, Athens, OH-45701, USA; email: [email protected] Key Words: STM, atom, molecule, manipulation, nanoscience, nanotechnology. Abstract: Single atom/molecule manipulation with a scanning-tunneling-microscope (STM) tip is an innovative experimental technique of nanoscience. Using STM-tip as an engineering or analytical tool, artificial atomic-scale structures can be fabricated, novel quantum phenomena can be probed, and properties of single atoms and molecules can be studied at an atomic level. The STM manipulations can be performed by precisely controlling tip-sample interactions, by using tunneling electrons, or electric field between the tip and sample. In this article, various STM manipulation techniques and some of their applications based on the author’s experience are described, and the impact of this research area on nanoscience and technology is discussed. * Correspondence to; Saw-Wai Hla, Physics and Astronomy Dept., Ohio University, Clippinger 252 C, Athens, OH-45701, USA. Tel: 740 593 1727, Fax: 740 593 0433. 1 I. INTRODUCTION for a long period of time. Electrochemically etched polycrystalline tungsten wires are used as the tips in most In the mid 20th century, the possibility to image or to see an experiments described here. The tip-apex is usually atom was a matter of great debate. Only after the Nobel- prepared by using in-situ tip formation procedure36 award winning invention of Scanning Tunneling described in the next section.
    [Show full text]
  • IBM Infosphere
    Software Steve Mills Senior Vice President and Group Executive Software Group Software Performance A Decade of Growth Revenue + $3.2B Grew revenue 1.7X and profit 2.9X + $5.6B expanding margins 13 points $18.2B$18.2B $21.4B$21.4B #1 Middleware Market Leader * $12.6B$12.6B Increased Key Branded Middleware 2000 2006 2009 from 38% to 59% of Software revenues Acquired 60+ companies Pre-Tax Income 34% Increased number of development labs Margin globally from 15 to 42 27% 7 pts Margin 2010 Roadmap Performance Segment PTI Growth Model 12% - 15% $8.1B$8.1B 21% 6 pts • Grew PTI to $8B at a 14% CGR Margin • Expanded PTI Margin by 7 points $5.5B$5.5B $2.8B$2.8B ’00–’06’00–’06 ’06–’09’06–’09 Launched high growth initiatives CGRCGR CGRCGR 12%12% 14%14% • Smarter Planet solutions 2000 2006 2009 • Business Analytics & Optimization GAAP View © 2010 International Business Machines Corporation * Source: IBM Market Insights 04/20/10 Software Will Help Deliver IBM’s 2015 Roadmap IBM Roadmap to 2015 Base Growth Future Operating Portfolio Revenue Acquisitions Leverage Mix Growth Initiatives Continue to drive growth and share gain Accelerate shift to higher value middleware Capitalize on market opportunity * business • Middleware opportunity growth of 5% CGR Invest for growth – High growth products growing 2X faster than rest of • Developer population = 33K middleware Extend Global Reach – Growth markets growing 2X faster than major markets • 42 global development labs with skills in 31 – BAO opportunity growth of 7% countries Acquisitions to extend
    [Show full text]
  • Xerox University Microfilms
    INFORMATION TO USERS This material was produced from a microfilm copy of the original document. While the most advanced technological means to photograph and reproduce this document have been used, the quality is heavily dependent upon the quality of the original submitted. The following explanation of techniques is provided to help you understand markings or patterns which may appear on this reproduction. 1.The sign or "target" for pages apparently lacking from the document photographed is "Missing Page(s}". If it was possible to obtain the missing page(s) or section, they are spliced into the film along with adjacent pages, This may have necessitated cutting thru an image and duplicating adjacent pages to insure you complete continuity. 2. When an image on the film is obliterated with a targe round black mark, it is an indication that the photographer suspected that the copy may have moved during exposure and thus cause a blurred image. You will find a good image of the page in the adjacent frame. 3. When a map, drawing or chart, etc., was part of the material being photographed the photographer followed a definite method in "sectioning" the material. It is customary to begin photoing at the upper left hand corner of a large sheet and to continue photoing from left to right in equal sections with a small overlap. If necessary, sectioning is continued again — beginning below the first row and continuing on until complete. 4. The majority of users indicate that the textual content is of greatest value, however, a somewhat higher quality reproduction could be made from "photographs" if essential to the understanding of the dissertation.
    [Show full text]
  • Fy11 Education Masterfile 10262010
    Page 1 FY10 CONTRACT #GS-35F-4984H Effective Date October 26, 2010 IBM Education Charge GSA GSA GSA DAYS PUBLIC PRIVATE ADD'L ST. STUDENTS 3A230 Exploring IBM solidDB Universal Cache - Instructor-led online 4.0 2,305 14,186 222 15 3L121 Query XML data with DB2 9 - Instructor-led online 3.0 1,729 10,640 222 15 3L131 Query and Manage XML Data with DB2 9 - Instructor-led online 5.0 2,882 17,733 222 15 3L141 Manage XML data with DB2 9 -Instructor-led online 2.0 1,153 7,093 222 15 3L282 Fast Path to DB2 9 for Experienced Relational DBAs - Instructor-led online 2.0 1,153 7,093 222 15 3L2X1 DB2 9 Administration Workshop for Linux, UNIX, and Windows Instructor Led OnLine4.0 2,305 14,186 222 15 3L2X2 DB2 9 Database Administration Workshop for Linux,UNIX and Windows - ILO 4.0 2,305 14,186 222 15 3L482 DB2 9 for Linux,UNIX and Windows Quickstart for Experienced Relational DBAs-ILO4.0 2,305 14,186 222 15 3L711 DB2 Stored Procedures Programming Workshop - Instructor-led online 2.0 1,153 7,093 222 15 3N230 Exploring IBM solidDB Universal Cache - Flex Instructor Led Online 5.0 2,305 14,186 222 15 3N312 DB2 9.7 for Linux, UNIX, and Windows New Features - Flex Instructor-led online2.0 864 5,320 222 15 3V410 DB2 9 for z/OS Data Sharing Implementation - Instructor Led Online 3.0 1,729 10,640 222 15 3V420 DB2 9 for z/OS Data Sharing Recovery and Restart - Instructor Led Online 2.0 1,153 7,093 222 15 3W700 Basic InfoSphere Streams SPADE programming Instructor-led Online 2.0 1,153 7,093 222 15 3W710 Advanced InfoSphere Streams SPADE Programming Instructor-led
    [Show full text]
  • 16520: Application Development for Z/OS - Not Your Father's Green Screen
    16520: Application Development for z/OS - Not your Father's Green Screen Rosalind Radcliffe Distinguished Engineer, IBM Academy of Technology Member IBM Corporation [email protected] @RosalindRad Insert Custom Session QR if Desired. Abstract Ask most people how they write and maintain applications on z/OS and you hear "oh, you use this thing called a green screen" followed by a chuckle. In reality, application development for zEnterprise applications has been transformed over the past several years to the point where application developers enjoy the same or better features from integrated development environments as programmers who work on other platforms. Advances in remote system communication and interaction, syntax- highlighting, parsing, and code understanding for Assembler, PL/I, C/C++, and COBOL source code, as well as programming assists such as code snippets and templates are all available to application programmers. Interactive debug of applications, written in multiple programming languages and running in various runtime environments is also possible and can greatly boost programmer productivity. Come and learn about how these features can enable application developers who are new to the mainframe to interact with, update, and efficiently enhance mainframe applications. 16721: Decision Management: Making the Right Change, at the Right Time 3/4/15 3 IBM DevOps point of view Enterprise capability for continuous software delivery that enables organizations to seize market opportunities and reduce time to customer feedback Continuous
    [Show full text]
  • Mainframe to Enterprise to the Is Curriculum
    https://doi.org/10.48009/2_iis_2012_182-192 Issues in Information Systems Volume 13, Issue 2, pp. 182-192, 2012 MAINFRAME TO ENTERPRISE TO THE IS CURRICULUM Joseph Packy Laverty, Robert Morris University, [email protected] Frederick G. Kohun, Robert Morris University, [email protected] John Turchek, Robert Morris University, [email protected] David Wood, Robert Morris University, [email protected] Daniel Rota, Robert Morris University, [email protected] ABSTRACT Over the decades the concept of a mainframe has been synonymous to IBM operating systems and the COBOL programming language. While object-orientated programming languages, web interface transaction systems, web services, distributed services, and mobile application topics are frequently included in the IS/CS curriculum, this paper considers the inclusion of IBM Enterprise Systems. IBM zEnterprise has evolved into an integrated, scalable, enterprise system which supports legacy applications, open-source applications and tools, DB2, Cognos, SPSS, data mining and Rational project management tools. The growth and market penetration of IBM zEnterprise has been spectacular. This evolution of IBM Enterprise Systems provides many opportunities for IS/CS majors. A case study implementing the IBM Academic Initiative in an ABET-CAC curriculum is presented. KEYWORDS: IBM Academic Initiative, IS Curriculum, IBM zEnterprise, ABET-CAC, z/OS, COBOL, CICS, DB2, Open Source, Rational Application Developer for Z Systems, Robert Morris University, Marist College INTRODUCTION Over the decades the concept of a mainframe has been synonymous to IBM operating systems and the COBOL programming language [1]. In recent years, computer hardware evolved in various directions, e.g., desktop, blade servers, super computers and mobile devices.
    [Show full text]