Answers.Body: <p>After i did a bit more study on this, i found this solution.</p>
  
  <p><a href="https://i.sstatic.net/yGJiO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yGJiO.png" alt="Membership Graph"></a></p>
  
  <p>μsmall[x]</p>
  
  <ul>
  <li><p>1; -> x≤0</p></li>
  <li><p>(20-x)/(20-0); -> 0</li>
  <li><p>0; -> x≥20</p></li>
  </ul>
  
  <p>μmedium[x]</p>
  
  <ul>
  <li><p>0; -> x≤20 or x≥70</p></li>
  <li><p>(x-20)/(45-20); -> 20</li>
  <li><p>(70-x)/(70-45); -> 45</li>
  </ul>
  
  <p>μlarge[x]</p>
  
  <ul>
  <li>0; -> x≤70</li>
  <li>(x-70)/(100-70); -> 70
  <li>1; -> x≥100</li>
  </ul>
  
  <p>For the final result i need to add 3 more rules for the function to work. So it become 9 rules and 3 variables, with 3 rules for each input variables.</p>
  
  <p>To answer both of my question:</p>
  
  <ol>
  <li><p>Add a triangle graph and use the formula.</p></li>
  <li><p>Add a triangle graph for each rules.</p></li>
  </ol>
  
  <p>What i learn from this is the total rules needed to determine the output is the number of input variables rules multiplied(i.e. v1 = 3 rules, v2 3 rules, total rules = 3x3=9 rules). And i'm not really sure about this one but you can combine multiple kind of graphs.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-06T07:36:35.500Z
Answers.Text: I know this is a bad practice because it's basically asking clarification for my answer. But because i'm still new at this and not really sure about my answer, i will mark my answer as accepted after someone can verify it.
Answers.UserDisplayName: Dizz
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-06T07:30:24.860Z
Answers.LastActivityDate: 2018-06-06T07:30:24.860Z
Answers.UserDisplayName: Dizz
Answers.Body: <p>I think maybe you are overthinking it, it's been a while since I have done fuzzy logic but the answer you have given seems to be correct from what I can tell. At university when I have done this in the past you only usually give the answer you have given in that format exactly then just do a brief explanation. I can't add this as a comment due to a low score here as I am new, but hopefully, my personal experience helps somewhat here, if not I can provide more sources of information to help clarify, but honestly I do find the trick with this is to not overthink it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-16T13:55:20.757Z
Answers.LastActivityDate: 2022-04-16T13:55:20.757Z
Answers.UserDisplayName: jamiecropley
Body: <p>I'm learning fuzzy logic and more or less understand the basic concept, but i'm having a hard time understanding how to apply it to a method. I tried browsing online for explanation on how to use it, but only found some implementation and test case using the basic form of 4 rules and 3 variables, and 2 rules per variable. Anyway this is an example case, i will use Tsukamoto method.</p>
  
  <p>In this case actually i have 6 rules and 3 variables with 3 rules ver variable, but i will only explain 1 of the variables because i think the rest will have the same solution. I have 3 variables one of them is "size", the range is for small it's 0-2 and for large it's 7-10. The current condition is size = 6.5. The rules is as follow(simplified to only use this variable):</p>
  
  <ul>
  <li>[R1] size = small</li>
  <li>[R2] size = medium</li>
  <li>[R3] size = large</li>
  </ul>
  
  <p>What i want to know is:</p>
  
  <ul>
  <li>how do i define the formula for medium(the middle rule if the case is different)?</li>
  <li>what if the rule is more than 3 (i.e. small, medium, large, ex-large)?</li>
  </ul>
  
  <p>What i understands if the rule is only 2 i can use this formula</p>
  
  <ul>
  <li>small[x]=(max-x)/(max-min)</li>
  <li>large[x]=(x-min)/(max-min)</li>
  </ul>
  
  <p>My current approach to this problem is as follow:</p>
  
  <p>small[x]=1; x&lt;=2</p>
  
  <p>medium[x]=(max-x)/(max-min); 2 &lt; x &lt; 7</p>
  
  <p>large[x]=0; x>=7</p>
  
  <p>Is this correct? Also can you refer me to some source to study this? As i mentioned before i can only find some implementation and basic explanation, it's either there is no online source for this or i don't know what to search for. Sorry if it's hard to understand i can edit and post the whole problem if you want, thanks in advance.</p>
  
  <p>Extra question: what is the name of algorithm which can be used to solve the crossing bridge puzzle(the one with timer, max person, and stuff)?i forgot the name. </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-04T14:29:31.297Z
