delpi  0.0.1
DElta-complete LP solver
Loading...
Searching...
No Matches
Row.h
1
7#pragma once
8
9#include <iosfwd>
10#include <optional>
11#include <utility>
12#include <vector>
13
14#include "delpi/libs/gmp.h"
15#include "delpi/symbolic/Variable.h"
16
17namespace delpi {
18
24struct Row {
25 std::vector<std::pair<Variable, mpq_class>> addends;
26 std::optional<mpq_class> lb;
27 std::optional<mpq_class> ub;
28};
29
30std::ostream& operator<<(std::ostream& os, const Row& row);
31
32} // namespace delpi
33
34#ifdef DELPI_INCLUDE_FMT
35
36#include "delpi/util/logging.h"
37
38OSTREAM_FORMATTER(delpi::Row)
39
40#endif
Global namespace for the delpi library.
Structure representing a row in the LP solver in the form of a linear combination of variables.
Definition Row.h:24
std::optional< mpq_class > lb
Lower bound. Ifstd::nullopt, indicated unboundness.
Definition Row.h:26
std::vector< std::pair< Variable, mpq_class > > addends
Linear combination of variables.
Definition Row.h:25
std::optional< mpq_class > ub
Upper bound. Ifstd::nullopt, indicated unboundness.
Definition Row.h:27