Go to the documentation of this file.
7 #ifndef __IPCGPERTURBATIONHANDLER_HPP__
8 #define __IPCGPERTURBATIONHANDLER_HPP__
41 const std::string& prefix
DegenType hess_degenerate_
Flag indicating whether the reduced Hessian matrix is thought to be structurally singular.
bool perturb_always_cd_
Flag indicating that the delta_c, delta_d perturbation should always be used.
Number delta_x_curr_
The current value for delta_x.
IpoptCalculatedQuantities & IpCq() const
@ TEST_DELTA_C_EQ_0_DELTA_X_GT_0
Class for handling the perturbation factors delta_x, delta_s, delta_c, and delta_d in the primal dual...
void finalize_test()
This method is call whenever a matrix had been factorization and is not singular.
@ TEST_DELTA_C_GT_0_DELTA_X_GT_0
Number delta_xs_inc_fact_
Increase factor for delta_xs for later perturbations.
@ TEST_DELTA_C_EQ_0_DELTA_X_EQ_0
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 delta_x_last_
The last nonzero value for delta_x.
CGPenaltyCq & CGPenCq()
Method to easily access CGPenalty calculated quantities.
IpoptData & IpData() const
Number delta_xs_dec_fact_
Decrease factor for delta_xs for later perturbations.
Number delta_xs_min_
Smallest possible perturbation for x and s.
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm.
Number delta_s_curr_
The current value for delta_s.
bool PerturbForWrongInertia(Number &delta_x, Number &delta_s, Number &delta_c, Number &delta_d)
This method returns perturbation factors for the case when the most recent factorization resulted in ...
Index degen_iters_max_
Required number of iterations for degeneracy conclusions.
int Index
Type of all indices of vectors, matrices etc.
virtual ~CGPerturbationHandler()
Destructor.
Number delta_cd()
Compute perturbation value for constraints.
TrialStatus test_status_
Current status.
void operator=(const CGPerturbationHandler &)
Default Assignment Operator.
void CurrentPerturbation(Number &delta_x, Number &delta_s, Number &delta_c, Number &delta_d)
Just return the perturbation values that have been determined most recently.
Index degen_iters_
Flag counting matrices in which degeneracy was observed in the first successive iterations.
Template class for Smart Pointers.
Number delta_c_curr_
The current value for delta_c.
Number delta_s_last_
The last nonzero value for delta_s.
IpoptAdditionalData & AdditionalData()
Get access to additional data object.
Number delta_cd_exp_
Exponent on mu in formula for of perturbation for c and d blocks.
CGPenaltyData & CGPenData()
Method to easily access CGPenalty data.
bool get_deltas_for_wrong_inertia(Number &delta_x, Number &delta_s, Number &delta_c, Number &delta_d)
Internal version of PerturbForWrongInertia with the difference, that finalize_test is not called.
DegenType
Type for degeneracy flags.
CGPerturbationHandler()
Default Constructor.
Number delta_d_last_
The last nonzero value for delta_d.
TrialStatus
Status of current trial configuration.
Number delta_cd_val_
Size of perturbation for c and d blocks.
bool PerturbForSingularity(Number &delta_x, Number &delta_s, Number &delta_c, Number &delta_d)
This method returns perturbation factors for the case when the most recent factorization resulted in ...
IpoptAdditionalCq & AdditionalCq()
Number delta_xs_max_
Maximal perturbation for x and s.
Number delta_xs_first_inc_fact_
Increase factor for delta_xs for first required perturbation.
bool get_deltas_for_wrong_inertia_called_
Flag indicating if for the given matrix the perturbation for wrong inertia method has already been ca...
Number delta_d_curr_
The current value for delta_d.
bool reset_last_
Flag indicating whether the new values are based on the perturbations in the last iteration or in the...
Number delta_xs_init_
Very first trial value for delta_xs perturbation.
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
DegenType jac_degenerate_
Flag indicating whether the Jacobian of the constraints is thought to be structurally rank-deficient.
Number delta_c_last_
The last nonzero value for delta_c.
Class for handling the perturbation factors delta_x, delta_s, delta_c, and delta_d in the primal dual...
@ TEST_DELTA_C_GT_0_DELTA_X_EQ_0
This class stores a list of user set options.
Number penalty_max_
The max reference value for scaling the penalty parameter.
virtual bool InitializeImpl(const OptionsList &options, const std::string &prefix)
Implementation of the initialization method that has to be overloaded by for each derived class.
bool ConsiderNewSystem(Number &delta_x, Number &delta_s, Number &delta_c, Number &delta_d)
This method must be called for each new matrix, and before any other method for generating perturbati...
Class for all Chen-Goldfarb penalty method specific calculated quantities.
Number mult_diverg_feasibility_tol_
Feasibility for perturbation in pure Newton method.