Ipopt 3.11.9
Loading...
Searching...
No Matches
IpEquilibrationScaling.hpp
Go to the documentation of this file.
1// Copyright (C) 2007 International Business Machines and others.
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// $Id: IpEquilibrationScaling.hpp 1861 2010-12-21 21:34:47Z andreasw $
6//
7// Authors: Andreas Waechter IBM 2007-05-21
8
9#ifndef __IPEQUILIBRATIONSCALING_HPP__
10#define __IPEQUILIBRATIONSCALING_HPP__
11
12#include "IpNLPScaling.hpp"
13#include "IpNLP.hpp"
14
15namespace Ipopt
16{
22 {
23 public:
27 :
29 nlp_(nlp)
30 {}
31
34 {}
36
40 static void RegisterOptions(const SmartPtr<RegisteredOptions>& roptions);
42
43 protected:
45 bool InitializeImpl(const OptionsList& options,
46 const std::string& prefix);
47
49 const SmartPtr<const VectorSpace> x_space,
50 const SmartPtr<const VectorSpace> c_space,
51 const SmartPtr<const VectorSpace> d_space,
52 const SmartPtr<const MatrixSpace> jac_c_space,
53 const SmartPtr<const MatrixSpace> jac_d_space,
55 const Matrix& Px_L, const Vector& x_L,
56 const Matrix& Px_U, const Vector& x_U,
57 Number& df,
61
62 private:
63
72
75
79
82
86 };
87
93 {
94 public:
97 PointPerturber(const Vector& reference_point,
98 Number random_pert_radius,
99 const Matrix& Px_L, const Vector& x_L,
100 const Matrix& Px_U, const Vector& x_U);
101
104 {}
106
109
110 private:
111
120
123
127
130
133 };
134
135} // namespace Ipopt
136#endif
Number * x_L
Lower bounds on variables.
Number Number * x_U
Upper bounds on variables.
This class does problem scaling by setting the scaling parameters based on the maximum of the gradien...
Number point_perturbation_radius_
maximal radius for the random perturbation of the initial point.
void operator=(const EquilibrationScaling &)
Overloaded Equals Operator.
bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Initialize the object from the options.
static void RegisterOptions(const SmartPtr< RegisteredOptions > &roptions)
Methods for IpoptType.
EquilibrationScaling(const SmartPtr< NLP > &nlp)
virtual ~EquilibrationScaling()
Default destructor.
SmartPtr< NLP > nlp_
pointer to the NLP to get scaling parameters
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...
EquilibrationScaling(const EquilibrationScaling &)
Copy Constructor.
Matrix Base Class.
Definition IpMatrix.hpp:28
This class stores a list of user set options.
This class is a simple object for generating randomly perturbed points that are withing the NLP bound...
virtual ~PointPerturber()
Default destructor.
SmartPtr< Vector > ref_point_
pointer to the midpoint of the perturbation
PointPerturber(const PointPerturber &)
Copy Constructor.
SmartPtr< Vector > pert_dir_
pointer to the perturbation vector
PointPerturber(const Vector &reference_point, Number random_pert_radius, const Matrix &Px_L, const Vector &x_L, const Matrix &Px_U, const Vector &x_U)
SmartPtr< Vector > MakeNewPerturbedPoint() const
Return a new perturbed point.
void operator=(const PointPerturber &)
Overloaded Equals Operator.
ReferencedObject class.
Template class for Smart Pointers.
This is a base class for many standard scaling techniques.
Vector Base Class.
Definition IpVector.hpp:48
double Number
Type of all numbers.
Definition IpTypes.hpp:17