Skip to content

Commit

Permalink
fixed cost initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ajordana committed Mar 7, 2024
1 parent 03f47bf commit c72ba06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions include/mim_solvers/csqp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ class SolverCSQP : public SolverDDP {
double get_mu2() const { return mu2_; };
double get_termination_tolerance() const { return termination_tol_; };
std::size_t get_max_qp_iters(){ return max_qp_iters_; };
double get_cost(){ return cost_;};
bool get_equality_qp_initial_guess() { return equality_qp_initial_guess_; };
std::size_t get_filter_size() const { return filter_size_; };

Expand Down Expand Up @@ -250,7 +249,6 @@ class SolverCSQP : public SolverDDP {
double constraint_norm_ = 0; //!< 1 norm of constraint violation
double constraint_norm_try_ = 0; //!< 1 norm of constraint violation try
double gap_norm_try_ = 0; //!< 1 norm of the gaps
double cost_ = 0.0; //!< cost function
double mu_ = 1e1; //!< penalty no constraint violation
double mu2_ = 1e1; //!< penalty no constraint violation
double termination_tol_ = 1e-6; //!< Termination tolerance
Expand Down
1 change: 0 additions & 1 deletion include/mim_solvers/sqp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ class SolverSQP : public SolverDDP {
double u_grad_norm_ = 0; //!< 1 norm of the delta u
double gap_norm_ = 0; //!< 1 norm of the gaps
double gap_norm_try_ = 0; //!< 1 norm of the gaps
double cost_ = 0; //!< cost function
double mu_ = 1e0; //!< penalty no constraint violation
double termination_tol_ = 1e-6; //!< Termination tolerance
bool with_callbacks_ = false; //!< With callbacks
Expand Down

0 comments on commit c72ba06

Please sign in to comment.