mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Add Problem::SetParameterLowerBound and Problem::SetParameterUpperBound.
These two methods allow the user to associate upper and lower bounds with individual parameters inside parameter blocks. Change-Id: I68dc37f20b64408da510ba06b89a4f08df54ddad
This commit is contained in:
@@ -183,6 +183,18 @@ const LocalParameterization* Problem::GetParameterization(
|
||||
return problem_impl_->GetParameterization(values);
|
||||
}
|
||||
|
||||
void Problem::SetParameterLowerBound(double* values,
|
||||
int index,
|
||||
double lower_bound) {
|
||||
problem_impl_->SetParameterLowerBound(values, index, lower_bound);
|
||||
}
|
||||
|
||||
void Problem::SetParameterUpperBound(double* values,
|
||||
int index,
|
||||
double upper_bound) {
|
||||
problem_impl_->SetParameterUpperBound(values, index, upper_bound);
|
||||
}
|
||||
|
||||
bool Problem::Evaluate(const EvaluateOptions& evaluate_options,
|
||||
double* cost,
|
||||
vector<double>* residuals,
|
||||
|
||||
Reference in New Issue
Block a user