Three values ​​of variables, max, min, actual

Once upon a time, I developed systems using Egeria, the language of an expert system. It had a really useful function, where the variables had three values: min, max and current. Thus, the probability of a partially known value can be calculated, with the results ending as a range. I can’t remember the syntax, but it was something like this: -

A.Min = 1;
A.Max = 5;
A.Current= 4;
B.Min = 2;
B.Max = 4;
B.Current= 4;


A * B = {2, 20, 16}

My question is what is called this approach, and do any of its current languages ​​execute?

+3
source share
4 answers

, , , . . , " " .

. ILC 2009 . ( ) , "". ( , .) ​​

, . , : A , A1 A2, B , B1 B2. ? , "" , .

+3

, "", . , .

+3

C Yacc ( 2 UNIX 7, 1978-07-31) " , ". '(min, max)' . , , "" .

+1

- .

++, , , , .

, .

0
source

Source: https://habr.com/ru/post/1705311/


All Articles