Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import fuzzy.storage.fcl.Reader
  2. system = fuzzy.storage.fcl.Reader.Reader().load_from_file("your_definitions.fcl")
  3.  
  4. # preallocate input and output values
  5. my_input = {
  6. "FirstMatch": 1,
  7. "SecondMatch": 1,
  8. "ThirdMatch": 1,
  9. "FourthMatch": 1,
  10. "FifthMatch" : 1
  11. }
  12. my_output = {
  13. "MatchResult" : 0.0
  14. }
  15.  
  16. # if you need only one calculation you do not need the while
  17. #while ...:
  18. # set input values
  19. #my_input["in_var1"] = a
  20. #my_input["in_var2"] = b
  21.  
  22. # calculate
  23. system.calculate(my_input, my_output)
  24.  
  25. # now use outputs
  26. #first = my_output["out_var"]
  27. print(my_output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement