src/work/athos/lp/lp_glpk.cc
changeset 1263 a490938ad0aa
parent 1261 9d0deeea8c08
child 1293 8ede2a6b2594
     1.1 --- a/src/work/athos/lp/lp_glpk.cc	Fri Mar 25 15:32:05 2005 +0000
     1.2 +++ b/src/work/athos/lp/lp_glpk.cc	Fri Mar 25 16:19:03 2005 +0000
     1.3 @@ -41,18 +41,22 @@
     1.4    
     1.5      void LpGlpk::_setRowCoeffs(int i, 
     1.6  			       int length,
     1.7 -			       int   * indices, 
     1.8 -			       Value   * values )
     1.9 +			       const int   * indices, 
    1.10 +			       const Value   * values )
    1.11      {
    1.12 -	lpx_set_mat_row(lp, i, length, indices, values);
    1.13 +      lpx_set_mat_row(lp, i, length,
    1.14 +		      const_cast<int * >(indices) ,
    1.15 +		      const_cast<Value * >(values));
    1.16      }
    1.17    
    1.18      void LpGlpk::_setColCoeffs(int i, 
    1.19  			       int length,
    1.20 -			       int   * indices, 
    1.21 -			       Value   * values)
    1.22 +			       const int   * indices, 
    1.23 +			       const Value   * values)
    1.24      {
    1.25 -	lpx_set_mat_col(lp, i, length, indices, values);
    1.26 +      lpx_set_mat_col(lp, i, length,
    1.27 +		      const_cast<int * >(indices),
    1.28 +		      const_cast<Value * >(values));
    1.29      }
    1.30    
    1.31      void LpGlpk::_setColLowerBound(int i, Value lo)
    1.32 @@ -233,6 +237,19 @@
    1.33        lpx_set_obj_coef(lp, i, obj_coef);
    1.34      }
    1.35  
    1.36 +
    1.37 +  LpGlpk::SolutionType LpGlpk::_solve()
    1.38 +  {
    1.39 +    return OPTIMAL;
    1.40 +  }
    1.41 +
    1.42 +  LpGlpk::Value LpGlpk::_getSolution(int i)
    1.43 +  {
    1.44 +    return 0;
    1.45 +  }
    1.46 +  
    1.47 +
    1.48 +
    1.49  } //END OF NAMESPACE LEMON
    1.50  
    1.51  #endif //LEMON_LP_GLPK_CC