Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Licence error

    Posted 07/24/10 09:14 AM

    Originally posted by: obivan


    Hello,
    I have a code that used to be working properly. After I changed the computer, it started giving a licence error 32201. I solve an LP model in a column generation algorithm (no licence error was encountered) then use the following code

    IloModel mip(env);
    mip.add(model);
    mip.add(IloConversion(env,x,ILOINT));
    mip.add(IloConversion(env,xpqk,ILOINT));
    IloCplex cplex1(mip);

    it terminates with the error after calling the last line. What would be the problem?
    Thank you.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Licence error

    Posted 07/24/10 02:17 PM

    Originally posted by: SystemAdmin


    1. Is env already initialized? I think failure to initialize an environment manifests as a 32201 error, although I would expect it to pop after the first line of your code segment rather than the last line.

    2. Does your license on this machine cover MIPs? I'm not sure whether there's an LP-only version of the license, but I seem to recall that there are LP/MIP licences that don't include the barrier optimizer (and maybe not QPs), so maybe there are licenses that do not cover MIPs. Again, I'm not positive, but I think in the license file the single letter option codes in the CPLEX line dictate what you've licensed (and, if I'm right, 'm' probably is the one signifying you're allowed to solve MIPs).

    Just guesswork.

    /Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Licence error

    Posted 07/27/10 07:24 AM

    Originally posted by: obivan


    1-Yes. env is already initialized.
    2- I have run the same code for a slightly smaller instance and it works. I think MIP is supported by our licence.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Licence error

    Posted 07/27/10 11:32 AM

    Originally posted by: Olivier Binckly


    the possible options in the license are:
    e : interactive optimizer
    m : mip
    b : barrier
    q : quadratic
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Licence error

    Posted 07/27/10 02:59 PM

    Originally posted by: SystemAdmin


    If a smaller instance runs, then apparently your license covers MIPs. How confident are you that the smaller instance executes the same commands (in the same sequence) as the larger instance? Are you running on multiple cores?

    After you solve the LP, do you invoke the end() method on the instance of IloCplex that solved it? If not, try the following:

    IloEnv env = ...;
    IloModel model(env);
    // build the LP model
    IloCplex cplex(model);  // extract the LP
    cplex.solve();
    // do whatever is necessary with the solution
    cplex.end();  // should free up any license still tied to the LP?
    IloModel mip(env);
    mip.add(model);
    // etc.
    IloCplex cplex1(mip);
    


    /Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Licence error

    Posted 07/27/10 03:01 PM

    Originally posted by: GuangFeng


    For Error 32201, please see whether the instructions in the technote below works:

    http://www-01.ibm.com/support/docview.wss?uid=swg21400025
    #CPLEXOptimizers
    #DecisionOptimization