src/lemon/lp_solver_skeleton.cc
changeset 1305 c3dc75d4af24
parent 1303 9bcc455da4f5
child 1312 48f9299b390d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/lemon/lp_solver_skeleton.cc	Tue Apr 05 09:08:23 2005 +0000
     1.3 @@ -0,0 +1,84 @@
     1.4 +/* -*- C++ -*-
     1.5 + * src/lemon/lp_solver_skeleton.cc
     1.6 + * - Part of LEMON, a generic C++ optimization library
     1.7 + *
     1.8 + * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     1.9 + * (Egervary Combinatorial Optimization Research Group, EGRES).
    1.10 + *
    1.11 + * Permission to use, modify and distribute this software is granted
    1.12 + * provided that this copyright notice appears in all copies. For
    1.13 + * precise terms see the accompanying LICENSE file.
    1.14 + *
    1.15 + * This software is provided "AS IS" with no warranty of any kind,
    1.16 + * express or implied, and with no claim as to its suitability for any
    1.17 + * purpose.
    1.18 + *
    1.19 + */
    1.20 +
    1.21 +#include <lemon/lp_solver_skeleton.h>
    1.22 +
    1.23 +///\file
    1.24 +///\brief A skeleton file to implement LP solver interfaces
    1.25 +namespace lemon {
    1.26 +  
    1.27 +  int LpSolverSkeleton::_addCol()
    1.28 +  {
    1.29 +    return ++col_num;
    1.30 +  }
    1.31 +  
    1.32 +  int LpSolverSkeleton::_addRow() 
    1.33 +  {
    1.34 +    return ++row_num;
    1.35 +  }
    1.36 +  
    1.37 +  void LpSolverSkeleton::_setRowCoeffs(int i, 
    1.38 +					       int length,
    1.39 +					       int  const * indices, 
    1.40 +					       Value  const * values )
    1.41 +  {
    1.42 +  }
    1.43 +  
    1.44 +  void LpSolverSkeleton::_setColCoeffs(int i, 
    1.45 +					       int length,
    1.46 +					       int  const * indices, 
    1.47 +					       Value  const * values)
    1.48 +  {
    1.49 +  }
    1.50 +  
    1.51 +  void LpSolverSkeleton::_setColLowerBound(int i, Value value)
    1.52 +  {
    1.53 +  }
    1.54 +  
    1.55 +  void LpSolverSkeleton::_setColUpperBound(int i, Value value)
    1.56 +  {
    1.57 +  }
    1.58 +  
    1.59 +  void LpSolverSkeleton::_setRowLowerBound(int i, Value value)
    1.60 +  {
    1.61 +  }
    1.62 +  
    1.63 +  void LpSolverSkeleton::_setRowUpperBound(int i, Value value)
    1.64 +  {
    1.65 +  }
    1.66 +  
    1.67 +  void LpSolverSkeleton::_setObjCoeff(int i, Value obj_coef)
    1.68 +  {
    1.69 +  }
    1.70 +
    1.71 +  LpSolverSkeleton::SolveExitStatus LpSolverSkeleton::_solve()
    1.72 +  {
    1.73 +    return SOLVED;
    1.74 +  }
    1.75 +
    1.76 +  LpSolverSkeleton::Value LpSolverSkeleton::_getPrimal(int i)
    1.77 +  {
    1.78 +    return 0;
    1.79 +  }
    1.80 +  
    1.81 +  LpSolverSkeleton::SolutionStatus LpSolverSkeleton::_getPrimalType()
    1.82 +  {
    1.83 +    return OPTIMAL;
    1.84 +  }
    1.85 +  
    1.86 +} //namespace lemon
    1.87 +