LpColReader Class Reference
[Tools for Lp and Mip solvers]


Detailed Description

This class is an Lp variable item reader for Lemon IO. It makes possible to store lp variables in lemon file. The usage of this class is very simple:

      Graph graph;
      Lp lp;
      Graph::EdgeMap<Lp::Col> var(graph); 
     
      GraphReader<Graph> reader(cin, graph);
      reader.readEdgeMap("lpvar", var, LpColReader(lp));
      reader.run();

If there is already a variable with the same name in the lp then it will be used for the return value. If there is no such variable then it will be constructed. The file could contain '-' as value which means that no lp variable associated to the current item and in this case INVALID will be returned. #include <lemon/lp_utils.h>

List of all members.

Public Types

typedef LpSolverBase::Col Value

Public Member Functions

 LpColReader (LpSolverBase &_lp)
void read (std::istream &is, LpSolverBase::Col &col) const
 Reads an lp variable from the given stream.


Member Typedef Documentation

The value type of reader.


Constructor & Destructor Documentation

LpColReader ( LpSolverBase _lp  )  [inline]

Constructor for the reader.


Member Function Documentation

void read ( std::istream &  is,
LpSolverBase::Col col 
) const [inline]

Reads an lp variable string from the given stream.


Generated on Thu Jun 4 04:05:17 2009 for LEMON by  doxygen 1.5.9