Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to express it using CPLEX?

    Posted 11/19/13 09:17 PM

    Originally posted by: heidizh


     

    I have a problem to express my objective using CPLEX, and I am not sure that if it could be expressed by CPLEX or  CP. Help me please!

    I want to minimize the objective, Ui or Uj is the only decision variable. Others are all input numbers.

    The two attachments have the same content with different extensive names.

     Please give me some help, I'll be very appreciated for that. 


    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: How to express it using CPLEX?

    Posted 11/20/13 02:57 AM

    Hi,

    let me give you a small example:

    using CP;

    execute
    {
     cp.param.timelimit=20;
    }  


    int n=5;
    float p=0.5;
    int d[i in 0..n][j in 0..n]=i+j;

    dvar int u[1..n] in 1..10;

    minimize
      sum(j in 1..n) p*d[0][j]*pow(1-p,u[j]-1)+
      sum(ordered i,j in 1..n) p*p*d[i][j]*pow(1-p,abs(u[i]-u[j])-1);
     
    subject to
    {
    }

     

    Alex Fleischer


    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: How to express it using CPLEX?

    Posted 11/20/13 03:11 AM

    Originally posted by: heidizh


    Hi, Alex, Thank you very much. You have explained it very clearly to me. It's very useful. Thank you!

     

    Best regards,

    Heidi


    #DecisionOptimization
    #MathematicalProgramming-General