Re: Constraints 2014

On 20/03/14 00:50, Jan-Ivar Bruaroey wrote:

>
> Extension #2: ideal
> ===================
>
> dictionary ConstrainLongRange {
>      long min;
>      long max;
>      long ideal;
> };
>
> dictionary ConstrainDoubleRange {
>      double min;
>      double max;
>      double ideal;
> };
>
> Ideal expresses a target value within an acceptable range, with values
> closer to the ideal more desirable.

Interesting concept (which I guess could be applied to the existing 
design as well).

Should there be an error check on if ideal is withing the bounds set by 
min and max?


Received on Thursday, 20 March 2014 18:05:04 UTC