Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asdf #9

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

asdf #9

wants to merge 2 commits into from

Conversation

erandtkecr
Copy link

No description provided.

if (norm(Ax_) <= prm_.eps_abs + prm_.eps_rel * std::max<Scalar>(Ax_norm, norm(z_us_))) {
//std::cout << "primal check, norm(Ax_): " << norm(Ax_) << ", delta norm: " << (Ax_norm_old ? std::abs(Ax_norm - *Ax_norm_old) : 0.) << ",norm(z_us_): " << norm(z_us_) << ", eps: " << prm_.eps_abs + prm_.eps_rel * std::max<Scalar>(Ax_norm, norm(z_us_)) << std::endl;
//if (norm(Ax_) <= prm_.eps_abs + prm_.eps_rel * std::max<Scalar>(Ax_norm, norm(z_us_)) or (Ax_norm_old and std::abs(Ax_norm - *Ax_norm_old) < 1e-6)) {
if (norm(Ax_) <= prm_.eps_abs + prm_.eps_rel * std::max<Scalar>(Ax_norm, norm(z_us_)))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check here was not working, I had to look at Ax norm vs old Ax norm, I am not sure why. I don't really care about that though, the idea is govern step size. In any case this check will probably fail if you don't put a max time or max iter or check delta objective in a dumber way.

[[maybe_unused]] auto Px_max = (pbm.P * x_us_).template lpNorm<Eigen::Infinity>();
[[maybe_unused]] auto q_max = (pbm.q).template lpNorm<Eigen::Infinity>();

auto updated_rho = std::sqrt((primal_residual_max / std::max(Ax_max,z_max)) / (dual_residual_max / std::max(Px_max, q_max)))/2.;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

straight from the text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant