Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Data preprocessing

    Posted 03/10/11 06:36 PM

    Originally posted by: onuruzunlar


    Hi,

    I have a very simple problem.

    i am trying to calculate M[i][j] for all i in Nodes and j in Nodes, so i wrote the following to the .mod file;

    float MNodesNodes;
    execute {
    for (var i in Nodes){
    for (var j in Nodes) {
    M[i][j]=theta*gamma+theta*sum(s in Nodes)g[s][j];
    }
    }
    }

    but it does not work. Any help?_
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Data preprocessing

    Posted 03/14/11 05:34 AM
    Hi,

    it does not work because you should not use sum in the scripting part.
    Sum should only be used in the OPL part

    Regards

    Alex
    #DecisionOptimization
    #OPLusingCPLEXOptimizer