Topic
  • 4 replies
  • Latest Post - ‏2013-09-30T06:19:49Z by SatishKumarA
SatishKumarA
SatishKumarA
22 Posts

Pinned topic Priority based capacity allocation using CP

‏2013-09-25T05:40:34Z |

Hi All,

I am working on a production planning problem where capacity allocation is driven by customer priority. Say, I have two customers C1 & C2 and two Plants P1 & P2. Demand for C1 should be satisfied before C2 (C1 demand is of higher priority than C2). So, capacity of P1 & P2 should be first allocated to produce C1 demand and leftover capacity should be allocated to C2 demand.

How to model this type of model in Constraint Programming? I am new to CP (I work on CPLEX mainly, but learning CP) and need help to learn it in right direction. Please suggest if any of the CP functions are helpful for this type of problems

 

Thanks,

Satish

  • AlexFleischer
    AlexFleischer
    108 Posts
    ACCEPTED ANSWER

    Re: Priority based capacity allocation using CP

    ‏2013-09-26T13:23:39Z  

    Hi Alex,

     

    Thanks for your reply.

    How can I declare multi objective in OPL? I don't see StaticLex keyword in OPL (though I can find it in APIs). I am using V12.3

    Can you please provide me some example in OPL?

     

    Thanks,

    Satish

    Hi,

     

    you can find an example in

    CPLEX_Studio1251\opl\examples\opl\truckfleet

     

    regards

  • AlexFleischer
    AlexFleischer
    108 Posts

    Re: Priority based capacity allocation using CP

    ‏2013-09-26T12:30:23Z  

    Hi,

    have you had a look at multi-criteria objective ?

    If you declare a multi-criteria objective in a model, the important keyword to use is staticLex.

    Regards

     

  • SatishKumarA
    SatishKumarA
    22 Posts

    Re: Priority based capacity allocation using CP

    ‏2013-09-26T13:14:59Z  

    Hi,

    have you had a look at multi-criteria objective ?

    If you declare a multi-criteria objective in a model, the important keyword to use is staticLex.

    Regards

     

    Hi Alex,

     

    Thanks for your reply.

    How can I declare multi objective in OPL? I don't see StaticLex keyword in OPL (though I can find it in APIs). I am using V12.3

    Can you please provide me some example in OPL?

     

    Thanks,

    Satish

    Updated on 2013-09-26T13:24:04Z at 2013-09-26T13:24:04Z by SatishKumarA
  • AlexFleischer
    AlexFleischer
    108 Posts

    Re: Priority based capacity allocation using CP

    ‏2013-09-26T13:23:39Z  

    Hi Alex,

     

    Thanks for your reply.

    How can I declare multi objective in OPL? I don't see StaticLex keyword in OPL (though I can find it in APIs). I am using V12.3

    Can you please provide me some example in OPL?

     

    Thanks,

    Satish

    Hi,

     

    you can find an example in

    CPLEX_Studio1251\opl\examples\opl\truckfleet

     

    regards

  • SatishKumarA
    SatishKumarA
    22 Posts

    Re: Priority based capacity allocation using CP

    ‏2013-09-30T06:19:49Z  

    Hi,

     

    you can find an example in

    CPLEX_Studio1251\opl\examples\opl\truckfleet

     

    regards

    Thank you Alex

     

    I tried with the multi criteria objective function and its working.

     

    Thank you,

    Satish