MCPcopy Create free account
hub / github.com/dartsim/dart / clearCostFunction

Method clearCostFunction

dart/optimizer/Function.cpp:130–140  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

128
129//==============================================================================
130void ModularFunction::clearCostFunction(bool _printWarning)
131{
132 mCostFunction = [=](const Eigen::VectorXd&) {
133 if (_printWarning) {
134 dterr
135 << "A cost function has not yet been assigned to the ModularFunction "
136 << "named [" << this->mName << "]. Returning 0.0\n";
137 }
138 return 0;
139 };
140}
141
142//==============================================================================
143void ModularFunction::setGradientFunction(GradientFunction _gradient)

Callers 1

FunctionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected