Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ref:range_penalty [2019/10/23 15:06]
ref:range_penalty [2019/11/12 15:29] (current)
Line 1: Line 1:
 +====== RangePenalty ======
 +Helper class to compute penalty if a value is outside a specific range. ​
 +
 +The penalty corresponds to ''​abs_penalty * | //E// | + squared_penalty * //​E//​^2'',​ where //E// is the amount a value is out of the specified range. ​
 +
 +==== Public Attributes ====
 +^ Parameter ^ Type ^ Description ^
 +^ range | Range< T > | Specify the valid range, set through parameters '​min'​ and '​max';​ defaults to { min = -inf max = inf }. |
 +^ abs_penalty | Real | Absolute penalty factor when value is out of range; default = 0. |
 +^ squared_penalty | Real | Squared penalty factor when value out of range; default = 0. |
 +^ mode_ | penalty_mode | Use the peek range violation instead of average range violation; default = 0. |
 +
 +<​sub>​Converted from doxygen using [[https://​github.com/​tgeijten/​dokugen|dokugen]]</​sub>​