inline SmartPtr<const IteratesVector> CGPenaltyData::delta_cgfast() const { DBG_ASSERT(IsNull(delta_cgfast_) || (delta_cgfast_->GetTag() == debug_delta_cgfast_tag_ && delta_cgfast_->GetTagSum() == debug_delta_cgfast_tag_sum_) ); return delta_cgfast_; }
inline SmartPtr<const IteratesVector> IpoptData::delta_aff() const { DBG_ASSERT(IsNull(delta_aff_) || (delta_aff_->GetTag() == debug_delta_aff_tag_ && delta_aff_->GetTagSum() == debug_delta_aff_tag_sum_) ); return delta_aff_; }
inline SmartPtr<const IteratesVector> IpoptData::trial() const { DBG_ASSERT(IsNull(trial_) || (trial_->GetTag() == debug_trial_tag_ && trial_->GetTagSum() == debug_trial_tag_sum_) ); return trial_; }
inline SmartPtr<const IteratesVector> IpoptData::curr() const { DBG_ASSERT(IsNull(curr_) || (curr_->GetTag() == debug_curr_tag_ && curr_->GetTagSum() == debug_curr_tag_sum_) ); return curr_; }
inline void IpoptData::CopyTrialToCurrent() { curr_ = trial_; #if COIN_IPOPT_CHECKLEVEL > 0 if (IsValid(curr_)) { debug_curr_tag_ = curr_->GetTag(); debug_curr_tag_sum_ = curr_->GetTagSum(); } else { debug_curr_tag_ = TaggedObject::Tag(); debug_curr_tag_sum_ = TaggedObject::Tag(); } #endif }
inline void CGPenaltyData::set_delta_cgfast(SmartPtr<IteratesVector>& delta_cgfast) { delta_cgfast_ = ConstPtr(delta_cgfast); #if COIN_IPOPT_CHECKLEVEL > 0 if (IsValid(delta_cgfast)) { debug_delta_cgfast_tag_ = delta_cgfast->GetTag(); debug_delta_cgfast_tag_sum_ = delta_cgfast->GetTagSum(); } else { debug_delta_cgfast_tag_ = 0; debug_delta_cgfast_tag_sum_ = delta_cgfast->GetTagSum(); } #endif delta_cgfast = NULL; }
inline void CGPenaltyData::set_delta_cgpen(SmartPtr<const IteratesVector>& delta_cgpen) { delta_cgpen_ = delta_cgpen; #if COIN_IPOPT_CHECKLEVEL > 0 if (IsValid(delta_cgpen)) { debug_delta_cgpen_tag_ = delta_cgpen->GetTag(); debug_delta_cgpen_tag_sum_ = delta_cgpen->GetTagSum(); } else { debug_delta_cgpen_tag_ = 0; debug_delta_cgpen_tag_sum_ = delta_cgpen->GetTagSum(); } #endif delta_cgpen = NULL; }
inline void IpoptData::set_delta_aff(SmartPtr<IteratesVector>& delta_aff) { delta_aff_ = ConstPtr(delta_aff); #if COIN_IPOPT_CHECKLEVEL > 0 if (IsValid(delta_aff)) { debug_delta_aff_tag_ = delta_aff->GetTag(); debug_delta_aff_tag_sum_ = delta_aff->GetTagSum(); } else { debug_delta_aff_tag_ = TaggedObject::Tag(); debug_delta_aff_tag_sum_ = delta_aff->GetTagSum(); } #endif delta_aff = NULL; }
inline void IpoptData::set_delta(SmartPtr<const IteratesVector>& delta) { delta_ = delta; #if COIN_IPOPT_CHECKLEVEL > 0 if (IsValid(delta)) { debug_delta_tag_ = delta->GetTag(); debug_delta_tag_sum_ = delta->GetTagSum(); } else { debug_delta_tag_ = TaggedObject::Tag(); debug_delta_tag_sum_ = TaggedObject::Tag(); } #endif delta = NULL; }
inline void IpoptData::set_trial(SmartPtr<IteratesVector>& trial) { trial_ = ConstPtr(trial); #if COIN_IPOPT_CHECKLEVEL > 0 // verify the correct space DBG_ASSERT(trial_->OwnerSpace() == (VectorSpace*)GetRawPtr(iterates_space_)); if (IsValid(trial)) { debug_trial_tag_ = trial->GetTag(); debug_trial_tag_sum_ = trial->GetTagSum(); } else { debug_trial_tag_ = TaggedObject::Tag(); debug_trial_tag_sum_ = TaggedObject::Tag(); } #endif trial = NULL; }