Helper class used to help the user find good scaling parameters. More...
#include <roboptim/core/scaling-helper.hh>
Public Types | |
typedef Problem< T > | problem_t |
typedef problem_t::value_type | value_type |
typedef problem_t::size_type | size_type |
typedef problem_t::argument_t | argument_t |
typedef problem_t::scaling_t | scaling_t |
typedef problem_t::interval_t | interval_t |
typedef problem_t::constraints_t | constraints_t |
typedef problem_t::function_t | function_t |
typedef problem_t::jacobian_t | jacobian_t |
typedef boost::shared_ptr < function_t > | constraint_t |
typedef std::pair < constraint_t, scaling_t > | scalingFunc_t |
Public Member Functions | |
ScalingHelper (const problem_t &pb, const interval_t &gradRange=function_t::makeInterval(0.1, 10.)) | |
Constructor. More... | |
virtual | ~ScalingHelper () |
void | computeScaling (const std::vector< argument_t > &x) |
Get a possible scaling vector based on the gradient's infinity norm. More... | |
virtual std::ostream & | print (std::ostream &o) const |
Print method. More... | |
Helper class used to help the user find good scaling parameters.
We want the gradients to be of the order 0.1 to 100.
T | matrix type (dense or sparse). |
typedef problem_t::argument_t roboptim::ScalingHelper< T >::argument_t |
typedef boost::shared_ptr<function_t> roboptim::ScalingHelper< T >::constraint_t |
typedef problem_t::constraints_t roboptim::ScalingHelper< T >::constraints_t |
typedef problem_t::function_t roboptim::ScalingHelper< T >::function_t |
typedef problem_t::interval_t roboptim::ScalingHelper< T >::interval_t |
typedef problem_t::jacobian_t roboptim::ScalingHelper< T >::jacobian_t |
typedef Problem<T> roboptim::ScalingHelper< T >::problem_t |
typedef problem_t::scaling_t roboptim::ScalingHelper< T >::scaling_t |
typedef std::pair<constraint_t, scaling_t> roboptim::ScalingHelper< T >::scalingFunc_t |
typedef problem_t::size_type roboptim::ScalingHelper< T >::size_type |
typedef problem_t::value_type roboptim::ScalingHelper< T >::value_type |
roboptim::ScalingHelper< T >::ScalingHelper | ( | const problem_t & | pb, |
const interval_t & | gradRange = function_t::makeInterval (0.1, 10.) |
||
) |
Constructor.
pb | input problem. |
gradRange | valid absolute gradient range after scaling. |
References roboptim::Problem< T >::constraints().
|
virtual |
void roboptim::ScalingHelper< T >::computeScaling | ( | const std::vector< argument_t > & | x | ) |
Get a possible scaling vector based on the gradient's infinity norm.
x | vector of arguments to consider. |
References roboptim::GenericDifferentiableFunction< T >::jacobian().
|
virtual |
Print method.
o | output stream. |
References roboptim::decindent(), roboptim::iendl(), and roboptim::incindent().
Referenced by roboptim::operator<<().