|
MiniTensor Version of the Day
|
#include <MiniTensor_TestFunctions.h>
Public Types | |
| using | Base = Equality_Constraint< Circumference< S, NC, NV >, S, NC, NV > |
Public Member Functions | |
| Circumference (S const r, S const xc=S(0.0), S const yc=S(0.0)) | |
| template<typename T , Index N = 2> | |
| Vector< T, NC > | value (Vector< T, N > const &x) |
| template<typename T , Index N = 2> | |
| Matrix< T, NC, NV > | gradient (Vector< T, N > const &x) |
Public Member Functions inherited from minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV > | |
| Equality_Constraint () | |
| template<typename T , Index N> | |
| Vector< T, NC > | value (ConstraintDerived &c, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Matrix< T, NC, NV > | gradient (ConstraintDerived &c, Vector< T, N > const &x) |
Static Public Attributes | |
| static constexpr char const *const | NAME {"Circumference"} |
Static Public Attributes inherited from minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV > | |
| static constexpr bool | IS_EQUALITY {true} |
| static constexpr Index | NUM_CONSTR {NC} |
| static constexpr Index | NUM_VAR {NV} |
Private Attributes | |
| S | r_ {0.0} |
| Vector< S, NV > | c_ |
Additional Inherited Members | |
Public Attributes inherited from minitensor::Equality_Constraint< ConstraintDerived, S, NC, NV > | |
| bool | failed {false} |
Circumference equality constraint \( r^2 - \|x - c\|^2 = 0 \): the feasible set is the circle of radius \( r \) centered at \( c = (x_c, y_c) \).
Definition at line 1441 of file MiniTensor_TestFunctions.h.
| using minitensor::Circumference< S, NC, NV >::Base = Equality_Constraint<Circumference<S, NC, NV>, S, NC, NV> |
Base class type.
Definition at line 1467 of file MiniTensor_TestFunctions.h.
|
inline |
Constructor.
| r | Radius of the circumference. |
| xc | First coordinate of the center. |
| yc | Second coordinate of the center. |
Definition at line 1451 of file MiniTensor_TestFunctions.h.
|
inline |
Constraint value.
Definition at line 1475 of file MiniTensor_TestFunctions.h.
|
inline |
Gradient (Jacobian) of the constraint.
Definition at line 1493 of file MiniTensor_TestFunctions.h.
|
staticconstexpr |
Function name.
Definition at line 1462 of file MiniTensor_TestFunctions.h.
|
private |
Radius of the circumference.
Definition at line 1503 of file MiniTensor_TestFunctions.h.
|
private |
Center of the circumference.
Definition at line 1509 of file MiniTensor_TestFunctions.h.