Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Using CP vs Using CPLEX

    Posted 09/13/15 03:54 PM

    Originally posted by: MDG


    I have ILOG installed on 2 machines; for a simple CPLEX code, one of them try to run it using CP ( so it launches the model, but does not go further), while the other one works using CPLEX and solves the model. Is there any setting that push the ILOG to use CPLEX!

    I added "using CPLEX" in the beginning of the .mod file, but it still try to solve it using cp!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Using CP vs Using CPLEX

    Posted 09/13/15 05:22 PM

    Hi,

    this sounds strange. Can you attach your model ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Using CP vs Using CPLEX

    Posted 09/13/15 05:50 PM

    Originally posted by: MDG


    My main model is complex! so I made a simple model (as follows) to figure out the problem! But, the problem still exists and I couldn't find it :( Yes, it is so strange to me. What can be the potential problem on my second machine? Is there any setting that allow me to manually force the ILOG to use CPLEX? (my second machine is a Virtual Machine that I remotely have access to)

     

    .mod file :

    using CPLEX;

    {int}surgery=asSet(1..7);


    int N[surgery]=...;

     

    dvar int+ R[surgery];


    maximize
       sum(k in surgery)
         N[k]*R[k];
              

    subject to{
     
    Shortagetest:
         forall(k in surgery)
             R[k]<=800;
            
           } 

     

    .dat file

     

    N=[30, 20, 10, 10, 12, 11, 10];


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Using CP vs Using CPLEX

    Posted 09/14/15 06:43 AM

    Hi,

    what makes you think CP is used ?

    Can you try to replace

    dvar int+ R[surgery];

    by

    dvar float+ R[surgery];

    ?

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Using CP vs Using CPLEX

    Posted 09/14/15 11:03 AM

    Originally posted by: MDG


    Hi Alex, 

    Thank you very much. 

    No, it does not fix the problem, In the Outline Box it shows that "Using CP optimizer" so I think this is the problem. It is really weird !! When I run the model, it starts launching the data, read the excel files (as input data) but it cannot go thorough solving it! (As I aforementioned the model could perfectly run on the other machine, but I need to run it on this machine since it is much faster!,  So is it possible that the installation was not done appropriately? or any advanced setting that I have to do?!)

    Cheers, 


    #DecisionOptimization


  • 6.  Re: Using CP vs Using CPLEX

    Posted 09/14/15 11:16 AM

    Hi,

    dvar float+

    would raise an error in CPO so if you are able to run this model, this means you call CPLEX

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Using CP vs Using CPLEX

    Posted 09/14/15 09:45 PM

    Originally posted by: MDG


    Thanks, so I should find the underlying problem. maybe I should reinstall it!!

     

    Cheers, 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer