Go to the documentation of this file.
10 #ifndef __IPCGPENALTYDATA_HPP__
11 #define __IPCGPENALTYDATA_HPP__
39 const std::string& prefix);
249 #if COIN_IPOPT_CHECKLEVEL > 0
283 #if COIN_IPOPT_CHECKLEVEL > 0
287 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
290 debug_delta_cgpen_tag_ = 0;
291 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
302 #if COIN_IPOPT_CHECKLEVEL > 0
306 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
309 debug_delta_cgpen_tag_ = 0;
310 debug_delta_cgpen_tag_sum_ =
delta_cgpen->GetTagSum();
321 #if COIN_IPOPT_CHECKLEVEL > 0
325 debug_delta_cgfast_tag_sum_ =
delta_cgfast->GetTagSum();
328 debug_delta_cgfast_tag_ = 0;
329 debug_delta_cgfast_tag_sum_ =
delta_cgfast->GetTagSum();
void SetKKTPenaltyUninitialized()
bool HaveCgPenDeltas() const
~CGPenaltyData()
Default destructor.
bool HaveCgFastDeltas() const
bool PenaltyInitialized() const
bool InitializeDataStructures()
Initialize Data Structures.
void set_delta_cgpen(SmartPtr< IteratesVector > &delta_pen)
Set the delta_cgpen - like the trial point, this method copies the pointer for efficiency (no copy an...
Index restor_iter_
The iteration at which pure Newton method is given up.
bool penalty_initialized_
double Number
Type of all numbers.
CGPenaltyData()
Constructor.
Class to organize all the additional data required by the Chen-Goldfarb penalty function algorithm.
bool never_try_pure_Newton_
Flag indicating whether the pure Newton method is used.
void SetRestorIter(Index restor_iter)
Number curr_kkt_penalty() const
SmartPtr< const IteratesVector > delta_cgpen_
int Index
Type of all indices of vectors, matrices etc.
bool Initialize(const Journalist &jnlst, const OptionsList &options, const std::string &prefix)
This method must be called to initialize the global algorithmic parameters.
Base class for additional data that is special to a particular type of algorithm, such as the CG pena...
Template class for Smart Pointers.
bool initialize_called_
flag indicating if Initialize method has been called (for debugging)
void operator=(const CGPenaltyData &)
Overloaded Equals Operator.
Index NeverTryPureNewton()
void Set_kkt_penalty(Number kkt_penalty)
SmartPtr< const IteratesVector > delta_cgfast_
bool kkt_penalty_initialized_
void Set_penalty(Number penalty)
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
Class responsible for all message output.
void SetHaveCgPenDeltas(bool have_cgpen_deltas)
bool have_cgfast_deltas_
The following flag is set to true, if some other part of the algorithm has already computed the fast ...
void set_delta_cgfast(SmartPtr< IteratesVector > &delta_fast)
Set the delta_cgpen - like the trial point, this method copies the pointer for efficiency (no copy an...
Number curr_penalty_pert_
void SetPrimalStepSize(Number max_alpha_x)
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_cgfast() const
Delta for the fast Chen-Goldfarb search direction.
bool IsValid(const SmartPtr< U > &smart_ptr)
void SetPenaltyUninitialized()
unsigned int Tag
Type for the Tag values.
void SetHaveCgFastDeltas(bool have_cgfast_deltas)
bool IsNull(const SmartPtr< U > &smart_ptr)
bool KKTPenaltyInitialized() const
void SetRestorCounter(Number restor_counter)
This class stores a list of user set options.
void AcceptTrialPoint()
Set the current iterate values from the trial values.
SmartPtr< const IteratesVector > delta_cgpen() const
Delta for the Chen-Goldfarb search direction.
void SetNeverTryPureNewton(bool never_try_pure_Newton)
Number curr_penalty() const
void SetCurrPenaltyPert(Number curr_penalty_pert)