Skip to content

Commit

Permalink
Merge pull request #95 from robotology/traversaro-patch-1
Browse files Browse the repository at this point in the history
Fix OsqpEigen::Data::setUpperBound error message
  • Loading branch information
GiulioRomualdi authored May 18, 2021
2 parents b45c337 + 75eacb9 commit 761f70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool OsqpEigen::Data::setLowerBound(Eigen::Ref<Eigen::Matrix<c_float, Eigen::Dyn
bool OsqpEigen::Data::setUpperBound(Eigen::Ref<Eigen::Matrix<c_float, Eigen::Dynamic, 1>> upperBound)
{
if(upperBound.rows() != m_data->m){
debugStream() << "[OsqpEigen::Data::setLowerBound] The size of the upper bound must be equal to the number of the variables."
debugStream() << "[OsqpEigen::Data::setUpperBound] The size of the upper bound must be equal to the number of the variables."
<< std::endl;
return false;
}
Expand Down

0 comments on commit 761f70a

Please sign in to comment.