Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Error: Data set element "x" has already been set

  • 1.  Error: Data set element "x" has already been set

    Posted 02/11/15 09:09 PM

    Originally posted by: shiela


    Dear everyone,

    Can anybody explain what are the causes of 
       Error: Data element "x" has already been set?

    I have been receiving this error and do not know how to deal with it.

    Thanks!

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Error: Data set element "x" has already been set

    Posted 02/12/15 07:20 AM

    Hi

    let me give you an example.

    In the .mod

    int a=2;

    In the .dat

    a=2;

    then you get Data element "a" has already been set

    If you turn int a=2; in the .mod into int a=...; everything will be fine

    regards

    PS:

    In the documentation at IDE and OPL > Appendixes you have a list of errors with some infos


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Error: Data set element "x" has already been set

    Posted 02/12/15 07:30 AM

    Originally posted by: shiela


    Alex,

    Thanks!

    I found that in my .mod i just declared

    int a;

    but should be with some value, just as you said.

    Thanks much!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer