Ipopt 3.11.9
Loading...
Searching...
No Matches
IpUserScaling.hpp
Go to the documentation of this file.
1// Copyright (C) 2005, 2007 International Business Machines and others.
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// $Id: IpUserScaling.hpp 1861 2010-12-21 21:34:47Z andreasw $
6//
7// Authors: Carl Laird, Andreas Waechter IBM 2005-06-25
8
9#ifndef __IPUSERSCALING_HPP__
10#define __IPUSERSCALING_HPP__
11
12#include "IpNLPScaling.hpp"
13#include "IpNLP.hpp"
14
15namespace Ipopt
16{
21 {
22 public:
26 :
28 nlp_(nlp)
29 {}
30
32 virtual ~UserScaling()
33 {}
35
36 protected:
38 const SmartPtr<const VectorSpace> x_space,
39 const SmartPtr<const VectorSpace> c_space,
40 const SmartPtr<const VectorSpace> d_space,
41 const SmartPtr<const MatrixSpace> jac_c_space,
42 const SmartPtr<const MatrixSpace> jac_d_space,
44 const Matrix& Px_L, const Vector& x_L,
45 const Matrix& Px_U, const Vector& x_U,
46 Number& df,
50
51 private:
52
61
64
66 void operator=(const UserScaling&);
68
71 };
72} // namespace Ipopt
73#endif
Number * x_L
Lower bounds on variables.
Number Number * x_U
Upper bounds on variables.
Matrix Base Class.
Definition IpMatrix.hpp:28
Template class for Smart Pointers.
This is a base class for many standard scaling techniques.
This class does problem scaling by getting scaling parameters from the user (through the NLP interfac...
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...
SmartPtr< const NLP > nlp_
pointer to the NLP to get scaling parameters
virtual ~UserScaling()
Default destructor.
UserScaling(const SmartPtr< const NLP > &nlp)
UserScaling(const UserScaling &)
Copy Constructor.
void operator=(const UserScaling &)
Overloaded Equals Operator.
Vector Base Class.
Definition IpVector.hpp:48
double Number
Type of all numbers.
Definition IpTypes.hpp:17