hops
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
b
d
e
f
m
o
p
r
s
u
v
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
e
f
h
i
m
r
s
t
u
v
Enumerations
Enumerator
Related Functions
:
a
c
d
f
h
n
o
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
w
Variables
Typedefs
c
d
f
n
p
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
hops
LinearProgram
LinearProgramSolution.hpp
Go to the documentation of this file.
1
#ifndef HOPS_LINEARPROGRAMSOLUTION_HPP
2
#define HOPS_LINEARPROGRAMSOLUTION_HPP
3
4
#include <Eigen/Core>
5
#include <utility>
6
#include "
LinearProgramStatus.hpp
"
7
8
namespace
hops
{
9
struct
LinearProgramSolution
{
10
LinearProgramSolution
(
double
objectiveValue
, Eigen::VectorXd solution,
LinearProgramStatus
status
)
11
:
objectiveValue
(
objectiveValue
),
optimalParameters
(std::move(solution)),
status
(
status
) {}
12
13
bool
operator==
(
const
LinearProgramSolution
&rhs)
const
{
14
return
objectiveValue
== rhs.
objectiveValue
&&
15
optimalParameters
== rhs.
optimalParameters
&&
16
status
== rhs.
status
;
17
}
18
19
bool
operator!=
(
const
LinearProgramSolution
&rhs)
const
{
20
return
!(rhs == *
this
);
21
}
22
23
double
objectiveValue
;
24
Eigen::VectorXd
optimalParameters
;
25
LinearProgramStatus
status
;
26
};
27
}
28
29
#endif //HOPS_LINEARPROGRAMSOLUTION_HPP
hops::LinearProgramSolution::status
LinearProgramStatus status
Definition:
LinearProgramSolution.hpp:25
hops::LinearProgramSolution::LinearProgramSolution
LinearProgramSolution(double objectiveValue, Eigen::VectorXd solution, LinearProgramStatus status)
Definition:
LinearProgramSolution.hpp:10
hops::LinearProgramSolution
Definition:
LinearProgramSolution.hpp:9
hops::LinearProgramSolution::optimalParameters
Eigen::VectorXd optimalParameters
Definition:
LinearProgramSolution.hpp:24
hops::LinearProgramSolution::operator!=
bool operator!=(const LinearProgramSolution &rhs) const
Definition:
LinearProgramSolution.hpp:19
hops::LinearProgramSolution::operator==
bool operator==(const LinearProgramSolution &rhs) const
Definition:
LinearProgramSolution.hpp:13
hops
Definition:
CsvReader.hpp:8
hops::LinearProgramStatus
LinearProgramStatus
Definition:
LinearProgramStatus.hpp:5
hops::LinearProgramSolution::objectiveValue
double objectiveValue
Definition:
LinearProgramSolution.hpp:23
LinearProgramStatus.hpp
Generated by
1.8.17