Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Calling Cplex network parameters in Python

    Posted 02/03/12 08:36 PM

    Originally posted by: weekz28


    I am wondering if there is some way of calling the network parameters in Python since they are listed as 'not available in this API' for python. Specifically I am trying to find a way to set the network simplex iteration limit.
    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Calling Cplex network parameters in Python

    Posted 02/06/12 02:33 AM

    Originally posted by: SystemAdmin


    Since the parameters are not explicitly supported in the Python API there is no easy way to do this. You could try to use an undocumented function like this:
    cplex._internal._procedural.setintparam(c._env._e, PARAM_NUM, value)
    

    where c is the instance of cplex.Cplex() for which the parameter will be changed.
    PARAM_NUM is the parameter number (5001 for "Network simplex iteration limit") and value is the new value to be set.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Calling Cplex network parameters in Python

    Posted 05/10/12 03:25 PM

    Originally posted by: weekz28


    That worked. Thank you
    #CPLEXOptimizers
    #DecisionOptimization