Decision Optimization

 View Only
  • 1.  Getting started ..... slowly !Hi

    Posted Tue May 28, 2024 04:16 AM

    I have been using the community edition of CPLEX  Optimiztion  Studio for a while an for a while now and now need to go the full developer version as my model has outgrown the limitations of community edition

    I paid the fee & received emails with license key and instructions on how to upgrade & install the keys as described here: http://www.ibm.com/support/docview.wss?uid=swg22008948

    After following these instructions, my larger model will not run, throwing an error :

     

      Message=Solver error: Problem size limit exceeded.

    CP Optimizer Community Edition solves problems with search spaces up to 2^1000.

    Unrestricted version options (including academia) at https://ibm.co/2s0wqSa

     

      Source=C:\Users\Ross\source\repos\PythonApplication1\F3_Scheduler.py

      StackTrace:

      File "C:\Users\Ross\source\repos\PythonApplication1\F3_Scheduler.py", line 152, in generate_schedule

        solution = model.solve(TimeLimit=search_time, LogVerbosity='Terse' )

      File "C:\Users\Ross\source\repos\PythonApplication1\PythonApplication1.py", line 49, in <module> (Current frame)

        generate_schedule(mdl)

    docplex.cp.solver.solver.CpoSolverException: Solver error: Problem size limit exceeded.

    CP Optimizer Community Edition solves problems with search spaces up to 2^1000.

    Unrestricted version options (including academia) at https://ibm.co/2s0wqSa

     

    It looks like I've been sold a pup (aussie slang for it does not work)

     

    What can I do?

     

    0400669880

     



  • 2.  RE: Getting started ..... slowly !Hi

    Posted Fri June 14, 2024 03:53 AM

    Hi,

    you still call the free limited community edition if you get this error.

    You can chante the solver your use in python.

    In the solve you can select which version of cplex you want to call on your machine.

    Let me show this with the zoo example .

    from docplex.cp.model import CpoModel
    
    mdl = CpoModel(name='buses')
    nbbus40 = mdl.integer_var(0,1000,name='nbBus40')
    nbbus30 = mdl.integer_var(0,1000,name='nbBus30')
    mdl.add(nbbus40*40 + nbbus30*30 >= 300)
    mdl.minimize(nbbus40*500 + nbbus30*400)
    
    msol=mdl.solve(execfile='C:\\ILOG\\CPLEX_Studio201\\cpoptimizer\\bin\\x64_win64\\cpoptimizer.exe')
    msol=mdl.solve(execfile='C:\\ILOG\\CPLEX_Studio1210\\cpoptimizer\\bin\\x64_win64\\cpoptimizer.exe')
    
    print(msol[nbbus40]," buses 40 seats")
    print(msol[nbbus30]," buses 30 seats") 


    ------------------------------
    [Alex] [Fleischer]
    [Data and AI Technical Sales]
    [IBM]
    ------------------------------