|
MiniTensor Version of the Day
|
#include <MiniTensor_TestFunctions.h>
Public Types | |
| using | Base = Inequality_Constraint< Circle< S, NC, NV >, S, NC, NV > |
Public Member Functions | |
| Circle (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 {"Circle constraint"} |
Static Public Attributes inherited from minitensor::Inequality_Constraint< ConstraintDerived, S, NC, NV > | |
| static constexpr bool | IS_EQUALITY {false} |
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} |
Circle (disk) inequality constraint \( r^2 - \|x - c\|^2 \geq 0 \): the feasible set is the closed disk of radius \( r \) centered at \( c = (x_c, y_c) \).
Definition at line 1522 of file MiniTensor_TestFunctions.h.
| using minitensor::Circle< S, NC, NV >::Base = Inequality_Constraint<Circle<S, NC, NV>, S, NC, NV> |
Base class type.
Definition at line 1548 of file MiniTensor_TestFunctions.h.
|
inline |
Constructor.
| r | Radius of the disk. |
| xc | First coordinate of the center. |
| yc | Second coordinate of the center. |
Definition at line 1532 of file MiniTensor_TestFunctions.h.
|
inline |
Constraint value.
Definition at line 1556 of file MiniTensor_TestFunctions.h.
|
inline |
Gradient (Jacobian) of the constraint.
Definition at line 1574 of file MiniTensor_TestFunctions.h.
|
staticconstexpr |
Function name.
Definition at line 1543 of file MiniTensor_TestFunctions.h.
|
private |
Radius of the disk.
Definition at line 1584 of file MiniTensor_TestFunctions.h.
|
private |
Center of the disk.
Definition at line 1590 of file MiniTensor_TestFunctions.h.