8 #ifndef __IPCGPENALTYDATA_HPP__ 9 #define __IPCGPENALTYDATA_HPP__ 41 const std::string& prefix);
96 bool have_cgpen_deltas
108 bool have_cgfast_deltas
133 bool never_try_pure_Newton
307 #if IPOPT_CHECKLEVEL > 0 341 #if IPOPT_CHECKLEVEL > 0 346 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
350 debug_delta_cgpen_tag_ = 0;
351 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
364 #if IPOPT_CHECKLEVEL > 0 369 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
373 debug_delta_cgpen_tag_ = 0;
374 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
387 #if IPOPT_CHECKLEVEL > 0 392 debug_delta_cgfast_tag_sum_ =
delta_cgfast->GetTagSum();
396 debug_delta_cgfast_tag_ = 0;
397 debug_delta_cgfast_tag_sum_ =
delta_cgfast->GetTagSum();
bool initialize_called_
flag indicating if Initialize method has been called (for debugging)
bool IsValid(const SmartPtr< U > &smart_ptr)
bool never_try_pure_Newton_
Flag indicating whether the pure Newton method is used.
void SetPrimalStepSize(Number max_alpha_x)
SmartPtr< const IteratesVector > delta_cgpen() const
Delta for the Chen-Goldfarb search direction.
void SetRestorIter(Index restor_iter)
bool Initialize(const Journalist &jnlst, const OptionsList &options, const std::string &prefix)
This method must be called to initialize the global algorithmic parameters.
bool kkt_penalty_initialized_
void AcceptTrialPoint()
Set the current iterate values from the trial values.
SmartPtr< const IteratesVector > delta_cgfast_
bool IsNull(const SmartPtr< U > &smart_ptr)
bool HaveCgFastDeltas() const
Number curr_penalty() const
ipindex Index
Type of all indices of vectors, matrices etc.
void SetHaveCgFastDeltas(bool have_cgfast_deltas)
bool KKTPenaltyInitialized() const
bool HaveCgPenDeltas() const
This file contains a base class for all exceptions and a set of macros to help with exceptions...
SmartPtr< const IteratesVector > delta_cgfast() const
Delta for the fast Chen-Goldfarb search direction.
Template class for Smart Pointers.
This class stores a list of user set options.
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm...
Index NeverTryPureNewton()
Number curr_penalty_pert_
void Set_penalty(Number penalty)
Number curr_kkt_penalty() const
void set_delta_cgfast(SmartPtr< IteratesVector > &delta_fast)
Set the delta_cgfast.
bool have_cgpen_deltas_
The following flag is set to true, if some other part of the algorithm has already computed the Chen-...
SmartPtr< const IteratesVector > delta_cgpen_
ipnumber Number
Type of all numbers.
void SetRestorCounter(Number restor_counter)
void SetPenaltyUninitialized()
void SetCurrPenaltyPert(Number curr_penalty_pert)
void SetKKTPenaltyUninitialized()
void set_delta_cgpen(SmartPtr< IteratesVector > &delta_pen)
Set the delta_cgpen.
unsigned int Tag
Type for the Tag values.
~CGPenaltyData()
Destructor.
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
Class responsible for all message output.
bool InitializeDataStructures()
Initialize Data Structures.
void SetNeverTryPureNewton(bool never_try_pure_Newton)
bool penalty_initialized_
bool PenaltyInitialized() const
Index restor_iter_
The iteration at which pure Newton method is given up.
bool have_cgfast_deltas_
The following flag is set to true, if some other part of the algorithm has already computed the fast ...
void SetHaveCgPenDeltas(bool have_cgpen_deltas)
Base class for additional data that is special to a particular type of algorithm, such as the CG pena...
void operator=(const CGPenaltyData &)
Default Assignment Operator.
void Set_kkt_penalty(Number kkt_penalty)
CGPenaltyData()
Constructor.