home Forums # Technical Support Time and Absolute Values? Reply To: Time and Absolute Values?

#973

cw
Participant

Hi Juan-

I’ve just started looking but from what I’ve seen so far, this is a great package you’ve put together.

In my experience with Fuzzy Logic, sometimes, some of the inputs are distinctly Boolean or Categorical (no Fuzziness about them) whereas the outputs are Fuzzy. It would be nice if one could incorporate that into the system with less effort. I see that it is possible with the current version, but it seems like one would have create a lot extra code to model the Boolean for each case.

For instance, I would like to be able to do something like this:


If FlagContainsBlue == True and FlagContainsRed == True and FlagContainsWhite == True then FrenchFlag is somewhat True
If FlagContainsBlue == True and FlagContainsRed == True and FlagContainsWhite == True then BritishFlag is somewhat True
If FlagContainsBlue == True and FlagContainsRed == True and FlagContainsWhite == True then DutchFlag is somewhat True
If FlagContainsBlue == True and FlagContainsRed == True and FlagContainsWhite == True then RussianFlag is somewhat True
If FlagContainsBlue == True and FlagContainsRed == True and FlagContainsWhite == True then AmericanFlag is somewhat True

By “somewhat True”, I intend the meaning “Possible”.

One way I think I could do this, is to define the term “True” to be a rectangle (1,1) and “False” to be a a rectangle (0,0), but I would have to do this for every variable (e.g. FlagContainsBlue). It there a way to have a global term “True” that needs to be defined only once?

Or maybe what I really want is several inputs to share a same set of terms. (This has the advantage if you change one, the change will propagate throughout.) For example, if you have an input for X and Y coordinates, there may be situations that whatever input characteristics you have for X, you will want for Y. Copying this isn’t so bad with two variables, but for many more similar inputs, this would be a nuance.

Thanks