|
TVM
0.9.4
|
#include <tvm/requirements/Weight.h>


Public Member Functions | |
| WeightBase () | |
| WeightBase (double alpha) | |
Public Member Functions inherited from tvm::requirements::abstract::SingleSolvingRequirement< double, true > | |
| const double & | value () const |
| void | value (const double &val) |
| bool | isDefault () const |
Additional Inherited Members | |
Protected Member Functions inherited from tvm::requirements::abstract::SingleSolvingRequirement< double, true > | |
| SingleSolvingRequirement (const double &val, bool isDefault) | |
| SingleSolvingRequirement (const SingleSolvingRequirement< double, !Lightweight > &other) | |
| SingleSolvingRequirement & | operator= (const SingleSolvingRequirement< double, !Lightweight > &other) |
| SingleSolvingRequirement & | operator= (const double &val) |
Protected Attributes inherited from tvm::requirements::abstract::SingleSolvingRequirement< double, true > | |
| bool | default_ |
| double | value_ |
This class represents the scalar weight alpha of a constraint, within its priority level. It is meant to adjust the influence of several constraints at the same level.
Given a scalar weight alpha, and a constraint violation measurement f(x), the product alpha*f(x) will be minimized.
By default the weight is 1.
|
inline |
Default weight = 1
|
inline |