This class holds the solution objects.
More...
#include <BcpsSolution.h>
This class holds the solution objects.
At this level, a solution is just considered to be a list of objects with associated values.
Definition at line 35 of file BcpsSolution.h.
◆ BcpsSolution() [1/3]
BcpsSolution::BcpsSolution |
( |
| ) |
|
|
inline |
◆ BcpsSolution() [2/3]
BcpsSolution::BcpsSolution |
( |
int | size, |
|
|
const double * | values, |
|
|
double | q ) |
|
inline |
◆ BcpsSolution() [3/3]
BcpsSolution::BcpsSolution |
( |
int | size, |
|
|
BcpsObject_p *& | objects, |
|
|
double *& | values, |
|
|
double | q ) |
|
inline |
Construct an object using the given arrays.
Note that the new objects takes over the pointers and NULLs them out in the calling method.
Definition at line 81 of file BcpsSolution.h.
◆ ~BcpsSolution()
virtual BcpsSolution::~BcpsSolution |
( |
| ) |
|
|
inlinevirtual |
◆ getSize()
int BcpsSolution::getSize |
( |
| ) |
const |
|
inline |
◆ getObjects()
◆ getValues()
const double * BcpsSolution::getValues |
( |
| ) |
const |
|
inline |
◆ getQuality()
double BcpsSolution::getQuality |
( |
| ) |
const |
|
inline |
◆ setSize()
void BcpsSolution::setSize |
( |
int | s | ) |
|
|
inline |
Set/assign the appropriate data member.
Definition at line 109 of file BcpsSolution.h.
◆ assignObjects()
◆ setValues()
void BcpsSolution::setValues |
( |
const double * | vs, |
|
|
int | s ) |
|
inline |
◆ setQuality()
void BcpsSolution::setQuality |
( |
double | q | ) |
|
|
inline |
◆ selectNonzeros()
virtual BcpsSolution * BcpsSolution::selectNonzeros |
( |
const double | etol = 1e-5 | ) |
const |
|
virtual |
Select the fractional/nonzero elements from the solution array and return a new object in compacted form.
◆ selectFractional()
virtual BcpsSolution * BcpsSolution::selectFractional |
( |
const double | etol = 1e-5 | ) |
const |
|
virtual |
◆ print()
virtual void BcpsSolution::print |
( |
std::ostream & | os | ) |
const |
|
inlinevirtual |
◆ encodeBcps()
AlpsReturnStatus BcpsSolution::encodeBcps |
( |
AlpsEncoded * | encoded | ) |
const |
Pack Bcps part of solution into an encoded objects.
◆ decodeBcps()
AlpsReturnStatus BcpsSolution::decodeBcps |
( |
AlpsEncoded & | encoded | ) |
|
Unpack Bcps part of solution from an encoded objects.
◆ size_
◆ objects_
List of objects associated with values.
Can be NULL.
Definition at line 48 of file BcpsSolution.h.
◆ values_
double* BcpsSolution::values_ |
|
protected |
◆ quality_
double BcpsSolution::quality_ |
|
protected |
Quality/Objective value associated with this solution.
Definition at line 54 of file BcpsSolution.h.
The documentation for this class was generated from the following file: