delpi
0.0.1
DElta-complete LP solver
Toggle main menu visibility
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
17
namespace
delpi
{
18
24
struct
Row
{
25
std::vector<std::pair<Variable, mpq_class>>
addends
;
26
std::optional<mpq_class>
lb
;
27
std::optional<mpq_class>
ub
;
28
};
29
30
std::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
38
OSTREAM_FORMATTER(
delpi::Row
)
39
40
#endif
delpi
Global namespace for the delpi library.
delpi::Row
Structure representing a row in the LP solver in the form of a linear combination of variables.
Definition
Row.h:24
delpi::Row::lb
std::optional< mpq_class > lb
Lower bound. Ifstd::nullopt, indicated unboundness.
Definition
Row.h:26
delpi::Row::addends
std::vector< std::pair< Variable, mpq_class > > addends
Linear combination of variables.
Definition
Row.h:25
delpi::Row::ub
std::optional< mpq_class > ub
Upper bound. Ifstd::nullopt, indicated unboundness.
Definition
Row.h:27
delpi
solver
Row.h
Generated by
1.17.0