Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to construct sparse matrix in Cplex C++

    Posted 11/18/10 04:46 AM

    Originally posted by: jmshao


    I noticed in cplex JAVA API there is IloLPMatrix to implement sparse matrix. But I didn't find any sample on how to do it in C++. I have a LP Model with a large amount of constraints, so I want to use sparse matrix instead of IloRange. I am not familiar with it. Does anyone has any idea?

    Thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to construct sparse matrix in Cplex C++

    Posted 11/18/10 12:06 PM

    Originally posted by: SystemAdmin


    There is no LPMatrix class in C++ Concert. But it is relatively easy to construct a sparse matrix as a vector of vectors of ints and doubles and the write a function that converts such a pair of vectors into an IloLinearNumExpr which can then be used to create an IloRange instance.
    #CPLEXOptimizers
    #DecisionOptimization