LpColWriter 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 writer 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); 
     
      GraphWriter<Graph> writer(cin, graph);
      writer.writeEdgeMap("lpvar", var, LpColWriter(lp));
      writer.run();

If there is no name associated to the current item then the name will automatically constructed. If the value is INVALID then it will write an '-' value to the file.

Public Types

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

Public Member Functions

 LpColWriter (const LpSolverBase &_lp)
 Constructor for the writer.
void write (std::ostream &os, const LpSolverBase::Col &col) const
 Writes an lp variable to the given stream.


Member Typedef Documentation

The value type of writer.


Constructor & Destructor Documentation

LpColWriter ( const LpSolverBase _lp  )  [inline]

Constructor for the writer.


Member Function Documentation

void write ( std::ostream &  os,
const LpSolverBase::Col col 
) const [inline]

Writes an lp variable to 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