Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

CPLEX OPL Worker Allocation in a House Building Problem

  • 1.  CPLEX OPL Worker Allocation in a House Building Problem

    Posted Tue August 28, 2018 05:21 PM

    Originally posted by: Haktan


    As part of my thesis project, I was given a house building problem. There are 17 tasks in total and some tasks need to be completed before others. There are also 5 different worker types (builder, architect etc) and each task requires different types and amount of workers. I am complete beginner in CPLEX OPL and using the tutorials provided, I was able to minimise the time taken to complete the 17 tasks. I used dvar intervals and endBeforeStart() for this purpose. However, I have spent countless hours trying to add workers to my problem with no success. The examples only include workers with names; but in my problem I have different types of workers which the tasks require, and each type has a different number of workers available. How can I add workers to my problem and allocate them to each task in an optimal way? I'm really stuck any help would be amazing! (I've attached my current code to the txt file)
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX OPL Worker Allocation in a House Building Problem

    Posted Wed August 29, 2018 01:40 AM

    Please ask this question on one of the forums dedicated to constraint programming here.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX OPL Worker Allocation in a House Building Problem

    Posted Wed August 29, 2018 03:45 AM

    Hi,

    you could have a look at the example at

    CPLEX_Studio128\opl\examples\opl\sched_cumul

    And instead of one cumul

    cumulFunction workersUsage =

    you could use several (One per type of workers)

    regards

    https://www.linkedin.com/pulse/optimizasyon-nedir-ve-daha-az%C4%B1yla-fazla-%C5%9Fey-yapman%C4%B1za-alex-fleischer/


    #CPLEXOptimizers
    #DecisionOptimization