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. | |
| typedef Function::vector_t | vector_t |
| Import vector type from Function class. | |
Public Member Functions | |
| Result (const size_type inputSize, const size_type outputSize=1) | |
| Instantiate a result and fix input/output sizes. | |
| virtual | ~Result () |
| virtual std::ostream & | print (std::ostream &o) const |
| Display the result on the specified output stream. | |
Public Attributes | |
| size_type | inputSize |
| Input size (i.e. argument size). | |
| size_type | outputSize |
| Output size (i.e. result size). | |
| vector_t | x |
| Point found by the solver. | |
| vector_t | value |
| Function value at the solver found point. | |
| vector_t | constraints |
| Constraints final values. | |
| vector_t | lambda |
| Lagrange multipliers. | |
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.
| typedef Function::vector_t roboptim::Result::vector_t |
Import vector type from Function class.
| roboptim::Result::Result | ( | const size_type | inputSize, |
| const size_type | outputSize = 1 |
||
| ) | [explicit] |
Instantiate a result and fix input/output sizes.
| inputSize | input size value |
| outputSize | output size value |
References constraints, lambda, value, and x.
| roboptim::Result::~Result | ( | ) | [virtual] |
| std::ostream & roboptim::Result::print | ( | std::ostream & | o | ) | const [virtual] |
Display the result on the specified output stream.
| o | output stream used for display |
Reimplemented in roboptim::ResultWithWarnings.
References constraints, roboptim::decindent(), roboptim::iendl(), roboptim::incindent(), inputSize, lambda, outputSize, value, and x.
Referenced by roboptim::operator<<().
Constraints final values.
Referenced by print(), Result(), and roboptim::GenericDummySolverLastState< T >::solve().
Input size (i.e. argument size).
Referenced by print().
Lagrange multipliers.
The vector of multipliers is expected to be ordered as follows:
Referenced by print(), Result(), and roboptim::GenericDummySolverLastState< T >::solve().
Output size (i.e. result size).
Referenced by print().
Function value at the solver found point.
Referenced by print(), Result(), and roboptim::GenericDummySolverLastState< T >::solve().
Point found by the solver.
Referenced by print(), Result(), and roboptim::GenericDummySolverLastState< T >::solve().