TVM  0.9.4
tvm::requirements::WeightBase< Lightweight > Class Template Reference

#include <tvm/requirements/Weight.h>

Inheritance diagram for tvm::requirements::WeightBase< Lightweight >:
Collaboration diagram for tvm::requirements::WeightBase< Lightweight >:

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)
 
SingleSolvingRequirementoperator= (const SingleSolvingRequirement< double, !Lightweight > &other)
 
SingleSolvingRequirementoperator= (const double &val)
 
- Protected Attributes inherited from tvm::requirements::abstract::SingleSolvingRequirement< double, true >
bool default_
 
double value_
 

Detailed Description

template<bool Lightweight = true>
class tvm::requirements::WeightBase< Lightweight >

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.

Constructor & Destructor Documentation

◆ WeightBase() [1/2]

template<bool Lightweight = true>
tvm::requirements::WeightBase< Lightweight >::WeightBase ( )
inline

Default weight = 1

◆ WeightBase() [2/2]

template<bool Lightweight = true>
tvm::requirements::WeightBase< Lightweight >::WeightBase ( double  alpha)
inline

The documentation for this class was generated from the following file: