Represents the solution of an optimization problem. More...
#include <roboptim/core/result.hh>
Public Types | |
| typedef Function::size_type | size_type |
| Import size type from Function class. More... | |
| typedef Function::vector_t | vector_t |
| Import vector type from Function class. More... | |
Public Member Functions | |
| Result (const size_type inputSize, const size_type outputSize=1) throw () | |
| Instantiate a result and fix input/output sizes. More... | |
| virtual | ~Result () throw () |
| virtual std::ostream & | print (std::ostream &o) const throw () |
| Display the result on the specified output stream. More... | |
Public Attributes | |
| size_type | inputSize |
| Input size (i.e. argument size). More... | |
| size_type | outputSize |
| Output size (i.e. result size). More... | |
| vector_t | x |
| Point found by the solver. More... | |
| vector_t | value |
| Function value at the solver found point. More... | |
| vector_t | constraints |
| Constraints final values. More... | |
| vector_t | lambda |
| Lagrange multipliers. More... | |
Represents the solution of an optimization problem.
This class is returned by a solver if a result has been found. It is a set of mutable fields representing the solution and its associated meta-information.
Import size type from Function class.
Import vector type from Function class.
|
explicit | ||||||||||||||||||||
Instantiate a result and fix input/output sizes.
| inputSize | input size value |
| outputSize | output size value |
|
virtual | |||||||||||||
|
virtual | ||||||||||||||
Display the result on the specified output stream.
| o | output stream used for display |
Reimplemented in roboptim::ResultWithWarnings.
References roboptim::decindent(), roboptim::iendl(), and roboptim::incindent().
Referenced by roboptim::operator<<(), and roboptim::ResultWithWarnings::print().
| vector_t roboptim::Result::constraints |
Constraints final values.
Referenced by roboptim::DummySolverLastState::solve().
| size_type roboptim::Result::inputSize |
Input size (i.e. argument size).
| vector_t roboptim::Result::lambda |
| size_type roboptim::Result::outputSize |
Output size (i.e. result size).
| vector_t roboptim::Result::value |
Function value at the solver found point.
Referenced by roboptim::DummySolverLastState::solve().
| vector_t roboptim::Result::x |
Point found by the solver.
Referenced by roboptim::DummySolverLastState::solve().