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>
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. |
typedef LpSolverBase::Col Value |
The value type of reader.
LpColReader | ( | LpSolverBase & | _lp | ) | [inline] |
Constructor for the reader.
void read | ( | std::istream & | is, | |
LpSolverBase::Col & | col | |||
) | const [inline] |
Reads an lp variable string from the given stream.