Go to the documentation of this file.
42 auto noise_factor = std::dynamic_pointer_cast<NoiseModelFactor>(
factor);
51 for (
const auto& constraint : *
this) {
52 dimension += constraint->dim();
61 for (
const auto& constraint : *
this) {
62 size_t dim = constraint->dim();
63 violation.middleCols(start_idx,
dim) =
64 whiten ? constraint->whitenedError(
values) : constraint->unwhitenedError(
values);
78 for (
const auto& constraint : *
this) {
79 graph.add(constraint->penaltyFactor(
mu));
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
NonlinearFactorGraph penaltyGraph(const double mu=1.0) const
Container of NonlinearEqualityConstraint.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Nonlinear equality constraints in constrained optimization.
std::shared_ptr< This > shared_ptr
DecisionTreeFactor factor(D &C &B &A, "0.0 0.0 0.0 0.60658897 0.61241912 0.61241969 0.61247685 0.61247742 0.0 " "0.0 0.0 0.99995287 1.0 1.0 1.0 1.0")
static NonlinearEqualityConstraints FromCostGraph(const NonlinearFactorGraph &graph)
Create constraints ensuring the cost of factors of a graph is zero.
Vector violationVector(const Values &values, bool whiten=true) const
Evaluate the constraint violation as a vector.
ZeroCostConstraint(const NoiseModelFactor::shared_ptr &factor)
Constructor.
NoiseModelFactor::shared_ptr factor_
std::vector< Matrix > * OptionalMatrixVecType
SharedDiagonal penaltyNoise(const double mu) const
virtual Vector unwhitenedError(const Values &x, OptionalMatrixVecType H=nullptr) const override
virtual NoiseModelFactor::shared_ptr penaltyFactor(const double mu=1.0) const override
double violationNorm(const Values &values) const
Evaluate the constraint violation (as 2-norm of the violation vector).
NonlinearFactorGraph graph
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
gtsam
Author(s):
autogenerated on Fri Mar 28 2025 03:02:29