Home
        IBM ILOG OPL Getting Started with the OPL IDE
         Contents
1.                                                                                             30  The Problem  BrOWSQr        iii eee ien pen De debere nei aid bi ca ae 31  Resizing  moving  and hiding IDE                              33  Working with files in       ic et oen doit edm an euet 37  Adding existing files to a project    nnnm nnne nnne nnns 38  Ordering files within a run                                                      nennen nnne 39  Opening files for editing    3    eia cene eim ee e et Pede e 42  Local History and its related                                          nennen nennen 46       Copyright IBM Corp  1987  2009 3     Compare  With                                                                                                  n rates 47       Replace With  features i           deiode      ete eet                 50  Executing  OPE  projects    nid eite eot                      53  The Pun optlOris      eerie i o qe idi CREUSE M      RUBRI      54  Ihe  Status Bar  oci enr eee    ete c c rec Riad Toda Acad e      eodd 59  The execution toolbar                         61  Getting Started                                                           63  Prerequisites   before you                                    64  Creating  a  project  sss soit aeta e teet petet E atate    65  asl 66  The pasta production                                                                            67  Greating an empty Projects                    Po REO RERO EUR         
2.                ILOG                L    GETTING    STARTED       Working with the New Example wizard    To open examples in the OPL IDE using the New Example wizard   1  In the OPL IDE  choose File  gt  New  gt  Example from the main menu     The first screen of the New Example wizard is displayed     P New Example    Select a wizard    Wizards    type fiter text     C  ILOG ODM Examples  C                Examples          Note  You can also access the New Example wizard by choosing File    Import   gt  Example  This command launches the same wizard as File  gt  New  gt   Example     2  Select the type of example you want to open     IBM ILOG OPI Examples or IBM         ODM Examples     and click Next     The next screen of the New Example wizard is displayed     OG OPL GETTING STARTED WITH THE  E    New Example    Example Project    In this model cars in production are placed on an assembly line moving through various  units that install options such as air conditioning and radios     Sorted by Complexity   Sorted by Feature   Sorted by Industry   Sorted by Technique    Choose an example  Press F1 For more information        type filter text       Advanced      Basic  Assembly Sequencing  Bid Selection  Blending  Blending Multi period  Call route  Car  Car sequencing  color             Choose copy location    C  opl saved examples          3       see the description of a project  select that project in the display area  A description  of the selected project is shown at the
3.           Mn Ed        69  Adding    the model    ir ERE ee      re e        73  Dealing With errors  cire ce      d er RO e HR Lec des 74  Adding data  ges      I od teres lea ie peste 77  Executirg a   project                   eee      ee 81  What  you  are gong TO  AO resis adnan      eee idet pete rode ctt 82  Populating and executing the run                                               83                                  2                 E T  Changing           option value  Creating and executing a different configuration    90  Examining a solution to the                                                                           95  Exec  tiori results    te e det aate te eec n e re er ve ces 96  The   Output tabs  3 ane ette ht acce al eh e gie te Crede pa dbi 97  Understanding the Problem Browser    eene nennen nnne 102           m                                         105    OG OPL GETTING STARTED WITH THE  E    Getting Started with the OPL IDE    This manual starts with an Introduction to the OPL IDE  and continues with a Getting Started  tutorial in which you launch the OPL IDE  create an empty project  enter a model  add data  and a settings file  create run configurations and execute the final project     In this section    Introduction to the OPL IDE  Provides an overview of important concepts and features of the OPL IDE that you should be  familiar with before starting to work with it     Getting Started tutorial   A tutorial in which you launch the IDE  c
4.          warehouse mod    warehouseCplexf     warehouse 10 d  Mew           warehouse_11 d     Run           warehouse_8 dal open     warehouse_9 dal Opan Wki       warehouse dat               Ctrl C   5 Paste Ctrl        Delete Delete  Rename    F2    Generate ODM Application                            I3 Tune project     Sher 52 09  v O95 p AddtoRun Configuration      x      Compile model  Import               Value      Refresh   5                  Compare    with    Re T    ith           Properties Alt  Enter       Property Value    2  A popup window appears in which you can view the different versions of this file in  Local History     OG OPL GETTING STARTED WITH THE  E    Double click on the version of the file that you want to compare with the current  version and use as a candidate for replacement     The files are opened in a special view that allows you to see them side by side  with  the differences between the two versions highlighted        Compare     warehouse warehouse mod    Revision Time  Ei 3 26 09 5 21 PM  3 25 09 4 58 PM    Text Compare    Workspace File  23 SupplyCost s  w   24  25subject tot  forall  s in Stores    ctEachStoreHasOneWarehouse   sum  w in Warehouses     Supplv s  w     1   forall  w in Warehouses  s           ctUseOpenWarehouses   Supplv s  w   lt   Open w    forall     in Warehouses    ctMaxUseOfWarehouse       Supply s   j                  Next Difference         Supply        amp  Local History  3 26 09 5 21        23 SupplyCost s  w  
5.       Global time limit   1 0  75       H S Simplex d    H S Mixed Integer Programming Directory For working files                   gt  Barrier           Network Memory availab   orking storage   128 0 Bm  H S Sifting  89 Constraint Programming Parallel mode switch Automatic            H E Language       3  Choose File gt Save     Your project now includes a model file  two data files  and two settings files  In the next  step  Creating and executing a different configuration  you will create a second run  configuration to execute the model with different data and different settings            ILOG OPL GETTING STARTED WI                mm       Creating and executing a different configuration    You will now create a second run configuration  then populate and execute it   To create and execute a second run configuration     1  In the selected project  right click the Run Configurations folder and choose New   gt  Run Configuration from the context menu  A new run configuration with the  default name Configuration2 is added      F Debug OPL Projects            T  7              MyFirstProject  OPL best project   51 03        Configurations     Configurations  default         MyFirstProject mod     MyFirstProject ops      product          ry        Configuration   dil MyFirstProject  mad       MyFirstProject ops     newsettings  ops       product  dat    3  productn dat    2  Optionally  rename the run configuration  by selecting it  right clicking and choosing  Rename from t
6.       Memory usage   5 9 Mb  before   8 4 Mb  after                                                 M                                M   n    Branches Non fixed Branch decision Best  50 172 where 41    32  100 126 where 100    17 E  150 88 where 101    46    166 0 083 where 87   17 0      Search terminated  replaying optimal solution      Solution status   Terminated normally  optimal found  tol    0     Number of branches   166     Number of fails i 35     Total memory usage   9 7 Mb  9 5 Mb CP Optimizer   0 2 Mb Concert     Time spent in solve   0 11s  0 11s engine   0 00s extraction    1    Search speed  br    s    1 517 7                    Engine Log for a CP model  steelmill project   Statistics  The Statistics tab shows details of the algorithm used by the solving engine   E  Problems E Scripting log    Solutions   Conflicts 22 Relaxations    amp   Engine log   Statistics 22     55 Profiler       Statki Value    Best node   Best integer Integer solution    solution  integer optimal  tolerance   Constraints 250 1480   amp  Variables 10051  Binary 50 1470  Non zero coefficients 20050           Objective 1 480 1460  Nodes 2181  Remaining nodes 4  Iterations 18717 520  Incumbent 1 480    Solution pool 1440  Count 3  Mean objective 1 500 2 4 6 8 10 12 14    Time  seconds     Statistics for an MP model  scalable configuration of warehouse project        Profiler    The profiling tool computes the time and memory used by each execution step listed in the  Description tree on 
7.      Import           Refresh       Team  Compare With  Restore from Local History       Properties Alt  Enter       2  A properties window appears for the run configuration     OG OPL GETTING STARTED WITH THE  E                ILOG       Properties for       warehouse  10 dat  S warehouse  1 1 dat       warehouse  9 dat    You can use the Up and Down buttons to rearrange the order of your data files and  settings files     OPL GETTING STARTED     1       Opening files for editing       In general  you open your model files  data files and settings files for editing by  double clicking on the file in OPL Projects Navigator     Several editors can be open in the Editing Area at once  You can switch back and forth  between the open views by clicking the tabs of the views that are visible in the Editing Area     If so many edit views are open that all of their tabs cannot be displayed  a    more views  icon     gt     2 becomes visible  Click it and    list of the other views appears                       warehouseCplexFilter  E warehouse mod                BE Outline 23           Copyright  C  1999 2009 by ILOG      ll Rights Reserved    Permission is expressly granted to use this     course of developing applications that use IL          scalableWarehouse mod       solpoolscript mod  warehouse  dat    E warehouse mod   2  warehouseCplexFilters mod    8Fixed   30    9 Warehouses   Bonn  Bordeaux  London  Paris  Rome     10NbStor 10    11                    1 4 2 1 3     12Suppl
8.     10  0 0 01 0 02 0 03 0 04 0 05 0 06 0 07  Time  seconds     Statistics for Barrier configuration    You can proceed to Examining a solution to the model to learn more about the execution  process and its results     See also       What happens when you execute a run configuration  in the IDE Reference  for details  on the execution process       Examining the statistics and progress chart  MP  in IDE Tutorials     LOG    OPL    GETT         STARTED WI                    mm                L    GETTING    STARTED    WITH                Examining a solution to the model    Explains how to read the solutions in the output tabs and read details of the executed model  in the Problem Browser     In this section    Execution results  Explains how to examine the results in the IDE after executing a run configuration     The Output tabs  Describes how the IDE output tabs reflect the result of project execution     Understanding the Problem Browser  Describes the information displayed in the Problem Browser before and after execution            ILOG OPL GETTING STARTED WI       Execution results    When you execute a run configuration to find the solutions to the problem expressed by the  model  the IDE provides facilities for examining results     one for examining the solution  and one for examining the details of your model       To examine the solution  browse the output tabs in the lower half of the main window   as explained in the next section The Output tabs     You can cust
9.    OG OPL GETTING STARTED WITH THE  E    Import into Folder l  B     Select a Folder to import inta     MyFirstProjeck    MyFirstProject    4  Click Finish in the Import window        The data file is added to the project but is not automatically added to the run  configuration  You will do this later  as described in Populating and executing the run  configuration     Note  You could also drag the data files file from Windows Explorer into the OPL  Projects Navigator  and drop them in the myFirstProject project folder     5  Your OPL Projects Navigator should now look like this     IBM ILOG OPL GETTING STARTED W 1                 Configurations  be di  MyFirstProject mod       Adding data files to a project    You are now going to execute your project  Later  you will modify the settings file so that  you can use it to execute different run configurations of your project  see Creating and  executing a different configuration      OG OPL GETTING STARTED WITH THE  E    ILOG OPL GETTING STARTED WI    Executing a project    Walks you through populating and executing the run configuration  creating a different  configuration  and understanding project execution     In this section    What you are going to do  Describes the purpose of this part of the tutorial     Populating and executing the run configuration  Describes how to add files to a run configuration and execute that configuration     Adding a settings file  Explains how to add a settings file to a project so as to be ab
10.    The Problems tab  immediately displays the corresponding error messages  indicating the description   location  and source            ILOG OPL GETTING STARTED W 1             E scripting log   E Solutions    gt  Corfits   zm Relaxations   232 Engine log     statistics   55  Profiler      errors  0 warnings  0 others       Description    Resource Path Location Type   S    Errors  4 items     Name  Resources  does not exist  MyFirstProject mod MyFirstProject 20 22 20 31 C  OPL_projects MyFirstProject MyFirstProject mod         Outline Problem Marker    Name  Resources  does not exist  MyFirstProject mod MyFirstProject 23 16 23 25 C  OPL_projects MyFirstProject MyFirstProject mod         Outline Problem Marker    Name  Resources  does not exist  MyFirstProject mod MyFirstProject 39 16 39 25 C JOPL  projects MyFirstProject MyFirstProject mod         Outline Problem Marker      Expecting a tuple component  found ERROR   MyFirstProject mod MyFirstProject     16 1 21 2 C  OPL_projects MyFirstProject MyFirstProject mod        Outline Problem Marker       00 00 00 00       Problems tab    2  Remove the mistake  The error message disappears and the indicators in the editor  disappear     3  Press Ctrl S or choose File gt Save or press the Save button I    in the standard toolbar  to save your work     In the next step  you will add two data files to the project     OG OPL GETTING STARTED WITH THE  E       Adding data    You can add more than one data file to a project or run configu
11.    Use   2 to display the description        a selected view     ILOG             PL GETTING    STARTED Ww                L    GETTING    STARTED    WITH                ILOG OPL GETTING STARTED WI    Working with files in OPL    Shows how to open  edit  and work with files in the OPL IDE     In this section    Adding existing files to a project  How to add files to your OPL project     Ordering files within a run configuration  How to specify the order of data or settings files in a run configuration     Opening files for editing  Shows how to open and edit your files in the OPL IDE     Local History and its related features  How to track and compare different versions of your files as you edit them in the OPL IDE      Compare With  features  How to compare files with each other and with Local History        Replace With    features  How to compare files with each other and replace the contents from other versions of the  file in Local History        Adding existing files to a project    You can use the File gt Copy Files to Project command to open a dialog box that allows you  to open files and import them into selected projects     You can also drag existing files from a Windows Explorer window and drop them onto the  project folder in your OPL Projects Navigator  This is always a copy operation  not a move     OG OPL GETTING STARTED WITH THE  E       Ordering files within a run configuration    When you execute arun configuration  the order of the data or settings files re
12.   After you have migrated OPL 5 x projects or imported or created new OPL 6 x projects  you  can leave them in your OPL Projects Navigator  If you exit from OPL  when you next launch  the OPL IDE  they will be there  ready to use     If you have loaded a number of projects and the OPL Projects Navigator starts to get     crowded     there are two ways to save memory or space in the Navigator window     by  closing  collapsing  the projects or by deleting them     Closing Opening projects   Projects are either open or closed  When a project is closed  it cannot be changed  but its  resources still reside on the local file system  Because they are not examined during builds   closed projects require less memory  Therefore  closing projects you are not working with  can improve build time       Right click on the project name and choose Close project from the context menu to close  the project  The plus sign next to the project name disappears  but it remains in the OPL  Projects Navigator       To reopen the project  right click on the project name and choose Open project from  the context menu     Deleting projects  If you are not currently working with a project  you can also safely delete it from the OPL  Projects Navigator  without deleting it from the file system     To remove a project from the OPL Projects Navigator  right click on the project name and  choose Delete from the context menu     A popup message appears asking whether you want to delete the project only from
13.  24    25int    26subject tof   27  forall  s in Stores     28 etEachStoreHasOne Warehouse   2    sumi w in Warehouses     0 Supply s  w     1    31  forall  w      Warehouses         32 ctUseOpenWarehouses    Supply s  v   lt   Open w     34  forall  w in Warehouses   v    lt     gt        ILOG OPL    You can use the icons that appear in the Text Compare area to move to the next and  previous differences in the files  and thus determine whether you want to replace the  contents of the current file with the contents of the version you are comparing it to     Replace With Previous Version  To replace a file with its previous version in Local History     1  In the OPL Projects Navigator  highlight the file you want to revert to its previous  version  right click and choose Replace With gt Previous Version     2  The file is automatically replaced with the version of the file from Local History that  immediately precedes it  This creates a new version in Local History     GETTING STARTED W 1                L    GETTING    STARTED    WITH                Executing OPL projects    Describes the different ways of running and browsing OPL projects     In this section    The Run options  Explains how to use the menus to run projects in the OPL IDE     The Status Bar  Describes the area that displays messages about the current execution status of the IDE  and information about files being edited     The execution toolbar options  Explains how to use the menus to run projects in the OPL
14.  65  execution 81  settings file 89    red star and exclamation mark 89  relaxations   in Output Area 98  99  Relaxations output tab 98  99  removing    items from run configurations or projects 83    Replace With 46       OG OPL GETTING  E    results 81  run configuration  order of files 39  run configurations 81   populating and executing 83    settings file  adding to a project 86  settings file  creating 69  settings files  modifying MP option value 89  settings files in a run configuration 39  solutions  examining 95  Solutions tab 98  standalone models 65  Statistics tab 100  Status Bar 59  run indicator 59  see run status 59  show background operations button 59  Status Bar description 59  system requirements for the OPL IDE 64    text editor 14   hiding line numbers 42  toolbars   execution 81  tooltips   values in tuple set 102  tuple sets   in call stack 102    Version list 46    Welcome window 11  workspace  definition 29    STARTED WITH THE       
15.  IDE            ILOG OPL GETTING STARTED WI       The Run options    You can solve an OPL model by clicking the Run      button in the execution toolbar   You can also use right click context menus    How the Run button works   The behavior of the Run     button in the execution toolbar depends on your    run history        As runs are executed  they are added to a numbered list that is visible by clicking the    arrow button to the right of the Run      button               mu Ae       1 warehouse Scalable data            2 warehouse Configuration      3 CrewScheduling LP  Configuration     4 warehouse Basic Configuration          5 warehouse Solution pool script       Run   5 k  Run Configurations       Organize Favorites            If you have just launched         and no model has been run yet  clicking the Run      button for the first time may produce the following message     P Unable To Launch    4  The selection cannot be launched  and there        no recent launches        In this case  you should try again by right clicking on the run configuration name  left  panel  and selecting Run this     OG OPL GETTING STARTED WITH THE  E                  Once the list is populated  clicking the Run      button launches the most recently  launched run configuration in the list  no matter what project is selected in the OPL  Projects Navigator     Note  Obviously  this does not make it possible to just click a project in the Projects  Navigator and launch its default run confi
16.  carseq     v  color  C  ILOG OPL62 examples opl color     v  config  C  ILOG OPL62 examples opl config     v  conflictIterator  C  ILOG OPL62 examples opl conflictIterator     v  convert  example  C  ILOG OPL62 examples opl convert_example     v  covering  C  ILOG OPL62 examples opl covering     v  CrewScheduling  C  ILOG OPL62 examples opl models CrewScheduling     v  customDataSource  C  ILOG OPL62 examples opl customDataSource     v  cutstock  C  ILOG OPL62 examples opl cutstock     v  decentralization  C  ILOG OPL62 examples opl models Decentrl           Fi Copy projects into workspace          This screen can be used to load one or more OPL projects into the OPL Projects  Navigator  The general procedure for doing this is to       Select a root directory  this is the directory on your file system where your existing  OPL project is located   Alternatively you can select an archive file JAR  ZIP TAR   where the project has been stored       Select a project  or projects  if the root directory contains more than one project   to be imported       Indicate whether you want to copy the projects into the workspace  The default  workspace is     C  Documents and Settings NV   username  MApplication Data ILOG OPL Studio  IDEN  version number M  project name      M ILOG OPL GETTING STARTED W 1                    mm    Warning  If you don t copy the project into a workspace and work with the  original  there is a risk of modifying or deleting the original  example     The next s
17.  run configuration name gt    percent     with a percentage displayed to indicate progress       When the solve is finished  the message changes to   run configuration name gt  100    to indicate that the run has completed      In addition  as the model is solving  the run indicator    becomes animated           If you click the Shows background operations icon    at the extreme right of the  toolbar  a Progress tab appears in the Output Area  If the solve is still running  you see  a display similar to the following     12  Problems  E Scripting log  22 Solutions 2 Conficts    Relaxations  2  Engine log     Statistics    Profiler El Console       Progress 22 Rr Ro  OPL Scalable data          mu  run  Prepare model          When the solve has finished  you see a display similar to this     I BM ILOG OPL GETTING STARTED WI       E  Problems   Scripting log  2 Solutions  22 Conficts     Relaxations    lt   Engine log   8 statistics    Profiler   E Console    Progress 22                      OG OPL GETTING STARTED WITH  E          H    E          The execution toolbar options    In addition to the Run context menu in the OPL Projects Navigator  there are buttons in the  execution toolbar that can be used to run your projects in different ways  These are explained  in the IDE Reference Manual  see The execution toolbar            ILOG OPL GETTING STARTED WI                L    GETTING    STARTED    WITH                ILOG OPL GETTING STARTED WI    Getting Started tutorial    A t
18.  the  navigator  or from the hard disk as well       If you do not check the box  you remove the project from the         Projects Navigator but  leave it on the file system       Ifyou check the box Delete project contents on disk  cannot be undone   the project    will be completely deleted  and cannot later be recovered using Undo or the  Import   Existing         6 x projects menu command     OG OPL GETTING STARTED WITH THE  E    Important concepts and terms    Describes some of the terms and concepts that are important to understand about the OPL  IDE     In this section    Resources  Describes what resources are in OPL     Workspace  Describes the OPL workspace     Views  Explains the different types of views in the OPL IDE            ILOG OPL GETTING STARTED WI       Resources    Resources refers to the projects  folders  and files that exist in the        IDE  The        Projects  Navigator provides a hierarchical view of these resources and allows you to open them for  editing    There are three basic types of resources      Files     Similar to files in the file system      Folders     Similar to folders in the file system       Projects     Used for builds  version management  sharing  and resource organization   Projects are comprised of folders and files  and map to directories in the file system     OG OPL GETTING STARTED WITH THE  E       Workspace           ILOG OPL GETTING STARTED WI    The workspace is the working directory in which you store and work with y
19.  top of the New Example wizard     4  To sort the list of examples  click one of the tabs       Sorted by Complexity     to display examples grouped by complexity  Basic   Intermediate  Advanced  Demo  etc        Sorted by Feature     to display examples grouped by feature          Model           Project  OPL Script  etc        Sorted by Industry     to display examples grouped by industry  Finance   Manufacturing  Transportation  etc        Sorted by Technique     to display examples grouped by technique  Constraint  Programming  Decomposition  Search  etc      5  To filter the display  type the text you are looking for in the field at the top of the  wizard  The display is filtered to display only examples that contain the text you enter            ILOG OPL GETTING STARTED W 1    6              To obtain help for an example  select that example and press F1 or click the Help  icon     to display the documentation for that example in the wizard    To select a destination for the opened project  type a path into the Choose copy  location field or use the Browse button to search for one  The default location is your  workspace     When you click Finish  the example appears in the OPL Projects Navigator  Expand  the project and double click the model name to display the model contents     Once you begin working with the New Example wizard  if you already know the name  of the example you are searching for and you always open examples in your default  OPL IDE workspace  you wil
20. 0000  INIT nbCap 0 0000 0  0B 0  0 0000  INIT capacities 0 0000 0  0B 0  0 0000  INIT weight 0 0000 0  0B 0  0 0000  INIT colors 0 0000 0  0B 0  0 0000  5 PRE_PROCESSING 0 0312 2  0B 0  0 0000      lt            Profiler table for a CP model  steelmill mod   BM ILOG OPL GETTING STARTED WITH T HE 101  OPL IDE       Understanding the Problem Browser    102    The Problem Browser shows a structured view of the problem expressed by the model  See  The Problem browser in the IDE Reference and Doing more with the Problem Browser in  the IDE Reference for a complete presentation     When you first open a project  the Problem Browser is empty  You can use it to browse the  model before any execution and to examine the values after execution     When you execute a run configuration  the Problem Browser provides a way for you to  examine the solution to your model  in addition to what you see in The Output tabs  It  summarizes information about the data structures defined in the model to express the  optimization problem     As an example  you can open the production project and run the Named data configuration   After the execution  the Problem Browser displays values for the model elements               Sy Problem browser 23  00  Variables        Breakpoints         75  Solution with objective 372                Value         Data  4   E  Capacity  20 40   E Product   lt 100 0 6 0 8  0 5 0 2  gt    2000 8 0 9 0 40 4   C        3000 3 0 4  0 3 0 6  gt     F Products   kluski   capelli
21. 120         w in Warehouses       21 Fixed   Open w        sum  w in Warehouses         SupplyCost s  w    Sur               EBs eo             11  s in Stores       ctEachStoreHasOneWarel   sum  w in Warehouse        j  gt                 Compare With Local History    To compare a file with another version of itself in Local History     1  In the OPL Projects Navigator  highlight the file you want to compare with its own  Local History versions  right click and choose Compare With gt Local History     2  A list of the different versions of the file is displayed in the History tab      2 Probl El scripti  5 Solutio    Conflic  e Relaxa   2 2 Engine   8 statisti   65  Profiler a History 22 ELI                                 warehouse mod E  amp   2 my B          Revision Time  Ei 3 26 09 5 21       3 26 09 5 21          3 25 09 4 58 PM  8     gt   writable Insert 24    00 00 00 00       3  Double click on the version of the file that you want to compare with the current  version     The files are opened in the Editing Area in a special view that allows you to see them  side by side  with the differences between the two versions highlighted     OG OPL GETTING STARTED WITH THE  E                LOG        B Text Compare     s  lt       A            Local  warehouse mod    Local history  warehouse    Mar 26  2009 5 21 24 PM       23 SupplyCost s  v    Supply s  24   25subject tot  26  forall  s in Stores    27 ctEachStoreHasOneWarehouse   28 sumi w in Warehouses    29 Supply s  
22. 1987  2009       Index    ellipsis  in the Problem Browser 102  Engine Log output tab 99  error checking 81  examining solutions 96  examples  opening 16  using the New Example wizard 16  execution  of projects and models 81  toolbar 81    files   ops 89  product dat file 67  product dat productn dat 77  product mod file 67    hiding line numbers in text editor 42    IDE  Integrated Develop Environment  14  infeasibility 81    line numbers   for cursor position  in Status Bar 59  line numbers in text editor 42  Local History 46    Main window 14   main window  line number  column number 59  name of current file 59  Status Bar 59   minimize statement 99   model  creating 69       105       106    models  execution 81  production planning 67  73  solving 81    New Example wizard  using to open examples 16  vs  using the Import wizard 16    objective function   and Engine Log tab 99  oplide 10  optimal solution 97  order   in Problem Browser 102  order of files in a run configuration 39  OS requirements for OPL IDE 64  Output Area   Conflicts 98  99   Console 97   Engine Log 99   Problems 97   Profiler 100   Relaxations 98  99   Solutions 98   Statistics 100  output tabs 97    Problem Browser  description 102  order of elements 102  using 102  Problems output tab 74  97  product dat file 67  77  product mod file 67  production planning example 67  73  productn dat file 77  Profiler tab 100  project  creating 69  projects  adding a settings file 86  adding data files 77  creating
23. 441          IBM               V6 3    IBM               Getting Started  with the OPL IDE       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  Awww 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 Unit
24. 5 03 Run Configurations     B Configuration1  default     MyFirstProject mod  E MyFirstProject ops  da  MyFirstProject mod       MyFirstProject ops    6                         B Probi 25   b  varia   9o Break       7                    Value    Property Value      New project and new empty model           window    Note that the  mod and  ops extensions are automatically appended to the file names  in the OPL Projects Navigator and in Windows Explorer  see File types in the IDE  Reference and Understanding OPL projects in A quick start to        for more information  on file name extensions in OPI      The OPL Projects Navigator displays a minimal tree containing            empty  mod file  you are going to fill it with         statements in the next step  Adding  the model      an  ops file containing the default values for MP and CP options  and         settings  see  Changing an MP option value in this manual and Setting programming options in the IDE  Reference       the Run Configurations folder      one run configuration  set to default  containing the model and settings files you have  just created  see New project and new empty model in main window      Important         only mandatory component in a project or run configuration is a valid  model file  A project can contain more than one model  but a run  configuration can contain only one     See also The main window in the IDE Reference for reference information on the graphical  user interface     OPL GETTING STAR
25. I  4 errors  0 warnings  0 others  Description Resource Path Location Type        Errors  4 items     Name  Resources  does not exist  MyFirstProject mod MyFirstProject 20 22 20 31 C  OPL_projects MyFirstProject MyFirstProject mod        Outline Problem Marker     3 Name  Resources  does not exist  MyFirstProject mod MyFirstProject 23 16 23 25 C  OPL_projects MyFirstProject MyFirstProject mod OPL Outline Problem Marker  63 Name  Resources  does not exist  MyFirstProject mod MyFirstProject 39 16 39 25 C  OPL_projects MyFirstProject MyFirstProject mod OPL Outline Problem Marker    6 Expecting a tuple component  Found ERROR  MyFirstProject mod MyFirstProject 16 1 21 2 C  OPL_projects MyFirstProject MyFirstProject mod        Outline Problem Marker    00 00 00 00       Problems tab    How to read messages      The Description column guides the user as to the nature of the error     The Resource column indicates which resource the error occurred in     The Path column provides the path to the current file       The Location column reflects the line that s affected by the error        Scripting log    The Scripting log tab shows execution output related to the IBM          Script main       execute      prepare blocks of the model  if applicable      LOG OPL GETTING STARTED WI                                      Problems      scrintinglog 23  gt  G5 Solutions    Conflicts   22  Relaxations 72 Engine log   statistics 52  Profiler   Ex BE  Routes     lt p  bands  e   lt o  GARY  d  F
26. MyFirstPrajeck  aps  S product  dat  ES MyFirskProjeck  mad  Ua MyFirstProject  ops     product  dat  productn dat                   Adding a data file to a run configuration           ILOG OPL GETTING STARTED WI    3  Right click Run Configurations and select Run gt Configuration1  Alternatively   right click Configuration1 and select Run this     Note  A project can contain more than one run configuration  To make a  configuration the default  right click its name and choose Set as Default   But you can execute any of the other run configurations using the Run  option   You can also execute any run configuration  whether default or not  by    T    clicking the arrow next to the Run button  gt  and selecting its name  from the Run option     See The Run options for more information on running OPL models     See The Status Bar for more information on obtaining run status information  during the run     4  Observe the Output Area     The highlighted tab names show which output panels have received content during execution   The pasta production model uses CPLEX   as the solving engine       The Solutions tab displays one solution                  e Problems El scripting log E Solutions x A Conflicts 2 Relaxations Sh Engine log 8 statistics    Profiler x            solution  optimal  with objective 372  Inside    40 O 0    Outside    60 200 300      00 00 00 23       Solution for Configuration1      The Engine Log tab displays details for each iteration                      Pro
27. Product   lt 100 0 6 0 8  0 5 0 2  gt    2000 80 9 0 40 4   C        300 0 30 4     t  Products   kKluski   capellini   Fettucine    i  Resources   flour               Decision variables  2   E  Inside  40 0 0   E  Outside  60 200 300     XY Constraints  2   ET ctDemand Inside p  Outside p   gt   Product p  demand  CT ctinside sum p in Products  Product p  consumption r  Inside p   lt   Capacity r   Property Value    You will learn more about the Problem Browser in later sections of this tutorial and in the  IDE Tutorials  See also The Output Area in the IDE Reference  and Understanding solving  statistics and progress  MP models  in IDE Tutorials  for more information     You can now continue with the tutorial and create another run configuration to learn more  about project settings  or you may want to go first to What happens when you execute a run  configuration in the IDE Reference to learn more on the execution process  then proceed  to Examining a solution to the model to understand results        Adding a settings file    A settings file is where you store user defined values of OPL options for language output   mathematical programming  or constraint programming  It gives you access to the solver  parameters and allows you to modify them  For more information  see Preferences and  options in the IDE Reference     Note  If your model contains a main flow control script  the OPL values you set in the   ops  file  as well as the settings set within the main script  appl
28. RA  gt   gt      lt p   bands  e   lt o  GARY  d  DET  gt   gt      lt p   bands  e   lt o   GARY  d  LAN  gt   gt      lt p   bands  e   lt o   GARY               gt   gt      lt p   bands  e   lt o  GARY       STL  gt   gt      lt p   bands  e   lt o  GARY  d  FRE  gt   gt      lt p   bands  e   lt o   GARY  d  LAF  gt   gt                                              lt p   bands  e   lt o  CLEV              gt   gt      lt p   bands  e   lt o  CLEV  d  DET  gt   gt      lt p   bands  e   lt o  CLEV  d  LAN  gt   gt      lt n   handa  e   lt n  CLEV  Ad  WTN  gt   gt                                            K       Scripting log tab  transp4 mod        Solutions    The Solutions tab displays the final solution to a model and  if applicable  any intermediate  feasible solutions found           Problems E scripting log 52 Solutions SF Conflicts    Relaxations d Engine log a Statistics 6  Profiler En BE                   solution  optimal  with objective 372     40 0 0       60 200 300         00 00 00 23       Solutions tab  basic configuration of product  mod     By default the variables are displayed as well  You can disable this display  see OPL language  options in the IDE Reference        Conflicts    When a CPLEX   model proves infeasible  the Conflicts tab shows the places where you  can change the data or the way filtering constraints are expressed so as to remove the  incompatibilities that made the model infeasible  See Relaxing infeasible models in IDE  Tutorial
29. Replace With commands to compare  different versions of a file or revert to previous versions of a file or its contents     Each of these features is described in the following sections     OG OPL GETTING STARTED WITH THE  E          Compare With  features      Compare With Each Other    Compare With Local History  Compare With Each Other    To compare two files in the same project with each other     1  Inthe OPL Projects Navigator  highlight the two files you want to compare  right click  and choose Compare With   Each Other              OPL Projects 22 35 Debug      e           B     warehouse     warehouse location model  Mixed Integer Programming   5 09 Run Configurations         Basic Configuration  default      Configuration2     Filter script  D scalable data  m Solution pool script   scalableWarehouse mod  w solpoolscript mod Run   warehouse mod  48  warehouseCplexFilters r  B warehouse 10 dat Open     warehouse 11 dat     warehouse  8 dat     Copy Ctrl C     warehouse_9 dat    Paste Ctrl          New       B warehouse dat    Delete Delete    Generate ODM Application     I3 Tune project       Add to Run Configuration          Compile model    Import         Refresh    Each Other  Replace With       2  The files are opened in the Editing Area in a special view that allows you to see them  side by side  with the differences between the two files highlighted            ILOG OPL GETTING STARTED W 1                     g OPL Projects 53 3 Debug   P cor        gt     a g w
30. TED WITH THE       Adding the model    You are going to copy paste the pasta production model into the Editing Area   To add the pasta production model to the project     1  Choose File gt Open File in Editor  and browse to     lt OPL_dir gt  examples opl1 production product mod    then double click the filename in the dialog box or select it and click Open     Note  There are two model files in this project  Make sure that you open  product mod and not production mod     The         statements of the product  mod file appear in the Editing Area  in a separate  window  If you click the tab of the myFirstProject mod file  you can see that your  empty model is in a different editor     2  Click in the product mod window and press Ctrl A to select all the text  then Ctrl C  to copy the contents of the file     3  Click the tab of the myFirstProject mod file to redisplay the empty editing window  for your own project     4  Place your cursor after the header comments and press Ctrl V to paste the copied  statements into the file myfirstproject mod     Note that an asterisk      appears in the tab of this window      E  MyFirstProject mod 2 3    This indicates that the file is unsaved  Click the Save button A to save the file   5  Close the open window for the product  mod file in the Editing Area by clicking the 22    button to the right of its tab  Leave the edit window for the myFirstProject mod file  open for the next exercise            ILOG OPL GETTING STARTED WI       Deali
31. a button to see the tooltip     Overview  Get an overview of the features       The buttons lead to information on the release and parts of the OPL documentation you  might frequently refer to       Overview     displays links to      A quick start to OPL       Migrating from previous versions of            Tutorials     displays a set of links to different sections of the IDE Tutorials manual      Samples     displays a set of links to different sections of the Language and Interfaces  Examples manual      What s New     displays a set of links to        The Release Notes  which provide an overview of new and changed features in the  IDE        This Introduction to the OPL IDE        Aset of links to various OPL and ODM user forums  These links are driven by an RSS  feed  so they are constantly updated to reflect the latest information on those forums     To close the Welcome window and use the OPL IDE     Click the X in the Welcome window tab to close it     C wekome          Or  click the Workbench icon at the top right of the Welcome window        Closing the Welcome window using the second method displays a toolbar at the bottom  of the IDE  in the Status Bar  as shown below        omo    Closing the Welcome window by clicking the X in the tab does not display this toolbar       When you close the Welcome window using either method  the OPL Main window appears   It is described in the next section     To return to the Welcome window from the OPL IDE     Choose Help   Wel
32. an empty project      Add an existing model or write a new one  see The pasta production example     Add one or more existing data files or write new ones  see Adding data       Set mathematical programming options  if applicable  see Changing an MP option value     Once your project is built  you will populate a run configuration  execute it  and study the  results as explained in Executing a project and Examining a solution to the model     OG OPL GETTING STARTED WITH THE  E       The pasta production example    B    M    ILOG OPL GETTING STARTED WI    You could write your own model from scratch by following the syntax rules from the Language  Reference Manual and the Language User s Manual  but since this tutorial does not aim at  teaching you the modeling or scripting languages  you are going to reuse the pasta production  example  described in A production problem in the Language User s Manual  for the purpose  of this exercise     Note  The pasta production model is designed to be solved by the CPLEX amp  engine  However   the content of this section would be the same for a model solved by the CP Optimizer  engine  except where explicitly mentioned     The problem is as follows  To meet the demands of its customers  a company manufactures  its products in its own factories  inside production  or buys the products from other companies   outside production      The inside production is subject to resource constraints  each product consumes a certain  amount of each resour
33. arehouse  A warehouse location model 4      Run Configurations       Basic Configuration  default     nm Configuration2  E M Filter script           Scalable data       nm Solution pool script       Text Compare      warehouse scalableWarehouse mod       o    The scalable warehouse exa  10   so that the search is long  11   The resulting size is greal  12   Therefore  you need a vali   13   See the Licensing Scheme d          scalableWarehouse  mod               ai        4 P i5int NbWarehouses   50   SODOOISCTIp  mo 16       NbStores   200                                ko   a  E gt    m 4 9 5       warehouse warehouse mod                   Sint Fixed           10 string  Warehouses         iiint NbStores           izrange Stores   0  NbStores   13int Capacity Warehouses     i4int SupplyCost  Stores           iSdvar boolean Open Warehous   i6dvar boolean Supply Stores        warehouse mod  da  warehouseCplexFilters mod  A warehouse 10 dat              17         19    20 range Warehouses 1   NbWareht  2irange Stores 1  NbStore   22int Capacity w in Warehouses    23 NbStores div NbWarehouses        By Probe 53   69  variabl   96 Breakp         1                                     18assert  NbStores    NbWarehous     i       24 w    NbStores div NbWareho       Name Value 25int SupplyCost s in Stores  w   26           100   27dvar int Open Warehouses  in    28davar float Supply Stores   Ware  29dexpr int TotalFixedCost   sur   Property Value  lt     1  gt         iominimize   
34. blems E scripting log       Solutions F conflicts    Relaxations      Engine log 22 2 Statistics  5  Profiler x            Iteration Dual Objective In Variable Out Variable  1 90 000000 Inside   fettucine   ctDemand   fettuci slack  2 250 000000 Inside   capellini  ctDemand  capelli slack  3 286 666667 Outside  fettucine   ctInside  eggs   slack E  4 350 000000 Inside   kluski  ctDemand  kluski  slack  5 363 333333 Outside  capellini  ctInside  flour   slack     00 00 00 23       Engine        for BasicConfiguration  MP     OG OPL GETTING STARTED WITH THE  E                ILOG OPL GETTING STARTED WI      The Statistics tab shows  among other information  the algorithm and the number of  iterations                     EL Problems   E scripting log   E solutions x Conflicts      Relaxations 2 2 Engine log   8 statistics  3     Profiler  Statistic Value       Bestnode    Best integer     Integer solution    solution  optimal  with objective 372    Constraints 5       Variables 7  Non zero coefficients 12 0      MIP  Objective 372  Incumbent 372 0 0 02 0 04 0 06 0 08 0 1 0 12 0 14  Iterations 7 Time  seconds     00 00 00 23       Statistics for BasicConfiguration  MP       Also  notice that the Problem Browser now contains data for the problem  including the  solution  displayed in the drop down at the top                    Problem browser 23   69  variables        Breakpoints      5250     Solution with objective 372             Value  a      Data  4   E  Capacity  20 40   E  
35. ce  In contrast  the outside production is theoretically unlimited  The  problem is to determine how much of each product should be produced inside the company  and how much outside  while minimizing the overall production cost  meeting the demand   and satisfying the resource constraints     The code extract below  product  mod file  shows an OPL model  the tuple version  for this  example  This model is part of the production project  which is available at the following  location      lt OPL_dir gt  examples opl production  where   OPL dir   is your installation directory     OPL model for the production planning example  product   mod                                 ogc   string  Resources         tuple productData    float demand   float insideCost   float outsideCost   float consumption Resources            Product  Products    1 3  float Capacity Resources            dvar float  Inside Products    ever floattOutside Produocts      execute CPX PARAM    cplex preind   0   cplex simdisplay   2        minimize  sum     in Products     Product p  insideCost   Inside p     Product  p  outsideCost   Outside p      subject to    forall  r in Resources    ctInside   sume pein Products       Productip  consumptionir    Insidelp   lt   Capacitylt    forall o an Products  2  ctDemand   Inside p    Outside p   gt   Product       demand     The following code extract  product  dat file  shows the data declaration for the problem     OPL data for the production planning example  produ
36. come from the main menu       Or  click the Restore Welcome icon at the bottom right of the IDE   It appears when  you click the Workbench arrow      OG OPL GETTING STARTED WITH THE  E                   ILOG                L       Restore Welcome    GETTING    00 00 00 00    STARTED     1       The Main window    The following illustration details the primary areas and controls of the Main window in the  OPL IDE  Integrated Development Environment   Tooltips appear when you move the pointer  over most elements  or views  of the main window     Standard Execution Outline    toolbar toolbar If active  reflects the  structure of the selected file    Menu bar      amp  ovine  OPL Projects 1               hives Reserved     ios Ker  Navigator rs NN DENT m g  rer FS  Lists projects  D                            2       models  data  b          settings  and        eet i leanne  configurations                        ae              l sn Stores  atacnSoreiasonenan     vn warehouses  Problem     vt eos      Sod  Browser prr m 22107           Displays problem prope    instance  solution            12 22 22 42 52 62 7        values  etc   Output Area    Supply   110    Displays solutions   error messages   solver and profiling       info  conflicts and Status Bar Editing Area Currentedited Current    Runstatus Run Click to see        For model document info cursor message indicator run progress  data  and   position detail  settings    OG OPL GETTING STARTED WITH THE  E    Opening distr
37. created in this directory     In the Options field       Enter a Description for the project         Check all the boxes except Create Data  because you will later be adding existing  data files to the project rather than creating an empty one     Your window should look similar to the one shown below     OPL GETTING STARTED WITH THE                ILOG    New Project    Create Project    Create a new project     Project Name    MyFirstProject    Project Location    C  OPL_projects    Project Folder           1 _              5           5                            Options       Description    OPL test project   Add a default Run Configuration  Create Model   Create Settings      Create Data          Creating a project    When you have entered all the information  click Finish     Note  If a project with the same name already exists in OPL  a message warns  you and the Finish button remains greyed out as long as you don t enter  a unique name     The project is created  containing the model and settings files you specified  and  appears in the OPL Projects Navigator  The new empty model file is displayed in the  Editing Area     OPL GETTING STARTED W 1                                   S Debug    OPL Projects 22  rg  MyFirstProject mod 55 iTA MyFirstProject ops   vu I TXERZTTERITARITATATTXAATITAAITAAATTITATTTAITAA YTITAA  2   OPL 6 2 Model  3   Author  Susan  4   Creation Date  Mar 31  2009 at 11 56 51 AM         522222222222 27     aS  ae MyFirstProject  OPL test project   
38. cs   55  Profile          When you do this  the detached view will return to the frame     Resizing views  To resize views  click on one of its borders or corners and drag it to the desired size     Or  to temporarily expand a view to the full size of the IDE frame  double click its tab   Double click again to shrink it back to original size     Moving views   To move a view  right click its top border and drag it to the desired location  A black border  appears as you drag the view around the frame  to tell you where the view will be placed if  you release the mouse button in that location     Hiding views  To hide a view  click its Close box  amp      To display a view that has been closed  in the main menu choose Window   Show View and  select the name of the view you want to display                     mm               Preferences           1  3 Engine log    7 0        Projects      Outline Alt  Shift  Q      e Prablem browser   EL  Profiler   2 Relaxations   EI Scripting log      Solutions         Statistics    Other    Alt Shit Q  Q       If the view you want to display is not shown in that menu  click Other to display more views     OG OPL GETTING STARTED WITH THE  E                Show View    1    i AP Classic Search    x El Console     9 Internal Web Browser    2  Bi Markers  aro Navigator            ge Outline   mr Problems   4 Progress     5  Project Explorer    Properties       AP Search    1    j J  Tasks    i e Cus  H E Debug    gt  Help  H E         H E Team 
39. ct   dat     Eroauctsi                                      Resources      flour    eggs       Product               KS     0  52                           cape            lt  200  Os O 95   OP E OH I Sy                 lt  300         OC4        O06 J  gt         Capacity    207 410      OG OPL GETTING STARTED WITH THE  E       Creating an empty project    To start from an empty project     1  In the main menu  choose File gt New gt OPL Project  or click the New icon and select  OPL Project     Te 21     j ef OPL Project              Project                              Run Configuration           Model  E Data       E Settings    C   Folder   1 File       E Untitled Text File                 Example                 Fy Other            L L     2  The New Project wizard is displayed     IBM ILOG OPL GETTING STARTED WI    3     New Project    Create Project    Create 4 new project     Project Name           Project Location    C  Documents and Settings murphy       Project Folder        Options       Description          C  Add a default Run Configuration   C  Create Model    C  Create Settings       Create Data    Cancel       Enter the following information in the New Project window     Type myFirstProject as the Project Name of your new project     Enter a destination Project Location for the project  other than the         examples    directory  For example  create a directory named C  NOPL projects and browse to  select the directory     A folder with the project name is 
40. ctory  The latter risks the possibility  of overwriting the distributed example by making changes and saving them  or of  accidentally deleting the distributed example     Enhanced project descriptions     Using the New Example wizard  you see longer  more explicit descriptions of each project  Using the Import wizard  you see only the  name of each example     Enhanced sorting and display options     The New Example wizard contains multiple  tabs that allow you to view the examples sorted by complexity  feature being demonstrated   industry represented  and mathematical programming technique being used   Built in Help     By selecting an example and pressing F1 or clicking the Help icon 0  you can display the documentation for that example      the New Example wizard itself   and look it over before deciding to open the example     OG OPL GETTING STARTED WITH THE  E    New Example    Example Project    The objective of this scheduling problem is to minimize the total sum of fight delays  6 Related Topics         About Example Project      See also       Working with the New  Example wizard     Dynamic Help    Search results for  Example  Project  OR  New Example         Why you should use the  New Example wizard       Opening distributed  examples in the OPL IDE      Examples      New and changed in OPL   Go To    I   Al Topics 2 Search        Bookmarks R Index    n    C  Documents and Settings  lt user gt  Appication Da    Browse            lt           gt  Dorm            
41. duction to the OPL IDE  the first section of this manual       How to read the         documentation for details of prerequisites  conventions   documentation formats  and other general information     OG OPL GETTING STARTED WITH THE  E    ILOG OPL GETTING STARTED WI    Creating a project    Walks you through creating a project file  adding model and data  and setting mathematical  programming options     In this section    Purpose  What you are going to do in the tutorial     The pasta production example  Presents the production problem and shows the code for the model and data     Creating an empty project  Walks you through creating a project  from scratch  and defining a model using the editing  capabilities of the IDE     Adding the model  Walks you through entering a model in an IDE project     Dealing with errors  Describes how to take advantage of the automatic error detection feature     Adding data  Explains how to add a data file to an OPL project and fill it with data                          After launching the IBM   ILOG               as described in the Launching the        IDE  section  you will want to solve a problem of your own  For this  you will first have to define  a working document in the IDE  You can do this either by editing an existing project  see  Reusing existing files and projects in the IDE Reference  or by starting your own project     In this tutorial  you will start your own project  To do this  you will      Create a project  see Creating 
42. e main editing area     H  P                    mm           L          Values  m Products  size 3     demand 1 insideCost    outsideCost consumption     kluski  i  0 5 0 2      0 4 0 4      capellini    0 3 0 6      Fettucine        For a large tuple set  the values may not all be visible within the window  In this case  an  ellipsis appears at the end of the cell  Pass the cursor over the column to display all the    values in a tooltip     Note  If the model has only unlabeled constraints  the Constraints line is empty  To observe  this  comment out the constraint labels and execute the project again  See Constraint  labels in the Language Reference Manual     OG OPL GETTING STARTED WITH THE  E          code samples  product dat 67  product mod 67  column number for cursor position  in Status Bar  59  command line  launching the IDE from 10  Compare With 46  conflicts and relaxations  not supported by CP engine 98  99  Conflicts output tab 98  99  Conflicts tab in IDE 97  Console output tab 97  constraint programming  conflicts and relaxations not supported 98   99  CP Optimizer  no support for conflicts and relaxations 98   99  Create settings  option 69  creating projects 65    data   adding to a project 77  data files in a run configuration 39  decision variables   display option  or off 98  Description column   in Problems output tab 74  display conflicts 97  displaying   decision variables 98  draft projects 65    editing files in the IDE 42       Copyright IBM Corp  
43. ed 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        Table of contents    Getting Started with the OPL                                                      5  Introduction to the                                                       7  Launching  the OPL IDE  niin nre Feier dt alie et tee t ferie E De nd              bites 9   Starting thes DE  usi codo c petiti t dea ee redu iere        10         Welcome  winldOW            teo tr    the ea ERU I dees EE          11  The        WIIDIdOW          3   7 rte      ORARIO RR epe ER Ran e Rena 14  Opening distributed examples in the OPL                            enne nnne nnne nen 15  Why you should use the New Example                    eene 16  Working with the New Example                       rennen nenne 18  Opening projects in the         Projects                                         nennen neret 21  Importing existing projects into the                                  eene 22  Managing projects in the OPL Projects                         0  2     22 42    0 0           26  Important  concepts and terris    rrt et                         EORR RARE          27  Resources ni EE 28                               ED Ren ELE t edt 29  
44. guration by simply clicking the Run         button  For this reason  many OPL users prefer the right click context  menus to launch their models     The default behavior of the Run button is configurable  See Run  Debug  Browse   and External Tools button options for more information     How the Run context menus work   There are additional ways to run your projects in OPL  This section describes the context  menu options that can be used to launch your projects directly from the OPL Projects  Navigator     To set a default run configuration  right click a run configuration in the project folder and  select Set as Default     ILOG OPL GETTING STARTED WI    a warehouse  4 warehouse location model  Mixed Integer Programming           Run Configurations   Ez n Basic Configuration               Ctrl C         warehouseCple    i    warehouse  dat     Paste Ctrl     X Delete Delete    Rename    F2       I3 Tune project          Import        Refresh       Team  Compare With  Restore from Local History          Properties Alt Enter       To run your projects from the OPL Projects Navigator     Ifyou right click on the project folder  you see the following context menu     OG OPL GETTING STARTED WITH THE  E          jn model  Mixed Integer Programming   8    Run Configure    scalablewaret  bl solpoolscript r   p Basic Configuration  default   warehouse mi g  Scalable data  n FB Copy Ctrl C                  8 Paste             Solution pool script    warehouse 1     Delete Delete    F
45. he context menu  In this example  Configuration2 is renamed Barrier     OG OPL GETTING STARTED WITH THE  E       MyFirstProject           best project   B e Run Configurations    In Barrier   D Configuration   deFaul   5 My FirstProject  mod       E MvFirstProjecE  ops   E product  dat             MyFirstProject  mod                 MyFirstProject ops  j se       newsettings ops  product  dat        productn  dat       3  Drag and drop the files myFirstProject mod  product dat  and your new settings  filenewsettings ops into the new Barrier run configuration     The OPL Projects Navigator should look like this            ILOG OPL GETTING STARTED W 1     5 Debug y OPL Projects 22 H T v               MyFirstProject  OPL test project   5 09        Configurations      Barrier        MyFirstProject mod  am newsettings aps       product  dat      Configurations  default        MyFirstProject  mad  am MyFirstProject ops  a product  dat   dil MyFirskProjeck  mad        MyFirstProject  ops   Wp  newsettings  aps   praduct dat   productn dat                 A run configuration with different settings    4  Right click in the project and select Run   Barrier from the context menu to execute  the model with changed settings     The CPLEX   engine now uses Barrier as the value of the algorithm for continuous  problems     Observe the differences in the output tabs       The Solutions tab displays the same solution  see Solution for Configuration1        The Engine Log tab shows a differen
46. ibuted examples    the OPL  IDE    Instructions for browsing and opening the example projects and models distributed with  OPL     In this section    Why you should use the New Example wizard  Why using the New Example wizard is the recommended method of opening distributed  examples     Working with the New Example wizard  Instructions for using the New Example wizard to open the distributed examples            ILOG OPL GETTING STARTED WI       Why you should use the New Example wizard    Examples of OPL models are available in the installation directory and can be opened in the  OPL IDE using File  gt  Import  gt  Existing OPL 6 x projects and the Import wizard that  opens     However  the recommended method of opening distributed examples is to use the File  gt   New  gt  Example menu command to launch the New Example wizard     Benefits of using the New Example wizard          Always working with a copy  not the original     Opening examples using the New  Example wizard ensures that you are always working with a copy of the example   Therefore  if you make changes and save them  the original example is always available  to you in its original form     Flexibility of project destination     Using the New Example wizard  you can specify  any folder in your file system as the destination for the project  Using the Import wizard   you have only the choice of opening the project in your default Workspace or  in place    by opening the example in its original distribution dire
47. ilter script         warehouse 8 Rename    F2 p  Configuration2       warehouse_9         warehouse          V Default Run Configuration    Generate ODM Application     I3 Tune project       Import         Refresh  Close Project       Team  Compare With  Restore from Local History       Properties Alt  Enter       Two run options are listed        Run  gt  Default Run Configuration     this option executes the run configuration that  is currently set as the default for this project         Run  gt    list of run configurations       this option displays all run configurations  for the project  so that you can choose which one you want to launch  whether it is  currently the default run configuration or not       If you right click on an individual run configuration for a project  you see the option Run  this  which enables you to run only that run configuration     BM ILOG OPL GETTING STARTED W 1                    mm    B warehouse     warehouse location model  Mixed Integer Programming          Run Configurations     8     Basic Configuration  default   H    Configuration2       Filter script    Scalable data       S A Solution pools  gt  Run this     B scalablewarehous  amp  Set as Default         w solpoolscript mod    warehouse mod New         d  warehouseCplexF EB        i                 warehouse_10 de            warehouse 11 de gms       warehouse  8 dat X Delete         warehouse 9 dat    Rename            warehouse dat    Import    Generate ODM Application     I3 T
48. l find that the fastest way to use it is the following     1  On the second screen of the New Example wizard  step  2 above   type the name  of the example you are searching for in the filter field     The example will be displayed in the selection window     2  If the example displayed in the selection window is the one you want  simply press  Enter twice to open it in the OPL IDE     OPL GETTING STARTED WITH THE    Opening projects    the OPL Projects  Navigator    How to open OPL projects and work with them using the OPL Projects Navigator     In this section    Importing existing projects into the workspace  Shows how to load OPL projects into the OPL IDE     Managing projects in the OPL Projects Navigator  Explains how to work with your projects once you have imported them            ILOG OPL GETTING STARTED WI       Importing existing projects into the workspace    Use the following procedure to import an existing OPL project into the OPL Projects  Navigator     Note  This procedure is only for OPL projects  For importing projects from previous releases  of OPL  see Migrating from previous versions of OPL     In addition to the procedures detailed below  you can double click on the files contained  in an OPL project folder to open that project in the OPL IDE       Ifthe project has already been added to the        Projects Navigator  double clicking  any model   mod   data    dat   or settings    ops  file will open that project in the  OPL IDE       If the project has 
49. lative to each  other is important  Since some data in a  dat file may depend on other data in a different   dat file  if the data files are in the wrong order it may cause an error at execution time     As an example of this  look at the following screenshot of a run configuration   Configuration2     AS       warehouse     warehouse location model  Mixed Integer Programming   5 09 Run Configurations  D Basic Configuration  default   Ej    Configuration2  scalableWarehouse mod         2         warehouse 8 dat  g warehouse 9 dat     Filter script   3 scalable data     Solution pool script       In Configuration2  the four data files are intended to be executed in numerical order   However  as you can see  they are sorted in ASCII order  This would cause them to be  executed in the wrong sequence     You can set the order of multiple data or settings files in a run configuration using the  following procedure     1  Right click on the configuration name and choose Properties from the context menu            ILOG OPL GETTING STARTED WI        XH   E   warehouse  A warehouse location model  Mixed Integer Programming  A  S       Run Configurations       n Basic Configuration  default   Configuration2          Run this    Set as Default           amp  warehouse Copy Ctrl C     amp    Filter script f  Paste Ctrl          Scalable data     Delete Delete    Rename    F2  09  variables      Breakpoints    Generate ODM Application       I3          project       E M solution pool sc  
50. le to change the values of OPL  options for language output  mathematical programming  or constraint programming     Changing an MP option value  Gives an example of how to use the IDE settings editor to change an option value     Creating and executing a different configuration  Describes how to create a second run configuration  then populate and execute it        What you are going to do    The OPL IDE has a Run button      which starts the solving engine to find a solution       the problem expressed in the active model  Solving    model in IBM   ILOG           consists  of executing the corresponding project  more precisely a run configuration of it  that is  a  subset of the model  data  and settings files that make up your project     Clicking the Run button     executes the last run configuration launched     If you want to execute any run configuration other than the last run configuration you  launched  it is probably better to use the Run option of the right click context menus in the  OPL Projects Navigator to launch the exact run configuration you want  See The Run options  section for more details     Note  To execute a run configuration in debugging mode with breakpoints  you would use    the Debug button     instead    the Run button  See Using IBM ILOG Script for  OPL in IDE Tutorials     To continue with the production planning tutorial  you are now going to       Populate the run configuration of your project  see Populating and executing the run  configura
51. lving engine  CPLEX for product   mod   on the solving process and on the objective function  in this example  a minimize statement            2 BB                 E Problems E scripting log LED Solutions x Conflicts    Relaxations   Engine log 22    statistics 55  Profiler     B                    Iteration Dual Objective In Variable Out Variable   1 90 000000 Inside  fettucine  ctDemand  fettuci slack   2 250 000000 Inside  capellini  ctDemand  capelli slack   3 286 666667 Outside  fettucine   ctInside  eggs   slack   4 350 000000 Inside   kluski  ctDemand  kluski  slack   5 363 333333 Outside  capellini  ctInside  flour   slack   6 370 000000 ctInside  eggs   slack Inside   capellini     T 372   000000 Outside   kluski   Inside  fettucine                 Engine Log for an MP model   CPLEX Dual Simplex  product  mod   CPLEX   users may recognize this information as what they see when executing CPLEX  Interactive     LOG OPL GETTING STARTED WI        4          mm    For comparison  the Engine Log      a constraint programming model looks like this        Problems E scripting log E Solutions F Conflicts    Relaxations      Engine log 22    statistics    Profiler x  amp B TH    ll222 2 22 2 2 2  2                                                                       Minimization problem   222 variables  22 202 constraints  1 phase    LogPeriod   50    Initial process time   0 023  0 003 extraction   0 023 propagation        Log search space   1 952 1  before   1 363 8  after 
52. ng with errors    For this very first start with OPL  you have copied and pasted an existing model for quicker  results  In your real business life  however  you will enter OPL statements from the keyboard   By default  the IDE checks for syntax and semantic errors automatically as you type and  error messages are displayed in the Problems tab at the bottom of the IDE     To observe the default behavior     1  In the second line of product  mod displayed in the Editing Area  remove the  s  from  the end of the word  Resources      OG OPL GETTING STARTED WITH THE  E    10   Permission is expressly granted to use this exampl        11   course of developing applications that use ILOG pr     13  14 string  Products    i5 string  Resource     istuple productData         float demand   18 float insideCost   19 float outsideCost     20 float consumption Resources    21   ZZproductData Product  Products      23 float Capacity Resources          24  25dvar float  Inside Products    Z6dvar float  Outside Products    AA  28               CPX PARAM    29 cplex preind   0   30 cplex simdisplay   2   31   32  33  34minimize  35  sum  p in Products     36  Product p  insideCost   Inside p     37 Product p  outsideCost   Outside p      Bgsubject to                   11     in Resources    30 ctInside                    A syntax error                The line containing the error is highlighted and for this line any other line affected by    the error  a red error symbol appears in the margin
53. ni   Fettucine          Resources   flour                  Decision variables  2       Inside  40 0 0   E  Outside  60 200 300     XY Constraints  2   ET ctDemand Inside p  Outside p   gt   Product p  demand  ET ctinside sum p in Products  Product p  consumption r  Inside p   lt   Capacity r        Problem Browser after execution  product  mod     Observe the Problem Browser window       The drop down list at the top displays the final solution  which is the only solution it  contains after the execution of the Named data run configuration  For run configurations  that generate more than one solution  the list displays the solution pools that were  computed by the engine  Selecting one of these solutions from the drop down list displays  data for that solution in the lower part of the Problem Browser  See Working with the  solution pool in IDE Tutorials       The categories in the Name column  Data  Decision Variables  Constraints  are populated  with model objects and expanded to show the corresponding values  The order within  each category is alphabetical       The Value column shows values for the model objects  The Property name and Property  value columns remain empty until you select a model element     OG OPL GETTING STARTED WITH THE  E                ILOG OPL GETTING STARTED     1      If you select an item in the main Problem Browser window  in this case  Capacity    properties for that object are shown in the lower part of the window  This area may be    hidden by 
54. not already been added to the        Projects Navigator   double clicking on the file op1project in      OPL dir gt  examples opl  lt example name gt     will launch the Import Wizard discussed in the following procedures     1  To open an existing project from the OPL IDE  choose File gt Import  or right click in  the OPL Projects Navigator and choose Import        Edit Navigate Run Window Help    E CER ESCOGER     EG         Copy Files to Project      Existing        6 x projects        Open File in Editor    B Migrate        5 x projects    2  Select Existing OPL 6 x projects   The first screen of the Import Wizard is displayed     OG OPL GETTING STARTED WITH THE  E    Import    Import Projects     amp  Some projects were hidden because they exist    the workspace directory       Select root directory    C  ILOG OPL lt version  examples opl    O Select archive            Browse                Projects        allexamples  C  ILOG OPL62 examples opl allexamples    Select All    allmodels  C  ILOG OPL62 examples opl models allmadels    basketballscheduling  C  ILOG OPL62 examples opl models BasketballScheduling     bidding  C  ILOG OPL62 examples opl models Bidding        blending  C  ILOG OPL62 examples opl blending   BlendingMultiPeriod  C  ILOG OPL62 examples oplimodels BlendingMultiPeriod     v  budget  C  ILOG OPL62 examples oplmodels Budget     v  CallTrafficOptimization  C  ILOG OPL62 examples opl models CallTrafficOptimization     v  carseq  C  ILOG OPL62 examples opl
55. oject  see the Adding existing files to a project section     Editing commands and shortcuts  The common commands you need to use while editing can be found on two menus       The main menu Edit menu            ILOG OPL GETTING STARTED     1         Navigate Search Run Window Help                   lt  Undo Typing            gt  Reda Typing            ef Cut              Copy                Paste             Delete Delete  Select All Ctrl 4  Find Replace              Find                     Find Previous               Incremental Find         Ctrl J  Incremental Find Previous Cerl Shifk J    Toggle comment             Word Completion           The right click context menu within the editor itself     OG OPL GETTING STARTED WITH THE  E       2    3   Al  lt J Undo Typing   Ctrez          Revert File  sz              7            See    8    its NN  Sint         10 stri Ctrl C  11116 Paste Ctrl     1209099 shift Right  i3int C    14int   Shift Left    i5dvar Run 45  16          Debug As          17           181101 Compare With  19 s Replace With  20  21 s Preferences            ILOG OPL GETTING STARTED WITH THE 45  OPL IDE       Local History and its related features    OPL 6 x provides a limited form of version control called Local History that allows you to  track and compare different versions of your files as you edit them     For example  if you edit the same model file several times  all versions of the file are still  available to you  You can use the Compare With and 
56. omize the solution display  see OPL language options in the IDE Reference       To examine the structure of the model as solved by the engine  use the Problem Browser   see Understanding the Problem Browser and Doing more with the Problem Browser in  the IDE Reference       Tuning parameters  When working on a MIP project  possibly by trying various run  configurations  you may want to test the performance of your model before deployment   The Tune model button in the IDE standard toolbar offers a convenient way to do so   See Using the performance tuning tool in IDE Tutorials     Note  For demonstration purposes  the illustrations used in this section are taken from various  code samples from the product distribution  However  you can continue with the project  you have just created     OG OPL GETTING STARTED WITH THE  E       The Output tabs    M    After you execute a run configuration  the solving engine searches for the optimal solution   and when execution is complete  the IDE displays several output tabs in the main window     These tabs are     Problems     Scripting log  Solutions  Conflicts  Relaxations  Engine Log    Statistics      9 9 9 9 9    Profiler       Problems    The Problems tab displays semantic and syntax errors as you type when you write a model  manually  and internal errors  such as scripting or algorithm errors  when you solve a model     I Problems 22 g Scripting log  amp  Solutions Z Conflicts   Relaxations    Engine log 2 Statistics   Profiler ES
57. our resources     The workspace        be located anywhere on the file system  but its default location is        Documents and Settings N  user  MApplication Data ILOG OPL Studio IDE 6 x         Views    The various panes or windows within the OPL IDE are referred to as Views     Views can be editors or navigators or provide alternative ways to visualize and work with  your projects  For example  the OPL Projects Navigator view displays the resources in your  OPL projects  and allows you to open them in editor views     Views may also have their own menus and some views have their own toolbars     OG OPL GETTING STARTED WITH THE  E       The Problem Browser    Describes the OPL Problem Browser        TE    Solution with objective 1 850       Name Value  El      Data  7   Ef Capacity  323232323232323232323232323232323     10 Fixed 30  0 NbStores 100    NbWarehouses 50     stores 1 100  Ef SupplyCost   12 22 32 42 52 62 72 82 92 2 12 22 32 42 52 62 72829221      lt   Warehouses 1  50        Decision variables  2   ET open  D10111111111111011111111111100101      E  supply   000000000000000000000000000000000         Decision expressions  2      1   TotalFixedCost 1200      0 TotalSupplyCost 650    Y Constraints  2   ET ctOpen sum s in 1  100  Supply  s    w    lt   Open  w   Capacity  w    ET ctStoreHasOne Warehouse sum w in 1  50  Supply  s    w      1       Property       Some of the features of the Problem Browser are described briefly below         Hide the properties to con
58. ration  If you do so  their  order is meaningful  See Ordering files within a run configuration in the Introduction to the  OPL IDE  You can either add existing data files or create them as you add them  In this  tutorial  you are going to add two existing data files to your project     Note  1  Until you add it to a project  a data file does not appear in the project tree     2  All files pertaining to the same project must be stored within the same parent  project directory     This part of the tutorial assumes you have created a project and is meaningful only if the  model is not empty     To add a data file to the project     1  Select File gt Copy Files to Project to display the Import window            ILOG OPL GETTING STARTED WI    Import    File system    Please specify folder          From directory    C  ILOG OPL62 examples opl production           8   amp  production         eplproject          project      product dat      QS  product mod  O    production dat  O                                productn dat                   Filter Types    Deselect All    Into folder           Options  Fi Overwrite existing resources without warning  O Create complete folder structure        Create selected folders only          2  Navigate to the directory    lt OPL_dir gt  examples opl production    Check the production folder box on the left  Uncheck all the boxes on the right except  for product dat and productn dat     3  Browse to select a folder to import into and click OK  
59. reate an empty project  enter a model  add data   add a settings file  create run configurations and execute them  More tutorials elaborate on  IDE features in IDE Tutorials        Copyright IBM Corp  1987  2009 5                L    GETTING    STARTED    WITH                            ILOG OPL GETTING STARTED WI    Introduction to the OPL IDE    Provides an overview of important concepts and features of the OPL IDE that you should be  familiar with before starting to work with it     In this section    Launching the OPL IDE  How to launch the OPL IDE  and descriptions of the Welcome window and the OPL main  window     Opening distributed examples in the OPL IDE  Instructions for browsing and opening the example projects and models distributed with             Opening projects    the OPL Projects Navigator  How to open OPL projects and work with them using the OPL Projects Navigator     Important concepts and terms  Describes some of the terms and concepts that are important to understand about the OPL  IDE     The Problem Browser  Describes the features of the OPL Problem Browser     Resizing  moving  and hiding IDE views  Shows how to customize the appearance of the OPL IDE     Working with files in OPL  Shows how to open  edit  and work with files in the OPL IDE     _           mm    Executing OPL projects  Describes the different ways of running and browsing OPL projects     OG OPL GETTING STARTED WITH  E                            Launching the OPL IDE    How to launch 
60. s for details                           EN Problems   EJ Scriptina log  Eo Solutions    Relaxations    Engine log 8 Statistics    5  profiler B  Line In conflict Element  119 Yes ctRequiredAssignmentConstraints   lt  Anne   gt     lt  Emergency   Monday  8 12 gt    119 Yes ctRequiredAssignmentConstraints   Anne         lt  Consultation   Monday  8 12 gt         Conflicts tab  nurses project     OG OPL GETTING STARTED WITH THE  E                The Conflicts tab is empty after execution of product   mod because that project is not  designed as infeasible     i Note  There is no support for conflicts in models solved by the CP Optimizer engine        Relaxations    When a CPLEX model proves infeasible  the Relaxations tab shows the places that  constraints can be relaxed to remove the incompatibilities that made the model infeasible   See Relaxing infeasible models in IDE Tutorials for details                               E Problems   GJ Scripting log    Solutions 2 Conflicts   Relaxations 23 23 Engine log   Statistics  gt  Profiler    Line Original Relaxed Element  119  1 1   0 1  ctRequiredAssignmentConstraints   lt  Anne  gt    lt  Emergency    Monday  8 12 gt      Relaxations tab  nurses project     The Relaxations tab is empty after execution of product          because that project is not  designed as infeasible     i Note  There is no support for relaxations in models solved by the CP Optimizer engine     Engine Log    The Engine Log tab displays information from the so
61. serve space     a    Sort the items of each displayed element       Filter the displayed element types            ILOG OPL GETTING STARTED W 1         Filters                            2 Decision variables          Decision expressions  2323232323232323        Constraints       oo Past pracessing data      See the solution status in the drop down list at the top of the view     IW   LILI                  EM     n NDA zen Li  Solution with objective 1 850       When solving MIP problems several solutions may be displayed in this drop down list   Choosing one of them displays data for that solution in the lower part of the Problem  Browser  A definition of MIP can be found in the Glossary  mixed integer programming   MIP       Tooltips show data that is too wide to display      Double clicking on an item opens an editor for that item       For Decision Variables  some information formerly shown in the properties view has been  moved to the editor view itself  so one can safely hide the properties view     OG OPL GETTING STARTED WITH THE  E       Resizing  moving  and hiding IDE views    M    LOG OPL GETTING STARTED W 1    All views are resizable  movable  and detachable  Movable means that you can drag a view  from one location and drop it in another  even within another view  For example  you could  drag the Outline view into the Output Area  and it would become another tab there     Detachable means that you can drag a view outside the OPL IDE frame and it becomes its  own s
62. ss the modified  settings directly from this window     OPL GETTING STARTED W 1    Each option available in the settings file is documented individually in OPL language options   Constraint programming options  and Mathematical programming options  in the IDE  Reference    You are now ready to use the new settings file to set a mathematical programming option  with which you will then execute the model     OG OPL GETTING STARTED WITH THE  E       Changing an MP option value    You are now going to modify the default value of one of the MP options   To change an option value in the IDE   1  Double click the new  ops file in the OPL Projects Navigator  if it is not already open   The panel for mathematical programming options is displayed in the Editing Area     2  In the Mathematical Programming  General category  choose Algorithm for  continuous problems and select Barrier from the dropdown list     Notice the red exclamation mark indicating that a default value has been changed                                                                 iTA newsettings ops 23 WA MyFirstProject ops    product dat  Type parameter description fier Advanced start switch Standard advanced start       8   gt  Mathematical programming      General Computation time reporting Automatic    E RI  Conflicts 9 Algorithm For continuous problems   Barrier       Emphasis  Feasopt Algorithm For co   tic optimization   Automatic v E RI  Preprocessing         a  Read Global default thread count 0    A  1  
63. t report     OG OPL GETTING STARTED WITH THE  E                  Problems   El Scripting log 8 Solutions    Conflicts   Relaxations G Engine log 22 a Statistics 5  Profiler x      o    Itn  0     2  3  4  5  6  3  8  9   Barrier    4  4  3  3  3   3  3  3  3  3    Primal Obj   1669927e 002   4676963   002   9541358   002   8247130   002  7215063   002   7202086   002   7200183   002   7200017   002   7200002   002   7200000   002  time             Dual Obj Prim Inf Upper Inf Dual Inf    0 0000000   000 7 13e 002 0 00e 000 1 71   001  4 1312369   002 6 39   014 0 00   000 4 91   000  3 7148228   002 6 75   014 0 00   000 2 69   001  3 6755025   002 0 00   000 0 00   000 1 61   003  3 7175132   002 6 75   014 0 00   000 1 51   004   3 7198380   002 2 22e 012 0 00e 000 8 96   016 3  3 7199846   002 3 91e 014 0 00   000 4 09   016  3 7199986   002 7 11e 014 0 00   000 2 18e 016  3 7199999   002 7 11e 015 0 00   000 5 19e 016  3 7200000e 002 9 24   014 0 00   000 3 90e 016   02                Engine        for Barrier configuration      The Statistics tab shows a different algorithm  Barrier  and number of iterations     E  Problems   E scripting log  s  Solutions A Conflicts   22 Relaxations 23 Engine log 128 statistics 2 5 Profiler          Constraints   Variables   Non zero coefficients     MIP    Statistic    Objective  Incumbent  Iterations    solution  optimal  with objective 372          Value       Best node    Best integer Integer solution    5 10    7  12    372  372    
64. tandalone window  When you do this  to put the view back into the frame you need to  right click in the tab area of the detached view and uncheck the Detached item in the  context menu     ri      0             OPL Projects 22      Debug Ej 9             mulprod mod 25  E 120 mulprod  A multi period production planning model  Linear Programming        Run Configurations 2   Copyright  C  1990     mulprod change main mod 3     11 Rights Reserved 22    mulprod main mod 4   6 ui Detached    E mulprod mod 5   Permission is expre  Sg int Move     mulprod dat 6      i     lt  gt  Size    8 Sob Ext close    m   Variables     i aly  a apa  Ii Problem browser 22  gt  09 Variables        Breakpoints   X       S string  Products            E Consumption       10 string  Resources    m            Demand                           Value 11106 NbPeriods          5  5 L4 InsideCost  12range Periods   1  NbP4   M  Ed InvCost   float Prodt    13  I tory   float Products  14float Consumption Reso             E roducts    eriods   in   5    4  Property Value SERES           Renonre E OutsideCost   float Products    lt  i    Products    string        Resources    string    amp  Decision variables  3      Inside   dvar float  Products  E  Inv   dvar float  Produc     Outside   dvar float  Products         Constraints  3         pin Products         cHInvantave  ill                               t Problems   El Scripting log   EJ Solutions 22    Conflicts   Relaxations   2 2 Engine log   8 statisti
65. teps walk you through each of the general procedures above  using the  warehouse example from the OPL distribution     In the Select root directory field  enter the pathname of the directory that contains  the project s  you want to import  You can type in the pathname or use the Browse  button to search for it     Alternatively  you can use the Select archive file field and enter the pathname of a  JAR  ZIP  TAR or other compressed file that contains your project s      After you have selected a root directory  or archive file   the OPL projects under that  directory that do not currently exist in your workspace are listed in the Projects view     Check the box of each of the projects you want to import   In the example used in this  procedure  there is only one  warehouse      Import Projects  Select a directory to search for existing Eclipse projects         9  Select root directory    C  ILOG OPL62 examples opl warehouse       Select archive         B   Projects    warehouse  C  ILOG OPL62 examples opl warehouse               All    Copy projects into workspace       OPL GETTING STARTED WITH THE                5  Leave the Copy projects into workspace box unchecked if you want to work with  the project    in place    in its current location  or check the box to copy it to your  workspace  recommended   and click Finish to import the project s  into your OPL    Projects Navigator     ILOG OPL GETTING STARTED              Managing projects    the        Projects Navigator  
66. the OPL IDE  and descriptions of the Welcome window and the OPL main  window     In this section    Starting the IDE  Starting OPL IDE from Windows     The Welcome window  Describes the OPL Welcome screen and how to close it and begin working with OPL     The Main window  Presents the Main window of the OPL IDE  and a brief description of its primary controls  and elements     ILOG OPL GETTING STARTED WI                    mm       Starting the IDE    You can start the IDE from the Windows Start menu  from Windows Explorer  or from the  command line     To launch the IDE from the Start Menu   1  Click the Windows Start menu   2  Select Programs  gt  IBM  gt  IBM ILOG OPL  version_number   gt  OPL IDE    To launch the IDE from Windows Explorer       Double click the IDE executable oplide exe in the  lt OPL_dir gt  oplide directory  where   lt OPL_dir gt  is your installation directory     To launch the IDE from the command line   1  Open a command prompt window     2  Enter     oplide    The Welcome window appears  as shown in the next section     OG OPL GETTING STARTED WITH THE  E       The Welcome window    B    M    ILOG OPL GETTING STARTED W 1    When you first launch the         IDE  a Welcome window displays      2 Welcome 2     Bo     Welcome     the OPL IDE       The buttons in the Welcome window provide access to user guides  sample manuals  release  notes  migration information and user forums     To access the information on the Welcome window   Move the mouse over 
67. the right and displays it as a table in the Profiler tab of the Output  Area  You can use this information to improve the model so that it executes faster and  consumes less memory  The Profiler table also displays details of model extraction and  engine search during the solving phase  See Profiling the execution of a model in IDE  Tutorials     OG OPL GETTING STARTED WITH THE  E          X         3  Ny  0           Description      ROOT     READ DEFINITION scalablewarehouse OB 0 0000  zi LOAD_MODEL scalableWarehouse 30387Dt 0 1094 1 672M 0 0000  8 PRE  PROCESSING 0 0000 OB 0 0000  E ASSERT 0 0000      0 0000  INIT NbStores 0 0000 OB 0 0000  INIT NbWarehouses 0 0000   B 0 0000  E INIT TotalFixedCost 0 0000 OB 0 0000  INIT Warehouses 0 0000 OB 0 0000  INIT Fixed 0 0000 OB 0 0000                    0 0000 OB 0 0000  E INIT TotalSupplyCost 0 1094 640K 0 0000           Profiler table for an MP model  scalable configuration of warehouse project                                    2 Problems El scripting log  a Solutions     Conflicts    Relaxations 22 Engine log      statistics    Profiler 23    ER    Description Time Time   Peak Memory Peak Memory   Self Time      ROOT 1 4531 100  8 887    100  0 0469  READ DEFINITION steelmill 0 0000 0    B 0  0 0000 3  5 LOAD MODEL steelmill 0737ECBO 0 0312 2  0B 0  0 0000 1  5 LOAD DATA C  Documents and Setting 0 0000 0  0B 0  0 0000  INIT nbOrders 0 0000 0  0B 0  0 0000 E  INIT nbSlabs 0 0000 0  OB 0  0 0000  INIT nbColors 0 0000 0  0B 0  0 
68. tion      Create more configurations to execute your model with different data and or settings   see Creating and executing a different configuration      Learn more about model solving  see also What happens when you execute a run  configuration in the IDE Reference     OG OPL GETTING STARTED WITH THE  E       Populating and executing the run configuration    When you are finished creating an OPL project  the OPL Projects Navigator should typically  look as shown in the figure   You have defined the project as a set of model  data  and settings  but the run configuration contains only the  mod and  ops files  You need to add the data  you want to try with your model  Populating a run configuration consists therefore in adding  data and or settings files to the run configuration subtree        run configuration must contain at least a model and can contain only one model   To populate a run configuration     1  In the OPL Projects Navigator  drag and drop the product  dat file to the  Configuration1 run configuration     Note  If you inadvertently drop the wrong file or drop a file to the wrong place   you can at any time right click it and choose Delete  then confirm  This  does not remove the file from the disk     2  The OPL Projects Navigator now displays the data file name in the run configuration      F Debug iy OFL Projects x     T 7T 7m     zi    MyFirstProject  OPL test project   5 09        Configurations     Configurations  default         My FirstProject  mad  iE 
69. une project       Ctrl C  Ctrl V  Delete  F2           Refresh       Team    Compare With  Restore From Local History             Properties    OPL GETTING    STARTED    WITH    1    H       E       The Status Bar    As you solve  this area displays the execution status of projects being solved and the elapsed  time of the solve              Scalable data   58    76   00 00 01 39       Status Bar  partial view during    solve     The Status Bar also shows the status of documents being edited in the Editing Area  and  the current line and column number of the cursor     Writable Insert 23 16 00 00 14 99    Status Bar  partial view while editing     The middle part of the Status Bar indicates that the file currently being edited is Writable   as opposed to Read Only  and that the editor is in Insert mode  as opposed to Overwrite  mode   The numbers indicate the line number and column number of the current cursor  location in the file     The box at the right of the Status Bar displays an animated graphic while a project is running   and a message is displayed beside the graphic indicating progress     Run progress messages in the Status Bar  Whether the model is running in standard run mode or in debug  browse  or background  mode  you can see messages about the progress of the run in the OPL IDE Status Bar       When the solve begins  a Launching   run configuration name gt  message appears at  the right of the Status Bar       As the solve progresses  the message changes to  
70. using the Hide Properties   button                  S   Problem browser    09  Variables        Breakpoints            Solution with objective 372       Name    B do Data  4   B   Capacity  20 40       Product  100 0 6 0 8  0 5 0 2  gt   lt 200 0 8 0 9  0 4 0 4  gt 2      lt 300 0 3 0 4  0 3 0 6  gt     F Products   kluski   capellini   Fettucine    X Resources   Flour   eggs        Decision variables  2   E  Inside  40 0 0     E  Outside  60 200 300   a EY Constraints  2   ET ctbemand Inside p  Outside p   gt   Product p   demand       ctinside sum p in Products  Product p  consumption r  Inside p   lt   Capacity r     Property Value    External True  Dimensions 1  Total size 2      If you slide the cursor over    data object  in this case  Products   a Show data view  button appears  shown below with its tooltip visible                           Problem browser 22 09  Variables        Breakpoints   X   13       Solution with objective 372 v  Name Value  Gl 66 Data  4   EP Capacity  20 40   E  Product   lt 100 0 6 0 8  0 5 0 2    2000 80 9 0 40 4   C        3000 3 0 4  0 3 0 61 gt 1     F Products  kluski   capellini   Fettucine    1f Resources Show data view            Decision variables  2     E  Inside  40 0 0   E  Outside  60 200 300     XY Constraints  2   ET ctDemand Inside p  Outside p   gt   Product p  demand  ET ctinside sum p in Products  Product p  consumption r  Inside p   lt   Capacity r   Property Value          Clicking this button displays the data view in th
71. utorial in which you launch the IDE  create an empty project  enter a model  add data   add a settings file  create run configurations and execute them  More tutorials elaborate on  IDE features in IDE Tutorials     In this section    Prerequisites   before you start  Before you start the OPL IDE     Creating a project  Walks you through creating a project file  adding model and data  and setting mathematical  programming options     Executing a project  Walks you through populating and executing the run configuration  creating a different  configuration  and understanding project execution     Examining a solution to the model  Explains how to read the solutions in the output tabs and read details of the executed model  in the Problem Browser        Prerequisites   before you start    At this stage  it is assumed that you have already successfully installed IBM amp  ILOG            on your platform     At this point you are ready to launch the IBM ILOG OPL IDE  or the IDE for short  as  explained in the Launching the OPL IDE section of Introduction to the OPL IDE     Once the IDE is open  you can read       Tour of the         Graphical User Interface in the IDE Reference to discover the graphical  user interface       Creating a project if you feel familiar enough with the interface and want to start working  on a project immediately     Other useful documents to read are     A quick start to         for an introduction to how         handles optimization problems     Intro
72. w     1   30         11  w in Warehouses   31 ctUseOpenWarehouses   2 Supply s  v   lt   Open w    33  forall    w in Warehouses    34 ctMaxUseOflarehouse   35 sum  s in Stores    36 Supply s  w   lt   Capacit  37   38  39 int  Storesof w in Warehouses   40execute DISPLAY RESULTS   41 writeln  Open    Open    42  writeln  Storesof   Storesof   23    44    a  E    s iy          OPL GETTING    22  sum  w in Warehouses   s in z 23       STARTED W 1    SupplyCost s  v    Supp    24  26subject tof   27  forall  s in Stores     28 ctEachStoreHasOneWareho  29 sumi w in Warehouses  30 Supplv s  v     1   31  forall    w in Warehouses   32 ctUseOpenWarehouses    33 Supply s  v   lt   Open   34  forall    w in Warehouses    35 ctMaxUseOfWarehouse    36 sum  s in Stores     37 Supply s  w   lt           38    39   40 int  Storesof w in Warehou  4iexecute DISPLAY RESULTS    42 writeln  Open    Open    writeln  Storesof   Store                 in                 mm        Replace With  features      Replace With Local History    Replace With Previous Version  Replace With Local History    To replace a file with a selected version of itself from Local History     1  In the OPL Projects Navigator  highlight the file you want to revert to one of its Local  History versions  right click and choose Replace With gt Local History      c  OPL Pro        gt  Debug ELI      g 7     10 warehouse     warehouse locati   H E Run Configurations  45 scalableWarehouse mod    if solpoolscript mod          
73. y to the current model only   not to the submodels loaded and solved at execution time     Because you left the Create settings option checked in Step 2 of Creating an empty project   a default settings file already exists for your project and this is the one you used in Populating  and executing the run configuration     To practice with a different run configuration without losing your default settings  you are  now going to add a second settings file to your project and use it to set a different value to  one mathematical programming option     This stage of the tutorial assumes you have at least a model in your project and want to be  able to modify OPL  CPLEX     or CP Optimizer parameters     To add a settings file to an existing project     1  Select the project name in the OPL Projects Navigator  then right click and select  New gt Settings     2  In the dialog box  select the parent project and provide a name for the new settings  file  Then click Finish  The ops extension will be added automatically     OG OPL GETTING STARTED WITH THE  E                3     ILOG    Hew Settings File    Settings File    Create    new Settings File       Enter or select the parent Folder     MyFirstProject    120 MyFirstProject    File name    newsettings       Notice the changes in IDE window     The newsettings ops file is added to the project in the         Projects Navigator     The settings editor appears       The Outline window displays the settings outline  You can later acce
74. yCost       13   20  24  11  25  301    14   28  27  82  83  74 1     Click any of the views in the popup list to view them     Line numbers in the Editor  By default  line numbers appear in the text editor  However  you can hide them in one of  the following ways       From the menu bar select Window  Preferences  then General gt Editors gt Text Editors   Uncheck the box for Show line numbers       Inside the Editing Area  right click and select Preferences  then General gt Editors gt Text  Editors  Uncheck the box for Show line numbers       Inside the Editing Area  right click in the left margin to display the popup that allows you  to uncheck the option Show line numbers     OG OPL GETTING STARTED WITH THE  E    int Fixed           string  Warehouses      int NbStores          range Stores   D  NbStores 1    int Capacity Warehouses           int SupplyCost  Stores   Warehouses     dvar boolean Open Warehouses     dvar boolean Supply Stores  Warehouses      minimize  sum  w in Warehouses    Fixed   Open w               in Stores    pplv s  w       akpoint       Add Bookmark     Add Task          Show Quick Diff Ctrl Shift Q    Show Line Numbers    Preferences             Opening external files in the Editor  To open files that are not currently in any open project in OPL Projects Navigator  use the  File gt Open File in Editor menu command     This does not add the files to any project  but allows you to view or edit them in the Editing  Area  To add external files to a pr
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
    Magic Sound Pro Manual do Utilizador de 33008  NTP ISO 4422  Kicker 2013 CS Component Speakers Owner's Manual  USER`S MANUAL - Advanced Control Systems  Quantum Digital USB Flash Disk Module  Istruzioni per l`uso Originale V-DTN  Nexus-SL User Manual en.cdr    Copyright © All rights reserved. 
   Failed to retrieve file