Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to set parameter CPX_PARAM_WORKMEM with C

    Posted 12/14/11 04:58 AM

    Originally posted by: GACNEU


    hi,all

    CPlex.setParam(CPX_PARAM_WORKMEM,2560.0); //CPlex is an object of IloCPlex

    the compiler reports the error C2664: 'void IloCplex::setParam(IloCplex::IntParam,IloInt)' : cannot convert parameter 1 from 'double' to 'IloCplex::IntParam'

    what is the correct codes.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: How to set parameter CPX_PARAM_WORKMEM with C

    Posted 12/14/11 05:31 AM

    Originally posted by: Olivier Binckly


    workmem is a parameter of type double
    C Name CPX_PARAM_WORKMEM (double)

    did you try to use the following method?
    CPXsetdblparam
    int CPXsetdblparam(CPXENVptr env, int whichparam, double newvalue)
    Definition file: cplex.h
    The routine CPXsetdblparam sets the value of a CPLEX parameter of type double.
    The CPLEX Parameters Reference Manual provides a list of parameters with their types, options, and default values.
    Example
    status = CPXsetdblparam (env, CPX_PARAM_TILIM, 1000.0);
    Parameters:
    env A pointer to the CPLEX environment as returned by CPXopenCPLEX.
    whichparam The symbolic constant (or reference number) of the parameter to change.
    newvalue The new value of the parameter.
    Returns:
    The routine returns zero if successful and nonzero if an error occurs.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer