Go to the documentation of this file.
7 #ifndef __IPGRADIENTSCALING_HPP__
8 #define __IPGRADIENTSCALING_HPP__
47 const std::string& prefix
void operator=(const GradientScaling &)
Default Assignment Operator.
This class does problem scaling by setting the scaling parameters based on the maximum of the gradien...
This is a base class for many standard scaling techniques.
bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Initialize the object from the options.
static void RegisterOptions(const SmartPtr< RegisteredOptions > &roptions)
Register the options for this class.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
double Number
Type of all numbers.
Number scaling_max_gradient_
maximum allowed gradient before scaling is performed
SmartPtr< NLP > nlp_
pointer to the NLP to get scaling parameters
Template class for Smart Pointers.
Number scaling_min_value_
minimum value of a scaling parameter
GradientScaling(const GradientScaling &)
Copy Constructor.
virtual ~GradientScaling()
Destructor.
GradientScaling(const SmartPtr< NLP > &nlp)
Number scaling_constr_target_gradient_
target size of norm for constraint gradients
virtual void DetermineScalingParametersImpl(const SmartPtr< const VectorSpace > x_space, const SmartPtr< const VectorSpace > c_space, const SmartPtr< const VectorSpace > d_space, const SmartPtr< const MatrixSpace > jac_c_space, const SmartPtr< const MatrixSpace > jac_d_space, const SmartPtr< const SymMatrixSpace > h_space, const Matrix &Px_L, const Vector &x_L, const Matrix &Px_U, const Vector &x_U, Number &df, SmartPtr< Vector > &dx, SmartPtr< Vector > &dc, SmartPtr< Vector > &dd)
This is the method that has to be overloaded by a particular scaling method that somehow computes the...
This class stores a list of user set options.
Number scaling_obj_target_gradient_
target size of norm for objective gradient