LpColReader Class Reference
[Tools for Lp and Mip solvers]

#include <lemon/lp_utils.h>

List of all members.


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.

Public Types

typedef LpSolverBase::Col Value
 The value type of reader.

Public Member Functions

 LpColReader (LpSolverBase &_lp)
 Constructor for the reader.
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.


The documentation for this class was generated from the following file:

Generated on Sat Apr 19 14:19:22 2008 for LEMON by  doxygen 1.5.5