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) throw () | |
| Instantiate a result and fix input/output sizes. | |
| virtual | ~Result () throw () |
| virtual std::ostream & | print (std::ostream &o) const throw () |
| 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.
Import vector type from Function class.
| roboptim::Result::Result | ( | const size_type | inputSize, |
| const size_type | outputSize = 1 |
||
| ) | throw () [explicit] |
Instantiate a result and fix input/output sizes.
| inputSize | input size value |
| outputSize | output size value |
| roboptim::Result::~Result | ( | ) | throw () [virtual] |
| std::ostream & roboptim::Result::print | ( | std::ostream & | o | ) | const throw () [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().
Constraints final values.
Referenced by roboptim::DummySolverLastState::solve().
Input size (i.e. argument size).
Output size (i.e. result size).
Function value at the solver found point.
Referenced by roboptim::DummySolverLastState::solve().
Point found by the solver.
Referenced by roboptim::DummySolverLastState::solve().