Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Tournament matrices

    Posted 12/04/14 02:23 PM

    Originally posted by: 020W_Denni_Nußbaum


    Hello

    I has an CPL Code which gernates an symmetric matrices for an tournament. My Problem is, that I would not like to  use these CPL, but

    I need these Code in math algorithm. That means I do need not the Programming languange instead I need the mathematical formula.

    Maybe someone could help me, because I need it soon and I don't know how to writh this code in mathematical formula.

    First it stand all the declaration of range, int, but I will leave this out.

     

    var team P[X,Y];
    var Venues V[X,Y];

    solve{

    forall(x in X)

    alldifferent(all(y in Y) P[x,y]);

    forall(a in X & i in Y]  {

    P[a,a]=0;

    P[a,i]=P[i,a];

    V[a,i]=V[i,a];

    };

    forall(ordered a,b in X & c,d in Y : c>a & d>b) {

    P[a,c]=P[b,d]=>V[a,c]<>V[b,d];

    };

    };

    search {

    generade(P);

    };


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Tournament matrices

    Posted 12/04/14 04:09 PM

    Hi

    maybe you should rather post at

     

    https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000002067

    Your code looks like OPL 3.7.

    I am not sure about what you intend to do.

    With the latest version, this would look like

    using CP;

    range X=0..4;

    range Y=0..4;

    range Z=0..5;

     

    dvar int P[X,Y] in Z;

    dvar int V[X,Y] in Z;

     

    subject to

    {

     

    forall(x in X)

     

    allDifferent(all(y in Y) P[x,y]);

     

    forall(a in X , i in Y) {

     

    P[a,a]==0;

     

    P[a,i]==P[i,a];

     

    V[a,i]==V[i,a];

     

    };

     

    forall(ordered a,b in X , c,d in Y : (c>a) && (d>b)) {

     

    (P[a,c]==P[b,d])=>(V[a,c]!=V[b,d]);

     

    };

     

    };

    Regards

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Tournament matrices

    Posted 12/06/14 04:46 AM

    Originally posted by: 020W_Denni_Nußbaum


    Hello

    Thank you for your answer. If this is not the right place, someone could change it to the right place.

    Yes in the new OPL it probably looks like this, but I looking for is the mathimatical formula and not the programming language.

    I mean a mathematical model or something with what anyone could create and calculate this solution, what the programm does.

    Can someone help me, it is pretty important.

    Thank you


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Tournament matrices

    Posted 12/07/14 04:55 PM

    Originally posted by: 020W_Denni_Nußbaum


    Hello

    does nobody have any idea?

    Hope someone could help me.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer