Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Get and Set basis via IloOplCplexBasis

    Posted 03/28/11 03:06 AM

    Originally posted by: HKUcivil


    Hi,
    Previously,I use (cplex.writeBasis("bas.bas")/cplex.readBasis("bas.bas")to access basis.

    Now i want to use IloOplCplexBasis class.
    However, when i add
    IloOplCplexBasis::getBasis(cplex)

    It shows the warning that :

    error C2352: 'IloOplCplexBasis::getBasis' : illegal call of non-static member function
    C:\ILOG\CPLEX_Studio_AcademicResearch122\opl\include\ilopl/ilooplmodel.h(546) : see declaration of 'IloOplCplexBasis::getBasis'

    How to solve this problem.

    Thanks.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Get and Set basis via IloOplCplexBasis

    Posted 03/31/11 08:59 PM

    Originally posted by: SystemAdmin


    you would use getBasis as below:
    var basis= new IloOplCplexBasis();
    basis.getBasis(cplex);
    


    There is an example illusrating usage here:
    OPL doc

    Regards,
    Faisal
    #DecisionOptimization
    #OPLusingCPLEXOptimizer