Commit 6e7a8114 authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[cleanup] Initilized the BoxQP data

parent aa47ba9d
Pipeline #11593 passed with stage
in 88 minutes and 10 seconds
......@@ -36,7 +36,14 @@ BoxQP::BoxQP(const std::size_t nx, std::size_t maxiter, const double th_acceptst
std::cerr << "Warning: reg value has to be positive." << std::endl;
}
// Initialized the values of vectors
x_.setZero();
xnew_.setZero();
g_.setZero();
dx_.setZero();
// Reserve the space and compute alphas
solution_.x = Eigen::VectorXd::Zero(nx);
solution_.clamped_idx.reserve(nx_);
solution_.free_idx.reserve(nx_);
const std::size_t& n_alphas_ = 10;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment