Skip to content

Commit

Permalink
Match output of Trajopt
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Dec 5, 2023
1 parent 7f40295 commit 2ee35aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trajopt_sco/src/osqp_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ CvxOptStatus OSQPModel::optimize()
{
Eigen::IOFormat format(5);
Eigen::Map<Eigen::VectorXd> solution_vec(solution_.data(), static_cast<Eigen::Index>(solution_.size()));
std::cout << "OSQP Solution: " << solution_vec.transpose().format(format) << std::endl;
std::cout << "OSQP Status Value: " << status << std::endl;
std::cout << "OSQP Solution: " << solution_vec.transpose().format(format) << std::endl;
}

if (status == OSQP_SOLVED || status == OSQP_SOLVED_INACCURATE)
Expand Down

0 comments on commit 2ee35aa

Please sign in to comment.