LpColWriter Class Reference
[Tools for Lp and Mip solvers]


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. #include <lemon/lp_utils.h>

List of all members.

Public Types

typedef LpSolverBase::Col Value

Public Member Functions

 LpColWriter (const LpSolverBase &_lp)
void write (std::ostream &os, const LpSolverBase::Col &col) const


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.


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