Skip to content

Commit

Permalink
Fix bug in getWeightedAvgGradientT1
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Feb 16, 2024
1 parent 29dd2c4 commit 52d186f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Eigen::VectorXd getWeightedAvgGradientT1(const trajopt_common::GradientResultsSe
double w = (std::max(grad.error_with_buffer, 0.0) / max_error_with_buffer);
assert(!(w < 0));
total_weight += w;
grad_vec += w * (grad.gradients[i].scale * grad.gradients[i].gradient);
grad_vec += w * (grad.cc_gradients[i].scale * grad.cc_gradients[i].gradient);
++cnt;
}
}
Expand Down

0 comments on commit 52d186f

Please sign in to comment.