Comments.Text: Is the question about understanding the Tsukamoto method? The method applies to `n` multivariate rules, but first, it is not clear how you applied the method here.
Comments.UserDisplayName: Eric Platon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-04T15:27:12.293Z
Comments.Text: No it's the membership graph and function that I don't understand. I am confused at what function/formula should i use and what values should i add to the function if the value of a variable is a range in above example large = 7-10. I know a bit to proceed after that, only the basic though but I want to understand this one first.
Comments.UserDisplayName: Dizz
Tags: <getting-started><math><fuzzy-logic>
Title: Defining formula for fuzzy equation
UserDisplayName: Dizz
ThreadText: # Defining formula for fuzzy equation
  
  (Asked by: username_0 on 2018-06-04)
  
  I'm learning fuzzy logic and more or less understand the basic concept, but i'm having a hard time understanding how to apply it to a method. I tried browsing online for explanation on how to use it, but only found some implementation and test case using the basic form of 4 rules and 3 variables, and 2 rules per variable. Anyway this is an example case, i will use Tsukamoto method.
  
  In this case actually i have 6 rules and 3 variables with 3 rules ver variable, but i will only explain 1 of the variables because i think the rest will have the same solution. I have 3 variables one of them is "size", the range is for small it's 0-2 and for large it's 7-10. The current condition is size = 6.5. The rules is as follow(simplified to only use this variable):
  
  * [R1] size = small
  * [R2] size = medium
  * [R3] size = large
  
  What i want to know is:
  
  * how do i define the formula for medium(the middle rule if the case is different)?
  * what if the rule is more than 3 (i.e. small, medium, large, ex-large)?
  
  What i understands if the rule is only 2 i can use this formula
  
  * small[x]=(max-x)/(max-min)
  * large[x]=(x-min)/(max-min)
  
  My current approach to this problem is as follow:
  
  small[x]=1; x<=2
  
  medium[x]=(max-x)/(max-min); 2 < x < 7
  
  large[x]=0; x>=7
  
  Is this correct? Also can you refer me to some source to study this? As i mentioned before i can only find some implementation and basic explanation, it's either there is no online source for this or i don't know what to search for. Sorry if it's hard to understand i can edit and post the whole problem if you want, thanks in advance.
  
  Extra question: what is the name of algorithm which can be used to solve the crossing bridge puzzle(the one with timer, max person, and stuff)?i forgot the name.
  
  **Tags:** getting-started, math, fuzzy-logic
  
  > **Comments:**
  > **username_1**: Is the question about understanding the Tsukamoto method? The method applies to `n` multivariate rules, but first, it is not clear how you applied the method here.  
  > **username_0**: No it's the membership graph and function that I don't understand. I am confused at what function/formula should i use and what values should i add to the function if the value of a variable is a range in above example large = 7-10. I know a bit to proceed after that, only the basic though but I want to understand this one first.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2018-06-06. Score: 1
  
  After i did a bit more study on this, i found this solution.
  
  [![Membership Graph](https://i.sstatic.net/yGJiO.png)](https://i.sstatic.net/yGJiO.png)
  
  μsmall[x]
  
  * 1; -> x≤0
  * (20-x)/(20-0); -> 0
  * 0; -> x≥20
  
  μmedium[x]
  
  * 0; -> x≤20 or x≥70
  * (x-20)/(45-20); -> 20
  * (70-x)/(70-45); -> 45
  
  μlarge[x]
  
  * 0; -> x≤70
  * (x-70)/(100-70); -> 70
  * 1; -> x≥100
  
  For the final result i need to add 3 more rules for the function to work. So it become 9 rules and 3 variables, with 3 rules for each input variables.
  
  To answer both of my question:
  
  1. Add a triangle graph and use the formula.
  2. Add a triangle graph for each rules.
  
  What i learn from this is the total rules needed to determine the output is the number of input variables rules multiplied(i.e. v1 = 3 rules, v2 3 rules, total rules = 3x3=9 rules). And i'm not really sure about this one but you can combine multiple kind of graphs.
  
  > **Comments:**
  > **username_0**: I know this is a bad practice because it's basically asking clarification for my answer. But because i'm still new at this and not really sure about my answer, i will mark my answer as accepted after someone can verify it.  
  
  ---
  
  ### Answer by username_2 on 2022-04-16. Score: -1
  
  I think maybe you are overthinking it, it's been a while since I have done fuzzy logic but the answer you have given seems to be correct from what I can tell. At university when I have done this in the past you only usually give the answer you have given in that format exactly then just do a brief explanation. I can't add this as a comment due to a low score here as I am new, but hopefully, my personal experience helps somewhat here, if not I can provide more sources of information to help clarify, but honestly I do find the trick with this is to not overthink it.
  
  
  ---
  
  