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
286 debug_delta_cgpen_tag_ = delta_cgpen->GetTag();
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
305 debug_delta_cgpen_tag_ = delta_cgpen->GetTag();
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
324 debug_delta_cgfast_tag_ = delta_cgfast->GetTag();
325 debug_delta_cgfast_tag_sum_ = delta_cgfast->GetTagSum();
328 debug_delta_cgfast_tag_ = 0;
329 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)
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.
double Number
Type of all numbers.
SmartPtr< const IteratesVector > delta_cgfast() const
Delta for the fast Chen-Goldfarb search direction.
SmartPtr< const IteratesVector > delta_cgfast_
bool IsNull(const SmartPtr< U > &smart_ptr)
void SetHaveCgFastDeltas(bool have_cgfast_deltas)
Number curr_penalty() const
bool PenaltyInitialized() const
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)
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...
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_
void SetRestorCounter(Number restor_counter)
void SetPenaltyUninitialized()
int Index
Type of all indices of vectors, matrices etc.
void SetCurrPenaltyPert(Number curr_penalty_pert)
SmartPtr< const IteratesVector > delta_cgpen() const
Delta for the Chen-Goldfarb search direction.
void SetKKTPenaltyUninitialized()
bool KKTPenaltyInitialized() const
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...
unsigned int Tag
Type for the Tag values.
~CGPenaltyData()
Default destructor.
SmartPtr< const U > ConstPtr(const SmartPtr< U > &smart_ptr)
Number curr_kkt_penalty() const
bool HaveCgFastDeltas() const
Class responsible for all message output.
bool InitializeDataStructures()
Initialize Data Structures.
bool HaveCgPenDeltas() const
void SetNeverTryPureNewton(bool never_try_pure_Newton)
bool penalty_initialized_
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 &)
Overloaded Equals Operator.
void Set_kkt_penalty(Number kkt_penalty)
CGPenaltyData()
Constructor.