lemon/lp_cplex.cc
changeset 2415 ef13597d249a
parent 2391 14a343be7a5a
child 2553 bfced05fa852
equal deleted inserted replaced
23:27bbff479b18 24:f95097f6fed2
   133 
   133 
   134     status = CPXchgcoeflist(env, lp, values.size(), 
   134     status = CPXchgcoeflist(env, lp, values.size(), 
   135 			    &rowlist[0], &indices[0], &values[0]); 
   135 			    &rowlist[0], &indices[0], &values[0]); 
   136   }
   136   }
   137 
   137 
   138   void LpSoplex::_getRowCoeffs(int i, RowIterator b) const {
   138   void LpCplex::_getRowCoeffs(int i, RowIterator b) const {
   139     /// \todo implement
   139     /// \todo implement
   140   }
   140   }
   141   
   141   
   142   void LpCplex::_setColCoeffs(int i, ConstColIterator b, ConstColIterator e)
   142   void LpCplex::_setColCoeffs(int i, ConstColIterator b, ConstColIterator e)
   143   {
   143   {
   153 
   153 
   154     status = CPXchgcoeflist(env, lp, values.size(), 
   154     status = CPXchgcoeflist(env, lp, values.size(), 
   155 			    &indices[0], &collist[0], &values[0]); 
   155 			    &indices[0], &collist[0], &values[0]); 
   156   }
   156   }
   157 
   157 
   158   void LpSoplex::_getColCoeffs(int i, ColIterator b) const {
   158   void LpCplex::_getColCoeffs(int i, ColIterator b) const {
   159     /// \todo implement
   159     /// \todo implement
   160   }
   160   }
   161   
   161   
   162   void LpCplex::_setCoeff(int row, int col, Value value) 
   162   void LpCplex::_setCoeff(int row, int col, Value value) 
   163   {
   163   {
   394   LpCplex::Value LpCplex::_getPrimalValue() const
   394   LpCplex::Value LpCplex::_getPrimalValue() const
   395   {
   395   {
   396     Value objval;
   396     Value objval;
   397     //method = CPXgetmethod (env, lp);
   397     //method = CPXgetmethod (env, lp);
   398     //printf("CPXgetprobtype %d \n",CPXgetprobtype(env,lp));
   398     //printf("CPXgetprobtype %d \n",CPXgetprobtype(env,lp));
   399     status = CPXgetobjval(env, lp, &objval);
   399     CPXgetobjval(env, lp, &objval);
   400     //printf("Objective value: %g \n",objval);
   400     //printf("Objective value: %g \n",objval);
   401     return objval;
   401     return objval;
   402   }
   402   }
   403   bool LpCplex::_isBasicCol(int i) const
   403   bool LpCplex::_isBasicCol(int i) const
   404   {
   404   {