Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fuzzy.storage.fcl.Reader
- system = fuzzy.storage.fcl.Reader.Reader().load_from_file("your_definitions.fcl")
- # preallocate input and output values
- my_input = {
- "FirstMatch": 1,
- "SecondMatch": 1,
- "ThirdMatch": 1,
- "FourthMatch": 1,
- "FifthMatch" : 1
- }
- my_output = {
- "MatchResult" : 0.0
- }
- # if you need only one calculation you do not need the while
- #while ...:
- # set input values
- #my_input["in_var1"] = a
- #my_input["in_var2"] = b
- # calculate
- system.calculate(my_input, my_output)
- # now use outputs
- #first = my_output["out_var"]
- print(my_output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement