COIN-OR::LEMON - Graph Library

Changeset 1263:a490938ad0aa in lemon-0.x for src/work/athos/lp/lp_glpk.cc


Ignore:
Timestamp:
03/25/05 17:19:03 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1690
Message:
  • LpGlpk? added to the makefile
  • missing const_cast<>() added
  • prop for two new functions (solve() and solution())
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/lp_glpk.cc

    r1261 r1263  
    4242    void LpGlpk::_setRowCoeffs(int i,
    4343                               int length,
    44                                int   * indices,
    45                                Value   * values )
    46     {
    47         lpx_set_mat_row(lp, i, length, indices, values);
     44                               const int   * indices,
     45                               const Value   * values )
     46    {
     47      lpx_set_mat_row(lp, i, length,
     48                      const_cast<int * >(indices) ,
     49                      const_cast<Value * >(values));
    4850    }
    4951 
    5052    void LpGlpk::_setColCoeffs(int i,
    5153                               int length,
    52                                int   * indices,
    53                                Value   * values)
    54     {
    55         lpx_set_mat_col(lp, i, length, indices, values);
     54                               const int   * indices,
     55                               const Value   * values)
     56    {
     57      lpx_set_mat_col(lp, i, length,
     58                      const_cast<int * >(indices),
     59                      const_cast<Value * >(values));
    5660    }
    5761 
     
    234238    }
    235239
     240
     241  LpGlpk::SolutionType LpGlpk::_solve()
     242  {
     243    return OPTIMAL;
     244  }
     245
     246  LpGlpk::Value LpGlpk::_getSolution(int i)
     247  {
     248    return 0;
     249  }
     250 
     251
     252
    236253} //END OF NAMESPACE LEMON
    237254
Note: See TracChangeset for help on using the changeset viewer.