Decision Optimization

Decision Optimization

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

 View Only
  • 1.  IloOplElement Types in Java

    Posted Tue August 31, 2010 03:35 PM

    Originally posted by: JeremyBloom


    Does anyone know how to use ilog.opl.IloOplElementType.Type? It is not documented in the Java API. It is documented in the C++ API, but no information is given on the codes used. It is not a Java Enum. How do I test for the type of a IloOplElement instance?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: IloOplElement Types in Java

    Posted Wed September 01, 2010 04:07 AM

    Originally posted by: ArnaudS


    Hi Jeremy,

    You can do something like:
    IloOplElementType.Type type = element.getElementType();
    if (type == IloOplElementType.Type.SET_INT) {
           
    }
    

    Hope this helps,
    Arnaud
    #DecisionOptimization
    #OPLusingCPLEXOptimizer