Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  getting the A matrix from Cplex.Model

    Posted 05/05/12 01:54 PM

    Originally posted by: Emre.A


    Hello all,

    I implemented and solved my model in CPLEX. I had written another piece of code which takes a generic constraint matrix, Right hand side values and cost coefficients and computes the lagrangian relaxation. In order to connect the two models, I want to extract (in array forms) these A, b, c matrix, column and row's.

    I have been trying to use default functions, but I cant seem to find a corresponding one. I am confused that the task is pretty simple, as I only want it to return the inputs of the model in a sense.

    Do you have any ideas? I would really appreciate any help.

    Thanks

    Emre
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: getting the A matrix from Cplex.Model

    Posted 05/05/12 04:01 PM

    Originally posted by: Laci Ladanyi


    If you use the C API then look at the CPXgetcols (http://publib.boulder.ibm.com/infocenter/cosinfoc/v12r4/topic/ilog.odms.cplex.help/refcallablelibrary/html/functions/CPXgetcols.html) and CPXgetrows (http://publib.boulder.ibm.com/infocenter/cosinfoc/v12r4/topic/ilog.odms.cplex.help/refcallablelibrary/html/functions/CPXgetrows.html) functions. In general the CPXget... functions. There are corresponding function in all of CPLEX's APIs.

    --Laci
    #CPLEXOptimizers
    #DecisionOptimization