Ipopt Documentation  
IpIpoptCalculatedQuantities.hpp
Go to the documentation of this file.
1 // Copyright (C) 2004, 2011 International Business Machines and others.
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
6 
7 #ifndef __IPIPOPTCALCULATEDQUANTITIES_HPP__
8 #define __IPIPOPTCALCULATEDQUANTITIES_HPP__
9 
10 #include "IpSmartPtr.hpp"
11 #include "IpCachedResults.hpp"
12 #include "IpIpoptData.hpp"
13 #include "IpSymMatrix.hpp"
14 #include "IpRegOptions.hpp"
15 
16 #include <string>
17 
18 namespace Ipopt
19 {
20 class IpoptNLP;
21 class Journalist;
22 class OptionsList;
23 
26 {
27  NORM_1 = 0,
29  NORM_MAX
30 };
31 
40 {
41 public:
43 
46  { }
47 
50  { }
52 
58  virtual bool Initialize(
59  const Journalist& jnlst,
60  const OptionsList& options,
61  const std::string& prefix
62  ) = 0;
63 
64 private:
74 
77  const IpoptAdditionalCq&);
78 
80  void operator=(
81  const IpoptAdditionalCq&);
83 };
84 
87 {
88 public:
89 
91 
94  const SmartPtr<IpoptNLP>& ip_nlp,
95  const SmartPtr<IpoptData>& ip_data
96  );
100 
106  void SetAddCq(
108  )
109  {
110  // cppcheck-suppress assertWithSideEffect
111  DBG_ASSERT(!HaveAddCq());
112  add_cq_ = add_cq;
113  }
114 
118  bool HaveAddCq()
119  {
120  return IsValid(add_cq_);
121  }
122 
129  const Journalist& jnlst,
130  const OptionsList& options,
131  const std::string& prefix
132  );
133 
135 
157 
159 
161  virtual Number curr_f();
165  virtual Number trial_f();
173 
175 
184 
193 
199 
201 
232  const Vector& vec
233  );
238  const Vector& vec
239  );
244  const Vector& vec
245  );
250  const Vector& vec
251  );
272  const Vector& vec
273  );
278  const Vector& vec
279  );
304  ENormType NormType
305  );
312  ENormType NormType
313  );
320  ENormType NormType
321  );
323 
327 
335  const Vector& x
336  );
344  const Vector& x
345  );
366  ENormType NormType
367  );
368 
376  const Vector& x
377  );
385  const Vector& x
386  );
407  ENormType NormType
408  );
410 
412 
416 
418 
459 
462  ENormType NormType
463  );
466  ENormType NormType
467  );
468 
471  ENormType NormType
472  );
475  ENormType NormType
476  );
479  ENormType NormType
480  );
481 
486  Number mu,
487  ENormType NormType
488  );
493  Number mu,
494  ENormType NormType
495  );
500  Number mu,
501  ENormType NormType
502  );
503 
506  const Vector& compl_x_L,
507  const Vector& compl_x_U,
508  const Vector& compl_s_L,
509  const Vector& compl_s_U
510  );
513 
529 
534 
543  Number mu
544  );
553  Number mu
554  );
556 
558 
563  Number tau,
564  const Vector& delta_x,
565  const Vector& delta_s
566  );
571  Number tau
572  );
577  Number tau,
578  const Vector& delta_z_L,
579  const Vector& delta_z_U,
580  const Vector& delta_v_L,
581  const Vector& delta_v_U
582  );
587  Number tau,
588  const Vector& delta_z_L,
589  const Vector& delta_z_U,
590  const Vector& delta_v_L,
591  const Vector& delta_v_U
592  );
597  Number tau
598  );
610  Number tau,
611  const Vector& delta_x_L,
612  const Vector& delta_x_U,
613  const Vector& delta_s_L,
614  const Vector& delta_s_U
615  );
617 
619  SmartPtr<const Vector> curr_sigma_x();
623 
628 
633 
635  Number
637  ENormType NormType,
638  std::vector<SmartPtr<const Vector> > vecs
639  );
640 
642  Number
644  ENormType NormType,
645  const Vector& vec1,
646  const Vector& vec2
647  );
648 
651  {
652  return constr_viol_normtype_;
653  }
654 
656  bool IsSquareProblem() const;
657 
663  {
664  return ip_nlp_;
665  }
666 
668  {
669  DBG_ASSERT(IsValid(add_cq_));
670  return *add_cq_;
671  }
672 
674  static void RegisterOptions(
676  );
677 
678 private:
688 
691 
695  );
696 
698  void operator=(
700  );
702 
704 
712 
718 
738 
740  CachedResults<SmartPtr<Vector> > curr_slack_x_L_cache_;
754 
756  CachedResults<Number> curr_f_cache_;
762 
764  CachedResults<Number> curr_barrier_obj_cache_;
772 
774  CachedResults<SmartPtr<const Vector> > curr_c_cache_;
797 
800 
802  CachedResults<SmartPtr<const Vector> > curr_grad_lag_x_cache_;
835 
837  CachedResults<std::pair<SmartPtr<Vector>, SmartPtr<Vector> > > unscaled_curr_orig_x_LU_viol_cache_;
844 
846  CachedResults<Number> primal_frac_to_the_bound_cache_;
850 
852  CachedResults<SmartPtr<const Vector> > curr_sigma_x_cache_;
856 
861 
864 
867 
885 
891  SmartPtr<Vector> tmp_x_;
900 
911 
916 
918 
923  const Matrix& P,
924  const Vector& x,
925  const Vector& x_bound
926  );
931  const Matrix& P,
932  const Vector& x,
933  const Vector& x_bound
934  );
939  Number mu,
940  const Vector& slack_x_L,
941  const Vector& slack_x_U,
942  const Vector& slack_s_L,
943  const Vector& slack_s_U
944  );
945 
948  const Vector& slack,
949  const Vector& mult
950  );
951 
954  const Vector& slack_L,
955  Vector& tmp_L,
956  const Matrix& P_L,
957  const Vector& slack_U,
958  Vector& tmp_U,
959  const Matrix& P_U,
960  const Vector& delta,
961  Number tau
962  );
963 
966  const Vector& y_c,
967  const Vector& y_d,
968  const Vector& z_L,
969  const Vector& z_U,
970  const Vector& v_L,
971  const Vector& v_U,
972  Number s_max,
973  Number& s_d,
974  Number& s_c
975  );
976 
984  SmartPtr<Vector>& slack,
985  const SmartPtr<const Vector>& bound,
986  const SmartPtr<const Vector>& curr_point,
987  const SmartPtr<const Vector>& multiplier
988  );
989 
998  SmartPtr<const Vector>& dampind_x_L,
999  SmartPtr<const Vector>& dampind_x_U,
1000  SmartPtr<const Vector>& dampind_s_L,
1001  SmartPtr<const Vector>& dampind_s_U
1002  );
1003 
1005 };
1006 
1007 } // namespace Ipopt
1008 
1009 #endif
Ipopt::IpoptCalculatedQuantities::IsSquareProblem
bool IsSquareProblem() const
Method returning true if this is a square problem.
Ipopt::IpoptCalculatedQuantities::trial_f
virtual Number trial_f()
Value of objective function (at trial point)
Ipopt::IpoptCalculatedQuantities::Tmp_s
Vector & Tmp_s()
Ipopt::IpoptCalculatedQuantities::curr_constraint_violation
virtual Number curr_constraint_violation()
Constraint Violation (at current iterate).
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_with_damping_s_cache_
CachedResults< SmartPtr< const Vector > > curr_grad_lag_with_damping_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:808
Ipopt::IpoptCalculatedQuantities::curr_primal_infeasibility
virtual Number curr_primal_infeasibility(ENormType NormType)
Primal infeasibility in a given norm (at current iterate).
Ipopt::IpoptCalculatedQuantities::curr_jac_cT_times_curr_y_c
SmartPtr< const Vector > curr_jac_cT_times_curr_y_c()
Product of Jacobian (evaluated at current point) of C transpose with current y_c.
Ipopt::IpoptCalculatedQuantities::trial_jac_d_cache_
CachedResults< SmartPtr< const Matrix > > trial_jac_d_cache_
Definition: IpIpoptCalculatedQuantities.hpp:784
Ipopt::IpoptCalculatedQuantities::trial_primal_infeasibility_cache_
CachedResults< Number > trial_primal_infeasibility_cache_
Definition: IpIpoptCalculatedQuantities.hpp:822
Ipopt::IpoptCalculatedQuantities::dampind_s_U_
SmartPtr< Vector > dampind_s_U_
Indicator vector for selecting the elements in s that have only upper bounds.
Definition: IpIpoptCalculatedQuantities.hpp:883
Ipopt::IpoptCalculatedQuantities::trial_compl_x_L_cache_
CachedResults< SmartPtr< const Vector > > trial_compl_x_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:813
Ipopt::IpoptCalculatedQuantities::curr_dual_infeasibility
virtual Number curr_dual_infeasibility(ENormType NormType)
Dual infeasibility in a given norm (at current iterate)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_dual_infeasibility_cache_
CachedResults< Number > unscaled_curr_dual_infeasibility_cache_
Definition: IpIpoptCalculatedQuantities.hpp:825
Ipopt::IpoptCalculatedQuantities::unscaled_curr_orig_bounds_viol_cache_
CachedResults< Number > unscaled_curr_orig_bounds_viol_cache_
Definition: IpIpoptCalculatedQuantities.hpp:839
Ipopt::IpoptCalculatedQuantities::trial_f_cache_
CachedResults< Number > trial_f_cache_
Definition: IpIpoptCalculatedQuantities.hpp:758
Ipopt::IpoptAdditionalCq::Initialize
virtual bool Initialize(const Journalist &jnlst, const OptionsList &options, const std::string &prefix)=0
This method is called to initialize the global algorithmic parameters.
Ipopt::IpoptCalculatedQuantities::trial_grad_lag_s_cache_
CachedResults< SmartPtr< const Vector > > trial_grad_lag_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:806
Ipopt::IpoptCalculatedQuantities::trial_jac_cT_times_vec_cache_
CachedResults< SmartPtr< const Vector > > trial_jac_cT_times_vec_cache_
Definition: IpIpoptCalculatedQuantities.hpp:786
Ipopt::IpoptCalculatedQuantities::curr_nlp_error_cache_
CachedResults< Number > curr_nlp_error_cache_
Definition: IpIpoptCalculatedQuantities.hpp:829
Ipopt::IpoptCalculatedQuantities::trial_d_minus_s
SmartPtr< const Vector > trial_d_minus_s()
d(x) - s (at trial point)
Ipopt::IpoptCalculatedQuantities::curr_grad_f
SmartPtr< const Vector > curr_grad_f()
Gradient of objective function (at current point)
Ipopt::IpoptCalculatedQuantities::trial_slack_x_L
SmartPtr< const Vector > trial_slack_x_L()
Slacks for x_L (at trial point)
Ipopt::IpoptCalculatedQuantities::ip_nlp_
SmartPtr< IpoptNLP > ip_nlp_
Ipopt NLP object.
Definition: IpIpoptCalculatedQuantities.hpp:706
Ipopt::IpoptCalculatedQuantities::IpoptCalculatedQuantities
IpoptCalculatedQuantities()
Default Constructor.
Ipopt::IpoptCalculatedQuantities::RegisterOptions
static void RegisterOptions(SmartPtr< RegisteredOptions > roptions)
Called by IpoptType to register the options.
Ipopt::IpoptCalculatedQuantities::curr_slack_x_L
SmartPtr< const Vector > curr_slack_x_L()
Slacks for x_L (at current iterate)
Ipopt::IpoptCalculatedQuantities::dual_frac_to_the_bound
Number dual_frac_to_the_bound(Number tau, const Vector &delta_z_L, const Vector &delta_z_U, const Vector &delta_v_L, const Vector &delta_v_U)
Fraction to the boundary from (current) dual variables z and v for a given step.
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_with_damping_s
SmartPtr< const Vector > curr_grad_lag_with_damping_s()
s-part of gradient of Lagrangian function (at current point) including linear damping term
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_x_U_cache_
CachedResults< SmartPtr< const Vector > > curr_relaxed_compl_x_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:818
Ipopt::IpoptCalculatedQuantities::unscaled_trial_nlp_constraint_violation_cache_
CachedResults< Number > unscaled_trial_nlp_constraint_violation_cache_
Definition: IpIpoptCalculatedQuantities.hpp:795
Ipopt::IpoptCalculatedQuantities::curr_compl_x_L
SmartPtr< const Vector > curr_compl_x_L()
Complementarity for x_L (for current iterate)
Ipopt::IpoptCalculatedQuantities::unscaled_orig_x_U_violation
SmartPtr< Vector > unscaled_orig_x_U_violation(const Vector &x)
Violation of original variable upper bounds x_U.
Ipopt::IpoptCalculatedQuantities::trial_d_cache_
CachedResults< SmartPtr< const Vector > > trial_d_cache_
Definition: IpIpoptCalculatedQuantities.hpp:778
Ipopt::NORM_2
@ NORM_2
Definition: IpIpoptCalculatedQuantities.hpp:28
Ipopt::IpoptAdditionalCq::IpoptAdditionalCq
IpoptAdditionalCq()
Default Constructor.
Definition: IpIpoptCalculatedQuantities.hpp:45
Ipopt::IpoptCalculatedQuantities::mu_target_
Number mu_target_
Desired value of the barrier parameter.
Definition: IpIpoptCalculatedQuantities.hpp:736
Ipopt::IpoptCalculatedQuantities::curr_d_minus_s
SmartPtr< const Vector > curr_d_minus_s()
d(x) - s (at current point)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_nlp_constraint_violation
virtual Number unscaled_curr_nlp_constraint_violation(ENormType NormType)
Unscaled real constraint violation in a given norm (at current iterate).
IpCachedResults.hpp
Ipopt::IpoptCalculatedQuantities::trial_barrier_obj
virtual Number trial_barrier_obj()
Barrier Objective Function Value (at trial point with current mu)
Ipopt::IpoptCalculatedQuantities::curr_slack_s_L
SmartPtr< const Vector > curr_slack_s_L()
Slacks for s_L (at current iterate)
Ipopt::IpoptCalculatedQuantities::num_adjusted_slack_s_L_
Index num_adjusted_slack_s_L_
Definition: IpIpoptCalculatedQuantities.hpp:751
Ipopt::IpoptCalculatedQuantities::trial_complementarity
virtual Number trial_complementarity(Number mu, ENormType NormType)
Complementarity (for all complementarity conditions together) in a given norm (at trial iterate)
Ipopt::IpoptCalculatedQuantities::uncached_slack_frac_to_the_bound
Number uncached_slack_frac_to_the_bound(Number tau, const Vector &delta_x_L, const Vector &delta_x_U, const Vector &delta_s_L, const Vector &delta_s_U)
Fraction to the boundary from (current) slacks for a given step in the slacks.
Ipopt::IpoptCalculatedQuantities::Tmp_s_L
Vector & Tmp_s_L()
Ipopt::IpoptCalculatedQuantities::orig_x_L_violation
SmartPtr< Vector > orig_x_L_violation(const Vector &x)
Violation of scaled original variable lower bounds x_L.
Ipopt::IpoptCalculatedQuantities::s_max_
Number s_max_
Parameter in formula for computing overall primal-dual optimality error.
Definition: IpIpoptCalculatedQuantities.hpp:722
Ipopt::IpoptCalculatedQuantities::dual_frac_to_the_bound_cache_
CachedResults< Number > dual_frac_to_the_bound_cache_
Definition: IpIpoptCalculatedQuantities.hpp:848
IpRegOptions.hpp
Ipopt::IpoptCalculatedQuantities::curr_centrality_measure
virtual Number curr_centrality_measure()
Centrality measure at current point.
Ipopt::IpoptCalculatedQuantities::curr_compl_x_L_cache_
CachedResults< SmartPtr< const Vector > > curr_compl_x_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:809
Ipopt::IpoptCalculatedQuantities::CalculateSafeSlack
Index CalculateSafeSlack(SmartPtr< Vector > &slack, const SmartPtr< const Vector > &bound, const SmartPtr< const Vector > &curr_point, const SmartPtr< const Vector > &multiplier)
Check if slacks are becoming too small.
Ipopt::IpoptCalculatedQuantities::Tmp_d
Vector & Tmp_d()
Ipopt::IpoptCalculatedQuantities::Tmp_x
Vector & Tmp_x()
Accessor methods for the temporary vectors.
Ipopt::IpoptCalculatedQuantities::trial_compl_x_L
SmartPtr< const Vector > trial_compl_x_L()
Complementarity for x_L (for trial iterate)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_nlp_error
virtual Number unscaled_curr_nlp_error()
Total optimality error for the original NLP at the current iterate, but using no scaling based on mul...
Ipopt::IpoptCalculatedQuantities::trial_barrier_obj_cache_
CachedResults< Number > trial_barrier_obj_cache_
Definition: IpIpoptCalculatedQuantities.hpp:766
Ipopt::IpoptCalculatedQuantities
Class for all IPOPT specific calculated quantities.
Definition: IpIpoptCalculatedQuantities.hpp:87
Ipopt::IpoptCalculatedQuantities::trial_jac_c_cache_
CachedResults< SmartPtr< const Matrix > > trial_jac_c_cache_
Definition: IpIpoptCalculatedQuantities.hpp:782
Ipopt::IpoptCalculatedQuantities::trial_constraint_violation_cache_
CachedResults< Number > trial_constraint_violation_cache_
Definition: IpIpoptCalculatedQuantities.hpp:792
Ipopt::IpoptCalculatedQuantities::curr_f
virtual Number curr_f()
Value of objective function (at current point)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_nlp_constraint_violation_cache_
CachedResults< Number > unscaled_curr_nlp_constraint_violation_cache_
Definition: IpIpoptCalculatedQuantities.hpp:794
Ipopt::IpoptCalculatedQuantities::curr_jac_c
SmartPtr< const Matrix > curr_jac_c()
Jacobian of c (at current point)
Ipopt::IpoptCalculatedQuantities::trial_compl_x_U
SmartPtr< const Vector > trial_compl_x_U()
Complementarity for x_U (for trial iterate)
IpSmartPtr.hpp
Ipopt::IpoptCalculatedQuantities::curr_jac_dT_times_vec
SmartPtr< const Vector > curr_jac_dT_times_vec(const Vector &vec)
Product of Jacobian (evaluated at current point) of D transpose with general vector.
Ipopt::IpoptCalculatedQuantities::trial_grad_lag_x
SmartPtr< const Vector > trial_grad_lag_x()
x-part of gradient of Lagrangian function (at trial point)
Ipopt::IpoptCalculatedQuantities::num_adjusted_slack_s_U_
Index num_adjusted_slack_s_U_
Definition: IpIpoptCalculatedQuantities.hpp:752
Ipopt::IpoptCalculatedQuantities::curr_complementarity_cache_
CachedResults< Number > curr_complementarity_cache_
Definition: IpIpoptCalculatedQuantities.hpp:826
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_s_U
SmartPtr< const Vector > curr_relaxed_compl_s_U()
Relaxed complementarity for s_U (for current iterate and current mu)
Ipopt::IpoptCalculatedQuantities::curr_exact_hessian
SmartPtr< const SymMatrix > curr_exact_hessian()
exact Hessian at current iterate (uncached)
Ipopt::IpoptCalculatedQuantities::unscaled_orig_x_L_violation
SmartPtr< Vector > unscaled_orig_x_L_violation(const Vector &x)
Violation of original variable lower bounds x_L.
Ipopt::IpoptCalculatedQuantities::curr_compl_s_L_cache_
CachedResults< SmartPtr< const Vector > > curr_compl_s_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:811
Ipopt::IpoptCalculatedQuantities::curr_nlp_constraint_violation
virtual Number curr_nlp_constraint_violation(ENormType NormType)
Real constraint violation in a given norm (at current iterate).
Ipopt::IpoptCalculatedQuantities::grad_kappa_times_damping_s_cache_
CachedResults< SmartPtr< const Vector > > grad_kappa_times_damping_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:770
Ipopt::IpoptCalculatedQuantities::dampind_s_L_
SmartPtr< Vector > dampind_s_L_
Indicator vector for selecting the elements in s that have only lower bounds.
Definition: IpIpoptCalculatedQuantities.hpp:879
Ipopt
This file contains a base class for all exceptions and a set of macros to help with exceptions.
Definition: IpInexactAlgBuilder.hpp:14
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_x_L
SmartPtr< const Vector > curr_relaxed_compl_x_L()
Relaxed complementarity for x_L (for current iterate and current mu)
Ipopt::IpoptCalculatedQuantities::grad_kappa_times_damping_x
SmartPtr< const Vector > grad_kappa_times_damping_x()
Gradient of the damping term with respect to x (times kappa_d)
Ipopt::Matrix
Matrix Base Class.
Definition: IpMatrix.hpp:28
Ipopt::IpoptCalculatedQuantities::num_adjusted_slack_x_U_
Index num_adjusted_slack_x_U_
Definition: IpIpoptCalculatedQuantities.hpp:750
Ipopt::IpoptCalculatedQuantities::IpoptCalculatedQuantities
IpoptCalculatedQuantities(const SmartPtr< IpoptNLP > &ip_nlp, const SmartPtr< IpoptData > &ip_data)
Constructor.
Ipopt::IpoptAdditionalCq::IpoptAdditionalCq
IpoptAdditionalCq(const IpoptAdditionalCq &)
Copy Constructor.
Ipopt::IpoptCalculatedQuantities::curr_nlp_error
virtual Number curr_nlp_error()
Total optimality error for the original NLP at the current iterate, using scaling factors based on mu...
Ipopt::IpoptCalculatedQuantities::Tmp_s_U
Vector & Tmp_s_U()
Ipopt::IpoptCalculatedQuantities::Tmp_x_U
Vector & Tmp_x_U()
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_s_L_cache_
CachedResults< SmartPtr< const Vector > > curr_relaxed_compl_s_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:819
Ipopt::IpoptCalculatedQuantities::unscaled_trial_nlp_constraint_violation
virtual Number unscaled_trial_nlp_constraint_violation(ENormType NormType)
Unscaled real constraint violation in a given norm (at trial iterate).
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_s_U_cache_
CachedResults< SmartPtr< const Vector > > curr_relaxed_compl_s_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:820
Ipopt::IpoptCalculatedQuantities::unscaled_curr_orig_x_U_violation
SmartPtr< const Vector > unscaled_curr_orig_x_U_violation()
Violation of original variable upper bounds x_U.
Ipopt::IpoptCalculatedQuantities::curr_d_minus_s_cache_
CachedResults< SmartPtr< const Vector > > curr_d_minus_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:779
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_with_damping_x_cache_
CachedResults< SmartPtr< const Vector > > curr_grad_lag_with_damping_x_cache_
Definition: IpIpoptCalculatedQuantities.hpp:807
Ipopt::IpoptCalculatedQuantities::curr_exact_hessian_cache_
CachedResults< SmartPtr< const SymMatrix > > curr_exact_hessian_cache_
Cache for the exact Hessian.
Definition: IpIpoptCalculatedQuantities.hpp:799
Ipopt::IpoptCalculatedQuantities::curr_jac_cT_times_vec
SmartPtr< const Vector > curr_jac_cT_times_vec(const Vector &vec)
Product of Jacobian (evaluated at current point) of C transpose with general vector.
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_x_L_cache_
CachedResults< SmartPtr< const Vector > > curr_relaxed_compl_x_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:817
Ipopt::IpoptCalculatedQuantities::curr_dual_infeasibility_cache_
CachedResults< Number > curr_dual_infeasibility_cache_
Definition: IpIpoptCalculatedQuantities.hpp:823
Ipopt::IpoptCalculatedQuantities::ComputeDampingIndicators
void ComputeDampingIndicators(SmartPtr< const Vector > &dampind_x_L, SmartPtr< const Vector > &dampind_x_U, SmartPtr< const Vector > &dampind_s_L, SmartPtr< const Vector > &dampind_s_U)
Computes the indicator vectors that can be used to filter out those entries in the slack_....
Ipopt::IpoptCalculatedQuantities::curr_avrg_compl_cache_
CachedResults< Number > curr_avrg_compl_cache_
Cache for average of current complementarity.
Definition: IpIpoptCalculatedQuantities.hpp:858
Ipopt::IpoptCalculatedQuantities::curr_c
SmartPtr< const Vector > curr_c()
c(x) (at current point)
Ipopt::IpoptCalculatedQuantities::CalcSlack_U
SmartPtr< Vector > CalcSlack_U(const Matrix &P, const Vector &x, const Vector &x_bound)
Compute new vector containing the slack to a upper bound (uncached)
Ipopt::IpoptCalculatedQuantities::constr_viol_normtype
ENormType constr_viol_normtype() const
Norm type used for calculating constraint violation.
Definition: IpIpoptCalculatedQuantities.hpp:650
Ipopt::IpoptCalculatedQuantities::curr_orig_x_U_violation
SmartPtr< const Vector > curr_orig_x_U_violation()
Violation of scaled original variable upper bounds x_U.
Ipopt::IpoptCalculatedQuantities::curr_gradBarrTDelta
Number curr_gradBarrTDelta()
inner_product of current barrier obj.
Ipopt::IpoptAdditionalCq
Base class for additional calculated quantities that is special to a particular type of algorithm,...
Definition: IpIpoptCalculatedQuantities.hpp:40
Ipopt::IpoptCalculatedQuantities::curr_gradBarrTDelta_cache_
CachedResults< Number > curr_gradBarrTDelta_cache_
Cache for grad barrier obj.
Definition: IpIpoptCalculatedQuantities.hpp:863
Ipopt::IpoptCalculatedQuantities::trial_grad_f
SmartPtr< const Vector > trial_grad_f()
Gradient of objective function (at trial point)
Ipopt::IpoptCalculatedQuantities::curr_jac_d
SmartPtr< const Matrix > curr_jac_d()
Jacobian of d (at current point)
IPOPTLIB_EXPORT
#define IPOPTLIB_EXPORT
Definition: config_default.h:10
Ipopt::IpoptCalculatedQuantities::trial_grad_lag_s
SmartPtr< const Vector > trial_grad_lag_s()
s-part of gradient of Lagrangian function (at trial point)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_orig_bounds_violation
virtual Number unscaled_curr_orig_bounds_violation(ENormType NormType)
Violation of (unscaled) original variable bounds.
Ipopt::IpoptCalculatedQuantities::tmp_s_L_
SmartPtr< Vector > tmp_s_L_
Definition: IpIpoptCalculatedQuantities.hpp:898
Ipopt::IpoptCalculatedQuantities::curr_primal_frac_to_the_bound
Number curr_primal_frac_to_the_bound(Number tau)
Fraction to the boundary from (current) primal variables x and s for internal (current) step.
Ipopt::IpoptCalculatedQuantities::ResetAdjustedTrialSlacks
void ResetAdjustedTrialSlacks()
Reset the flags for "fudged" slacks.
Ipopt::IpoptCalculatedQuantities::curr_jac_d_times_vec
SmartPtr< const Vector > curr_jac_d_times_vec(const Vector &vec)
Product of Jacobian (evaluated at current point) of D with general vector.
Ipopt::IpoptCalculatedQuantities::curr_barrier_error
virtual Number curr_barrier_error()
Total optimality error for the barrier problem at the current iterate, using scaling factors based on...
Ipopt::IpoptCalculatedQuantities::tmp_c_
SmartPtr< Vector > tmp_c_
Definition: IpIpoptCalculatedQuantities.hpp:894
Ipopt::IpoptCalculatedQuantities::trial_primal_infeasibility
virtual Number trial_primal_infeasibility(ENormType NormType)
Primal infeasibility in a given norm (at trial point)
Ipopt::IpoptCalculatedQuantities::primal_frac_to_the_bound
Number primal_frac_to_the_bound(Number tau, const Vector &delta_x, const Vector &delta_s)
Fraction to the boundary from (current) primal variables x and s for a given step.
Ipopt::IpoptCalculatedQuantities::CalcCentralityMeasure
Number CalcCentralityMeasure(const Vector &compl_x_L, const Vector &compl_x_U, const Vector &compl_s_L, const Vector &compl_s_U)
Centrality measure (in spirit of the -infinity-neighborhood.
Ipopt::IpoptCalculatedQuantities::trial_slack_s_L_cache_
CachedResults< SmartPtr< Vector > > trial_slack_s_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:747
Ipopt::IpoptCalculatedQuantities::trial_grad_f_cache_
CachedResults< SmartPtr< const Vector > > trial_grad_f_cache_
Definition: IpIpoptCalculatedQuantities.hpp:760
Ipopt::IpoptCalculatedQuantities::curr_slack_s_L_cache_
CachedResults< SmartPtr< Vector > > curr_slack_s_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:743
Ipopt::IpoptCalculatedQuantities::warm_start_same_structure_
bool warm_start_same_structure_
Flag indicating whether the TNLP with identical structure has already been solved before.
Definition: IpIpoptCalculatedQuantities.hpp:734
Ipopt::IpoptCalculatedQuantities::trial_constraint_violation
virtual Number trial_constraint_violation()
Constraint Violation (at trial point).
Ipopt::IpoptCalculatedQuantities::CalcNormOfType
Number CalcNormOfType(ENormType NormType, const Vector &vec1, const Vector &vec2)
Compute the norm of a specific type of two vectors (uncached)
Ipopt::IpoptCalculatedQuantities::curr_slack_x_U_cache_
CachedResults< SmartPtr< Vector > > curr_slack_x_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:742
Ipopt::IpoptCalculatedQuantities::trial_jac_d
SmartPtr< const Matrix > trial_jac_d()
Jacobian of d (at trial point)
Ipopt::IpoptCalculatedQuantities::curr_barrier_error_cache_
CachedResults< Number > curr_barrier_error_cache_
Definition: IpIpoptCalculatedQuantities.hpp:831
Ipopt::IpoptCalculatedQuantities::curr_orig_bounds_violation
virtual Number curr_orig_bounds_violation(ENormType NormType)
Violation of scaled original variable bounds.
Ipopt::IpoptCalculatedQuantities::curr_jac_dT_times_vec_cache_
CachedResults< SmartPtr< const Vector > > curr_jac_dT_times_vec_cache_
Definition: IpIpoptCalculatedQuantities.hpp:787
Ipopt::IpoptCalculatedQuantities::curr_jac_d_times_vec_cache_
CachedResults< SmartPtr< const Vector > > curr_jac_d_times_vec_cache_
Definition: IpIpoptCalculatedQuantities.hpp:790
Ipopt::SmartPtr
Template class for Smart Pointers.
Definition: IpSmartPtr.hpp:165
Ipopt::IpoptCalculatedQuantities::curr_jac_cT_times_vec_cache_
CachedResults< SmartPtr< const Vector > > curr_jac_cT_times_vec_cache_
Definition: IpIpoptCalculatedQuantities.hpp:785
Ipopt::IpoptCalculatedQuantities::trial_dual_infeasibility
virtual Number trial_dual_infeasibility(ENormType NormType)
Dual infeasibility in a given norm (at trial iterate)
Ipopt::IpoptCalculatedQuantities::add_cq_
SmartPtr< IpoptAdditionalCq > add_cq_
Chen-Goldfarb specific calculated quantities.
Definition: IpIpoptCalculatedQuantities.hpp:710
Ipopt::IpoptCalculatedQuantities::kappa_d_
Number kappa_d_
Weighting factor for the linear damping term added to the barrier objective function.
Definition: IpIpoptCalculatedQuantities.hpp:726
Ipopt::IpoptCalculatedQuantities::curr_primal_dual_system_error_cache_
CachedResults< Number > curr_primal_dual_system_error_cache_
Definition: IpIpoptCalculatedQuantities.hpp:832
Ipopt::IpoptCalculatedQuantities::trial_compl_x_U_cache_
CachedResults< SmartPtr< const Vector > > trial_compl_x_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:814
Ipopt::IpoptCalculatedQuantities::trial_jac_cT_times_vec
SmartPtr< const Vector > trial_jac_cT_times_vec(const Vector &vec)
Product of Jacobian (evaluated at trial point) of C transpose with general vector.
Ipopt::IpoptCalculatedQuantities::curr_slack_s_U_cache_
CachedResults< SmartPtr< Vector > > curr_slack_s_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:744
Ipopt::IpoptCalculatedQuantities::curr_barrier_obj
virtual Number curr_barrier_obj()
Barrier Objective Function Value (at current iterate with current mu)
Ipopt::IpoptCalculatedQuantities::uncached_dual_frac_to_the_bound
Number uncached_dual_frac_to_the_bound(Number tau, const Vector &delta_z_L, const Vector &delta_z_U, const Vector &delta_v_L, const Vector &delta_v_U)
Fraction to the boundary from (current) dual variables z and v for a given step, without caching.
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_x_U
SmartPtr< const Vector > curr_relaxed_compl_x_U()
Relaxed complementarity for x_U (for current iterate and current mu)
Ipopt::IpoptCalculatedQuantities::curr_compl_s_U_cache_
CachedResults< SmartPtr< const Vector > > curr_compl_s_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:812
Ipopt::IpoptCalculatedQuantities::trial_compl_s_U
SmartPtr< const Vector > trial_compl_s_U()
Complementarity for s_U (for trial iterate)
Ipopt::IpoptCalculatedQuantities::trial_c
SmartPtr< const Vector > trial_c()
c(x) (at trial point)
Ipopt::IpoptCalculatedQuantities::CalcBarrierTerm
Number CalcBarrierTerm(Number mu, const Vector &slack_x_L, const Vector &slack_x_U, const Vector &slack_s_L, const Vector &slack_s_U)
Compute barrier term at given point (uncached)
Ipopt::IpoptCalculatedQuantities::curr_slack_s_U
SmartPtr< const Vector > curr_slack_s_U()
Slacks for s_U (at current iterate)
Ipopt::IpoptCalculatedQuantities::Initialize
bool Initialize(const Journalist &jnlst, const OptionsList &options, const std::string &prefix)
This method must be called to initialize the global algorithmic parameters.
Ipopt::IpoptCalculatedQuantities::trial_compl_s_L_cache_
CachedResults< SmartPtr< const Vector > > trial_compl_s_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:815
Ipopt::IpoptCalculatedQuantities::trial_primal_dual_system_error_cache_
CachedResults< Number > trial_primal_dual_system_error_cache_
Definition: IpIpoptCalculatedQuantities.hpp:833
Ipopt::IpoptCalculatedQuantities::dampind_x_U_
SmartPtr< Vector > dampind_x_U_
Indicator vector for selecting the elements in x that have only upper bounds.
Definition: IpIpoptCalculatedQuantities.hpp:875
Ipopt::IpoptCalculatedQuantities::unscaled_curr_c
SmartPtr< const Vector > unscaled_curr_c()
unscaled c(x) (at current point)
Ipopt::Index
ipindex Index
Type of all indices of vectors, matrices etc.
Definition: IpTypes.hpp:20
Ipopt::IpoptCalculatedQuantities::tmp_d_
SmartPtr< Vector > tmp_d_
Definition: IpIpoptCalculatedQuantities.hpp:895
Ipopt::IpoptCalculatedQuantities::unscaled_curr_nlp_error_cache_
CachedResults< Number > unscaled_curr_nlp_error_cache_
Definition: IpIpoptCalculatedQuantities.hpp:830
Ipopt::IpoptCalculatedQuantities::unscaled_trial_f
virtual Number unscaled_trial_f()
Unscaled value of the objective function (at the trial point)
Ipopt::Number
ipnumber Number
Type of all numbers.
Definition: IpTypes.hpp:17
Ipopt::IpoptCalculatedQuantities::curr_orig_bounds_viol_cache_
CachedResults< Number > curr_orig_bounds_viol_cache_
Definition: IpIpoptCalculatedQuantities.hpp:842
Ipopt::IpoptCalculatedQuantities::GetIpoptNLP
SmartPtr< IpoptNLP > & GetIpoptNLP()
Method returning the IpoptNLP object.
Definition: IpIpoptCalculatedQuantities.hpp:662
IpSymMatrix.hpp
Ipopt::IpoptCalculatedQuantities::dampind_x_L_
SmartPtr< Vector > dampind_x_L_
Indicator vector for selecting the elements in x that have only lower bounds.
Definition: IpIpoptCalculatedQuantities.hpp:871
Ipopt::IpoptAdditionalCq::operator=
void operator=(const IpoptAdditionalCq &)
Default Assignment Operator.
Ipopt::IpoptCalculatedQuantities::unscaled_curr_d
SmartPtr< const Vector > unscaled_curr_d()
unscaled d(x) (at current point)
Ipopt::CachedResults
Templated class for Cached Results.
Definition: IpCachedResults.hpp:69
IpIpoptData.hpp
Ipopt::IpoptCalculatedQuantities::curr_compl_s_L
SmartPtr< const Vector > curr_compl_s_L()
Complementarity for s_L (for current iterate)
Ipopt::IpoptCalculatedQuantities::trial_d
SmartPtr< const Vector > trial_d()
d(x) (at trial point)
Ipopt::IpoptCalculatedQuantities::curr_compl_x_U
SmartPtr< const Vector > curr_compl_x_U()
Complementarity for x_U (for current iterate)
Ipopt::IpoptCalculatedQuantities::trial_dual_infeasibility_cache_
CachedResults< Number > trial_dual_infeasibility_cache_
Definition: IpIpoptCalculatedQuantities.hpp:824
Ipopt::IpoptCalculatedQuantities::trial_avrg_compl
Number trial_avrg_compl()
average of trial values of the complementarities
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_s
SmartPtr< const Vector > curr_grad_lag_s()
s-part of gradient of Lagrangian function (at current point)
Ipopt::IpoptCalculatedQuantities::curr_jac_dT_times_curr_y_d
SmartPtr< const Vector > curr_jac_dT_times_curr_y_d()
Product of Jacobian (evaluated at current point) of D transpose with current y_d.
Ipopt::IpoptCalculatedQuantities::curr_grad_barrier_obj_x_cache_
CachedResults< SmartPtr< const Vector > > curr_grad_barrier_obj_x_cache_
Definition: IpIpoptCalculatedQuantities.hpp:767
Ipopt::IpoptCalculatedQuantities::Tmp_c
Vector & Tmp_c()
Ipopt::IpoptCalculatedQuantities::~IpoptCalculatedQuantities
virtual ~IpoptCalculatedQuantities()
Destructor.
Ipopt::NORM_1
@ NORM_1
Definition: IpIpoptCalculatedQuantities.hpp:27
Ipopt::IpoptCalculatedQuantities::tmp_x_U_
SmartPtr< Vector > tmp_x_U_
Definition: IpIpoptCalculatedQuantities.hpp:897
Ipopt::IpoptCalculatedQuantities::curr_grad_f_cache_
CachedResults< SmartPtr< const Vector > > curr_grad_f_cache_
Definition: IpIpoptCalculatedQuantities.hpp:759
Ipopt::IpoptCalculatedQuantities::operator=
void operator=(const IpoptCalculatedQuantities &)
Default Assignment Operator.
Ipopt::IpoptCalculatedQuantities::curr_complementarity
virtual Number curr_complementarity(Number mu, ENormType NormType)
Complementarity (for all complementarity conditions together) in a given norm (at current iterate)
Ipopt::IpoptCalculatedQuantities::curr_d
SmartPtr< const Vector > curr_d()
d(x) (at current point)
Ipopt::IpoptCalculatedQuantities::curr_relaxed_compl_s_L
SmartPtr< const Vector > curr_relaxed_compl_s_L()
Relaxed complementarity for s_L (for current iterate and current mu)
Ipopt::IpoptCalculatedQuantities::AdditionalCq
IpoptAdditionalCq & AdditionalCq()
Definition: IpIpoptCalculatedQuantities.hpp:667
Ipopt::IpoptCalculatedQuantities::trial_slack_x_U
SmartPtr< const Vector > trial_slack_x_U()
Slacks for x_U (at trial point)
Ipopt::IpoptCalculatedQuantities::curr_avrg_compl
Number curr_avrg_compl()
average of current values of the complementarities
Ipopt::Journalist
Class responsible for all message output.
Definition: IpJournalist.hpp:117
Ipopt::IpoptCalculatedQuantities::trial_jac_cT_times_trial_y_c
SmartPtr< const Vector > trial_jac_cT_times_trial_y_c()
Product of Jacobian (evaluated at trial point) of C transpose with trial y_c.
Ipopt::IpoptCalculatedQuantities::initialize_called_
bool initialize_called_
flag indicating if Initialize method has been called (for debugging)
Definition: IpIpoptCalculatedQuantities.hpp:915
Ipopt::IpoptCalculatedQuantities::unscaled_trial_c
SmartPtr< const Vector > unscaled_trial_c()
unscaled c(x) (at trial point)
Ipopt::IpoptCalculatedQuantities::trial_jac_c
SmartPtr< const Matrix > trial_jac_c()
Jacobian of c (at trial point)
Ipopt::IpoptCalculatedQuantities::SetAddCq
void SetAddCq(SmartPtr< IpoptAdditionalCq > add_cq)
Method for setting pointer for additional calculated quantities.
Definition: IpIpoptCalculatedQuantities.hpp:106
Ipopt::IpoptCalculatedQuantities::trial_jac_dT_times_vec
SmartPtr< const Vector > trial_jac_dT_times_vec(const Vector &vec)
Product of Jacobian (evaluated at trial point) of D transpose with general vector.
Ipopt::IpoptCalculatedQuantities::curr_grad_barrier_obj_s
SmartPtr< const Vector > curr_grad_barrier_obj_s()
Gradient of barrier objective function with respect to s (at current point with current mu)
Ipopt::IpoptCalculatedQuantities::curr_jac_d_cache_
CachedResults< SmartPtr< const Matrix > > curr_jac_d_cache_
Definition: IpIpoptCalculatedQuantities.hpp:783
Ipopt::IpoptAdditionalCq::~IpoptAdditionalCq
virtual ~IpoptAdditionalCq()
Destructor.
Definition: IpIpoptCalculatedQuantities.hpp:49
Ipopt::IpoptCalculatedQuantities::curr_jac_c_times_vec
SmartPtr< const Vector > curr_jac_c_times_vec(const Vector &vec)
Product of Jacobian (evaluated at current point) of C with general vector.
Ipopt::IpoptCalculatedQuantities::curr_sigma_s
SmartPtr< const Vector > curr_sigma_s()
Ipopt::IpoptCalculatedQuantities::trial_compl_s_L
SmartPtr< const Vector > trial_compl_s_L()
Complementarity for s_L (for trial iterate)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_complementarity
virtual Number unscaled_curr_complementarity(Number mu, ENormType NormType)
Complementarity (for all complementarity conditions together) in a given norm (at current iterate) wi...
Ipopt::IpoptCalculatedQuantities::CalcNormOfType
Number CalcNormOfType(ENormType NormType, std::vector< SmartPtr< const Vector > > vecs)
Compute the norm of a specific type of a set of vectors (uncached)
Ipopt::IpoptCalculatedQuantities::AdjustedTrialSlacks
Index AdjustedTrialSlacks()
Indicating whether or not we "fudged" the slacks.
Ipopt::IpoptCalculatedQuantities::trial_primal_dual_system_error
virtual Number trial_primal_dual_system_error(Number mu)
Norm of the primal-dual system for a given mu (at trial iterate).
Ipopt::IpoptCalculatedQuantities::trial_slack_s_L
SmartPtr< const Vector > trial_slack_s_L()
Slacks for s_L (at trial point)
Ipopt::IpoptCalculatedQuantities::grad_kappa_times_damping_s
SmartPtr< const Vector > grad_kappa_times_damping_s()
Gradient of the damping term with respect to s (times kappa_d)
Ipopt::IpoptCalculatedQuantities::curr_centrality_measure_cache_
CachedResults< Number > curr_centrality_measure_cache_
Definition: IpIpoptCalculatedQuantities.hpp:828
Ipopt::IpoptCalculatedQuantities::curr_primal_dual_system_error
virtual Number curr_primal_dual_system_error(Number mu)
Norm of the primal-dual system for a given mu (at current iterate).
Ipopt::IpoptCalculatedQuantities::unscaled_curr_f
virtual Number unscaled_curr_f()
Unscaled value of the objective function (at the current point)
Ipopt::IpoptCalculatedQuantities::unscaled_curr_orig_x_L_violation
SmartPtr< const Vector > unscaled_curr_orig_x_L_violation()
Violation of original variable lower bounds x_L.
Ipopt::IpoptCalculatedQuantities::curr_constraint_violation_cache_
CachedResults< Number > curr_constraint_violation_cache_
Definition: IpIpoptCalculatedQuantities.hpp:791
Ipopt::IpoptCalculatedQuantities::curr_compl_x_U_cache_
CachedResults< SmartPtr< const Vector > > curr_compl_x_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:810
Ipopt::IsValid
bool IsValid(const SmartPtr< U > &smart_ptr)
Definition: IpSmartPtr.hpp:672
Ipopt::IpoptCalculatedQuantities::curr_slack_x_U
SmartPtr< const Vector > curr_slack_x_U()
Slacks for x_U (at current iterate)
Ipopt::IpoptCalculatedQuantities::curr_grad_barrier_obj_x
SmartPtr< const Vector > curr_grad_barrier_obj_x()
Gradient of barrier objective function with respect to x (at current point with current mu)
Ipopt::IpoptCalculatedQuantities::trial_jac_dT_times_trial_y_d
SmartPtr< const Vector > trial_jac_dT_times_trial_y_d()
Product of Jacobian (evaluated at trial point) of D transpose with trial y_d.
Ipopt::IpoptCalculatedQuantities::unscaled_curr_dual_infeasibility
virtual Number unscaled_curr_dual_infeasibility(ENormType NormType)
Unscaled dual infeasibility in a given norm (at current iterate)
Ipopt::IpoptCalculatedQuantities::trial_complementarity_cache_
CachedResults< Number > trial_complementarity_cache_
Definition: IpIpoptCalculatedQuantities.hpp:827
Ipopt::IpoptCalculatedQuantities::HaveAddCq
bool HaveAddCq()
Method detecting if additional object for calculated quantities has already been set.
Definition: IpIpoptCalculatedQuantities.hpp:118
Ipopt::IpoptCalculatedQuantities::slack_move_
Number slack_move_
fractional movement allowed in bounds
Definition: IpIpoptCalculatedQuantities.hpp:728
Ipopt::IpoptCalculatedQuantities::trial_grad_lag_x_cache_
CachedResults< SmartPtr< const Vector > > trial_grad_lag_x_cache_
Definition: IpIpoptCalculatedQuantities.hpp:804
Ipopt::IpoptCalculatedQuantities::constr_viol_normtype_
ENormType constr_viol_normtype_
Norm type to be used when calculating the constraint violation.
Definition: IpIpoptCalculatedQuantities.hpp:730
Ipopt::IpoptCalculatedQuantities::curr_orig_x_L_violation
SmartPtr< const Vector > curr_orig_x_L_violation()
Violation of scaled original variable lower bounds x_L.
Ipopt::IpoptCalculatedQuantities::curr_primal_infeasibility_cache_
CachedResults< Number > curr_primal_infeasibility_cache_
Definition: IpIpoptCalculatedQuantities.hpp:821
Ipopt::IpoptCalculatedQuantities::tmp_s_
SmartPtr< Vector > tmp_s_
Definition: IpIpoptCalculatedQuantities.hpp:893
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_s_cache_
CachedResults< SmartPtr< const Vector > > curr_grad_lag_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:805
Ipopt::IpoptCalculatedQuantities::trial_jac_dT_times_vec_cache_
CachedResults< SmartPtr< const Vector > > trial_jac_dT_times_vec_cache_
Definition: IpIpoptCalculatedQuantities.hpp:788
Ipopt::IpoptCalculatedQuantities::curr_sigma_s_cache_
CachedResults< SmartPtr< const Vector > > curr_sigma_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:854
Ipopt::IpoptCalculatedQuantities::trial_slack_x_L_cache_
CachedResults< SmartPtr< Vector > > trial_slack_x_L_cache_
Definition: IpIpoptCalculatedQuantities.hpp:745
Ipopt::IpoptCalculatedQuantities::curr_orig_x_L_viol_cache_
CachedResults< SmartPtr< Vector > > curr_orig_x_L_viol_cache_
Definition: IpIpoptCalculatedQuantities.hpp:840
DBG_ASSERT
#define DBG_ASSERT(test)
Definition: IpDebug.hpp:27
Ipopt::IpoptCalculatedQuantities::orig_x_U_violation
SmartPtr< Vector > orig_x_U_violation(const Vector &x)
Violation of scaled original variable upper bounds x_U.
Ipopt::IpoptCalculatedQuantities::curr_compl_s_U
SmartPtr< const Vector > curr_compl_s_U()
Complementarity for s_U (for current iterate)
Ipopt::OptionsList
This class stores a list of user set options.
Definition: IpOptionsList.hpp:33
Ipopt::IpoptCalculatedQuantities::trial_d_minus_s_cache_
CachedResults< SmartPtr< const Vector > > trial_d_minus_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:780
Ipopt::IpoptCalculatedQuantities::curr_dual_frac_to_the_bound
Number curr_dual_frac_to_the_bound(Number tau)
Fraction to the boundary from (current) dual variables z and v for internal (current) step.
Ipopt::IpoptCalculatedQuantities::curr_d_cache_
CachedResults< SmartPtr< const Vector > > curr_d_cache_
Definition: IpIpoptCalculatedQuantities.hpp:777
Ipopt::IpoptCalculatedQuantities::trial_slack_s_U_cache_
CachedResults< SmartPtr< Vector > > trial_slack_s_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:748
Ipopt::IpoptCalculatedQuantities::tmp_s_U_
SmartPtr< Vector > tmp_s_U_
Definition: IpIpoptCalculatedQuantities.hpp:899
Ipopt::IpoptCalculatedQuantities::curr_jac_c_times_vec_cache_
CachedResults< SmartPtr< const Vector > > curr_jac_c_times_vec_cache_
Definition: IpIpoptCalculatedQuantities.hpp:789
Ipopt::ReferencedObject
Storing the reference count of all the smart pointers that currently reference it.
Definition: IpReferenced.hpp:170
Ipopt::IpoptCalculatedQuantities::ComputeOptimalityErrorScaling
void ComputeOptimalityErrorScaling(const Vector &y_c, const Vector &y_d, const Vector &z_L, const Vector &z_U, const Vector &v_L, const Vector &v_U, Number s_max, Number &s_d, Number &s_c)
Compute the scaling factors for the optimality error.
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_x
SmartPtr< const Vector > curr_grad_lag_x()
x-part of gradient of Lagrangian function (at current point)
Ipopt::IpoptCalculatedQuantities::tmp_x_L_
SmartPtr< Vector > tmp_x_L_
Definition: IpIpoptCalculatedQuantities.hpp:896
Ipopt::IpoptCalculatedQuantities::curr_nlp_constraint_violation_cache_
CachedResults< Number > curr_nlp_constraint_violation_cache_
Definition: IpIpoptCalculatedQuantities.hpp:793
Ipopt::IpoptCalculatedQuantities::CalcFracToBound
Number CalcFracToBound(const Vector &slack_L, Vector &tmp_L, const Matrix &P_L, const Vector &slack_U, Vector &tmp_U, const Matrix &P_U, const Vector &delta, Number tau)
Compute fraction to the boundary parameter for lower and upper bounds.
Ipopt::IpoptCalculatedQuantities::ip_data_
SmartPtr< IpoptData > ip_data_
Ipopt Data object.
Definition: IpIpoptCalculatedQuantities.hpp:708
Ipopt::IpoptCalculatedQuantities::trial_compl_s_U_cache_
CachedResults< SmartPtr< const Vector > > trial_compl_s_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:816
Ipopt::IpoptCalculatedQuantities::curr_orig_x_U_viol_cache_
CachedResults< SmartPtr< Vector > > curr_orig_x_U_viol_cache_
Definition: IpIpoptCalculatedQuantities.hpp:841
Ipopt::ENormType
ENormType
Norm types.
Definition: IpIpoptCalculatedQuantities.hpp:26
Ipopt::IpoptCalculatedQuantities::CalcSlack_L
SmartPtr< Vector > CalcSlack_L(const Matrix &P, const Vector &x, const Vector &x_bound)
Compute new vector containing the slack to a lower bound (uncached)
Ipopt::IpoptCalculatedQuantities::trial_slack_x_U_cache_
CachedResults< SmartPtr< Vector > > trial_slack_x_U_cache_
Definition: IpIpoptCalculatedQuantities.hpp:746
Ipopt::IpoptCalculatedQuantities::curr_grad_barrier_obj_s_cache_
CachedResults< SmartPtr< const Vector > > curr_grad_barrier_obj_s_cache_
Definition: IpIpoptCalculatedQuantities.hpp:768
Ipopt::IpoptCalculatedQuantities::trial_slack_s_U
SmartPtr< const Vector > trial_slack_s_U()
Slacks for s_U (at trial point)
Ipopt::IpoptCalculatedQuantities::trial_c_cache_
CachedResults< SmartPtr< const Vector > > trial_c_cache_
Definition: IpIpoptCalculatedQuantities.hpp:776
Ipopt::IpoptCalculatedQuantities::CalcCompl
SmartPtr< const Vector > CalcCompl(const Vector &slack, const Vector &mult)
Compute complementarity for slack / multiplier pair.
Ipopt::IpoptCalculatedQuantities::curr_jac_c_cache_
CachedResults< SmartPtr< const Matrix > > curr_jac_c_cache_
Definition: IpIpoptCalculatedQuantities.hpp:781
Ipopt::Vector
Vector Base Class.
Definition: IpVector.hpp:48
Ipopt::IpoptCalculatedQuantities::grad_kappa_times_damping_x_cache_
CachedResults< SmartPtr< const Vector > > grad_kappa_times_damping_x_cache_
Definition: IpIpoptCalculatedQuantities.hpp:769
Ipopt::NORM_MAX
@ NORM_MAX
Definition: IpIpoptCalculatedQuantities.hpp:29
Ipopt::IpoptCalculatedQuantities::trial_avrg_compl_cache_
CachedResults< Number > trial_avrg_compl_cache_
Cache for average of trial complementarity.
Definition: IpIpoptCalculatedQuantities.hpp:860
Ipopt::IpoptCalculatedQuantities::curr_grad_lag_with_damping_x
SmartPtr< const Vector > curr_grad_lag_with_damping_x()
x-part of gradient of Lagrangian function (at current point) including linear damping term
Ipopt::IpoptCalculatedQuantities::num_adjusted_slack_x_L_
Index num_adjusted_slack_x_L_
Definition: IpIpoptCalculatedQuantities.hpp:749
Ipopt::IpoptCalculatedQuantities::IpoptCalculatedQuantities
IpoptCalculatedQuantities(const IpoptCalculatedQuantities &)
Copy Constructor.
Ipopt::IpoptCalculatedQuantities::Tmp_x_L
Vector & Tmp_x_L()