Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  preprocessing - getting a max-value

    Posted 07/04/12 01:41 PM

    Originally posted by: CDN3_Daniel_Cramer


    Dear Community,

    I got a question in concerning the preprocessing:

    I have to initialize a big numeral - and I want to get it before the CPLEX solves the model.

    I have different materials, and they have different demands in periods (d material time).
    I want to summarize all demands of each material and "write" it in a vector "MaxValue material.

    execute INITIALIZE
    {
    for (var k in material)
            {
            for (var t in time)
                    {
                    MaxValue[k] = d[k][t];
                    }
            }     
    };
    


    Has anybody a tip?

    Thanks
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: preprocessing - getting a max-value

    Posted 07/05/12 09:26 AM
    Hi,

    could

    int maxValue[k in material]=max(t in time) d[k][t];
    


    help you?

    regards
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: preprocessing - getting a max-value

    Posted 07/08/12 01:59 PM

    Originally posted by: CDN3_Daniel_Cramer


    works great!

    Thanks
    #DecisionOptimization
    #OPLusingCPLEXOptimizer