Skip to content

Commit 0d601ff

Browse files
committed
added documentation on the cost function's mathematics
1 parent b1cb01b commit 0d601ff

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

include/aligator/modelling/costs/log-residual-cost.hpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@
55
#include "./composite-costs.hpp"
66

77
namespace aligator {
8-
9-
/// @brief Log-barrier of an underlying cost function.
8+
/**
9+
* @brief Log-barrier of an underlying cost function.
10+
*
11+
* @details Defined as :
12+
* \f[
13+
* c(x,u) = -w\ln(r(x,u))
14+
* \f]
15+
*
16+
* where :
17+
* -\f(\ c(x,u) \f) is the resulting cost
18+
* -\f(\ r(x,u) \f) is the input function
19+
* -\f(\ w \f) is the input scale
20+
*
21+
*/
1022
template <typename Scalar> struct LogResidualCostTpl : CostAbstractTpl<Scalar> {
1123
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar);
1224
using CostDataAbstract = CostDataAbstractTpl<Scalar>;

0 commit comments

Comments
 (0)