src/lemon/lp_solver_skeleton.cc
author alpar
Thu, 07 Apr 2005 06:31:03 +0000
changeset 1312 48f9299b390d
parent 1305 c3dc75d4af24
permissions -rw-r--r--
max() [_setMax()], min() [_setMin()], primalValue() [_getPrimalValue()] added
     1 /* -*- C++ -*-
     2  * src/lemon/lp_solver_skeleton.cc
     3  * - Part of LEMON, a generic C++ optimization library
     4  *
     5  * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * (Egervary Combinatorial Optimization Research Group, EGRES).
     7  *
     8  * Permission to use, modify and distribute this software is granted
     9  * provided that this copyright notice appears in all copies. For
    10  * precise terms see the accompanying LICENSE file.
    11  *
    12  * This software is provided "AS IS" with no warranty of any kind,
    13  * express or implied, and with no claim as to its suitability for any
    14  * purpose.
    15  *
    16  */
    17 
    18 #include <lemon/lp_solver_skeleton.h>
    19 
    20 ///\file
    21 ///\brief A skeleton file to implement LP solver interfaces
    22 namespace lemon {
    23   
    24   int LpSolverSkeleton::_addCol()
    25   {
    26     return ++col_num;
    27   }
    28   
    29   int LpSolverSkeleton::_addRow() 
    30   {
    31     return ++row_num;
    32   }
    33   
    34   void LpSolverSkeleton::_setRowCoeffs(int i, 
    35 					       int length,
    36 					       int  const * indices, 
    37 					       Value  const * values )
    38   {
    39   }
    40   
    41   void LpSolverSkeleton::_setColCoeffs(int i, 
    42 					       int length,
    43 					       int  const * indices, 
    44 					       Value  const * values)
    45   {
    46   }
    47   
    48   void LpSolverSkeleton::_setColLowerBound(int i, Value value)
    49   {
    50   }
    51   
    52   void LpSolverSkeleton::_setColUpperBound(int i, Value value)
    53   {
    54   }
    55   
    56   void LpSolverSkeleton::_setRowLowerBound(int i, Value value)
    57   {
    58   }
    59   
    60   void LpSolverSkeleton::_setRowUpperBound(int i, Value value)
    61   {
    62   }
    63   
    64   void LpSolverSkeleton::_setObjCoeff(int i, Value obj_coef)
    65   {
    66   }
    67 
    68   void LpSolverSkeleton::_setMax()
    69   {
    70   }
    71   void LpSolverSkeleton::_setMin()
    72   {
    73   }
    74 
    75   LpSolverSkeleton::SolveExitStatus LpSolverSkeleton::_solve()
    76   {
    77     return SOLVED;
    78   }
    79 
    80   LpSolverSkeleton::Value LpSolverSkeleton::_getPrimal(int i)
    81   {
    82     return 0;
    83   }
    84   
    85   LpSolverSkeleton::Value LpSolverSkeleton::_getPrimalValue()
    86   {
    87     return 0;
    88   }
    89   
    90   LpSolverSkeleton::SolutionStatus LpSolverSkeleton::_getPrimalStatus()
    91   {
    92     return OPTIMAL;
    93   }
    94   
    95 } //namespace lemon
    96