Decision Optimization

 View Only
  • 1.  Gantt chart views in Cplex Mathematical programing

    Posted Fri December 16, 2011 08:22 PM

    Originally posted by: SystemAdmin


    Hello everyone,
    Does anyone know if there is any way to get Gantt chart views for a scheduling problem modeled using Cplex Mathematical programing? thanks!
    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Sun December 25, 2011 07:33 PM

    Originally posted by: SystemAdmin


    You may want to look at the following documentation link:

    http://publib.boulder.ibm.com/infocenter/cosinfoc/v12r3/index.jsp?topic=%2Filog.odms.ide.help%2FContent%2FOptimization%2FDocumentation%2FOptimization_Studio%2F_pubskel%2Fps_opl_IDE382.html

    It talks about how you will need to structure the solution into a tuple with certain fields to enable a gantt view of the data.

    Hope this helps.
    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Tue December 27, 2011 12:21 PM

    Originally posted by: SystemAdmin


    Hello Abhishek, I am not familiar with the use of the tuple function. So how can we incorporated in the model given in http://www.ibm.com/developerworks/forums/thread.jspa?threadID=392750 ? I am talking specifically about the final that I have posted on Dec 12, 2011 11:29:18 PM
    #DecisionOptimization
    #MathematicalProgramming-General


  • 4.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Tue December 27, 2011 03:10 PM

    Originally posted by: SystemAdmin


    You could do so by adding the following lines of code after your 'Subject to{..}' block:
    
    tuple displaySched 
    { 
    
    int start; 
    
    int end; 
    
    int size; string label; 
    
    int present; 
    } 
    {displaySched
    } solutionSet=
    {
    }; displaySched ganttCompletion[Jobs][Mchs];   execute 
    { 
    
    for(var j in Jobs)
    { 
    
    for(var m in Mchs)
    { var name=
    "J"+j+
    ",M"+m; var temp=solutionSet.add(Completion[j][m]-Processing[j][m],Completion[j][m],Processing[j][m],name,1); ganttCompletion[j][m]=temp; 
    } 
    } ganttCompletion; 
    }
    


    Run the particular configuration, and click the 'Show data view' button for the 'ganttCompletion' variable in the 'Problem browser' window to the left. Now, click the 'Gantt Chart' tab in the opened window at the bottom (above the various OPL views) to see the gantt representation of the 'Completion' variable.
    #DecisionOptimization
    #MathematicalProgramming-General


  • 5.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Tue December 27, 2011 07:45 PM

    Originally posted by: SystemAdmin


    You cannot imagine how much help you have provided. thanks!
    #DecisionOptimization
    #MathematicalProgramming-General


  • 6.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Tue December 27, 2011 08:39 PM

    Originally posted by: SystemAdmin


    You are most welcome. Happy holidays!
    #DecisionOptimization
    #MathematicalProgramming-General


  • 7.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Wed January 11, 2012 01:37 PM

    Originally posted by: JoanneOh


    I was wondering if I need to download to see Gantt chart views. I can see values after clicking "show data view." But, there is no "Gantt chart" tab. Thanks!
    #DecisionOptimization
    #MathematicalProgramming-General


  • 8.  Re: Gantt chart views in Cplex Mathematical programing

    Posted Thu January 12, 2012 03:53 PM

    Originally posted by: SystemAdmin


    You need not install anything separately to be able to see the Gantt charts for interval and sequence type variables; your installation of CPLEX Optimization Studio should already have everything you need to view these. Please go through this thread from the beginning to be able to see these charts. As mentioned earlier they are available only for certain types of structures in OPL and if you wanted to see it for your variable, you will need to formulate your solution in a certain tuple style mentioned in the documentation link.
    #DecisionOptimization
    #MathematicalProgramming-General