Working on Fuzzy multi sets (2024)

10 views (last 30 days)

Show older comments

davut on 18 Jun 2023

  • Link

    Direct link to this question

    https://matlabcentral.mathworks.com/matlabcentral/answers/1984874-working-on-fuzzy-multi-sets

  • Link

    Direct link to this question

    https://matlabcentral.mathworks.com/matlabcentral/answers/1984874-working-on-fuzzy-multi-sets

Edited: Sharad on 19 Jun 2023

Is it possible to work on fuzzy multi sets in fuzzy logic toolbox?

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Sign in to answer this question.

Answers (2)

Sharad on 19 Jun 2023

  • Link

    Direct link to this answer

    https://matlabcentral.mathworks.com/matlabcentral/answers/1984874-working-on-fuzzy-multi-sets#answer_1258349

  • Link

    Direct link to this answer

    https://matlabcentral.mathworks.com/matlabcentral/answers/1984874-working-on-fuzzy-multi-sets#answer_1258349

Edited: Sharad on 19 Jun 2023

Open in MATLAB Online

Hi @davut,

  • The fuzzy logic toolbox does not directly support fuzzy multisets as a seperate data structure or class, and does not provide any built in functionality to create or operate fuzzy multisets.
  • However, it is possible to simulate the creation of fuzzy multisets and various operations on them using the already available fuzzy set functionalities.
  • Here is an example for the same.

% Define the universe of discourse

universe = (0:1:10);

% Define fuzzy sets

fuzzySet1 = trapmf(universe, [1, 3, 6, 8]);

fuzzySet2 = gaussmf(universe, [5, 2]);

fuzzySet3 = trimf(universe, [3, 6, 9]);

% Define fuzzy membership values for each element

membershipValues1 = [0.8, 0.4, 0.6, 0.2, 0.1, 0.0, 0.3, 0.7, 0.9, 0.5, 0.2];

membershipValues2 = [0.1, 0.3, 0.6, 0.8, 0.9, 1.0, 0.7, 0.4, 0.2, 0.5, 0.8];

In this example, we define fuzzy sets using various membership functions such as trapmf, gaussmf, and trimf for the universe of discourse. Also, we can define the membership values of each element as arrays membershipValues1 and membershipValues2.

  • Perform the operations that simulate the multiset operations.

unionSet = max(membershipValues1, membershipValues2);

intersectionSet = min(membershipValues1, membershipValues2);

complementSet = 1 - membershipValues1;

differenceSet = max(membershipValues1 - membershipValues2, 0);

  • Display the results which are similar to fuzzy multiset operations, using the disp function.
0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Shishir Reddy on 19 Jun 2023

  • Link

    Direct link to this answer

    https://matlabcentral.mathworks.com/matlabcentral/answers/1984874-working-on-fuzzy-multi-sets#answer_1258379

  • Link

    Direct link to this answer

    https://matlabcentral.mathworks.com/matlabcentral/answers/1984874-working-on-fuzzy-multi-sets#answer_1258379

Open in MATLAB Online

Hi Davut,

As per my understanding, you want to work on fuzzy multisets. The important point is, the Fuzzy Logic Toolbox in MATLAB does not directly support fuzzy multisets. The toolbox primarily focuses on fuzzy sets and fuzzy logic operations.

However, you can still work with fuzzy multisets by using fuzzy sets as a representation. One approach is to consider each value in the fuzzy multiset as a separate fuzzy set with its own membership function. You can then perform fuzzy logic operations on these individual fuzzy sets to simulate operations on the fuzzy multiset.

Alternatively, you can consider implementing custom functions or extending the capabilities of the Fuzzy Logic Toolbox by developing your own functions or classes to handle fuzzy multisets. This would require more advanced knowledge of fuzzy logic and MATLAB programming.

Have a look at the following sample code:

% Fuzzy Set 1

x1 = [1 2 3 4 5]; % Elements

mfx1 = [0.3 0.5 0.8 0.9 0.6]; % Membership grades

% Fuzzy Set 2

x2 = [3 4 5 6 7]; % Elements

mfx2 = [0.2 0.7 1.0 0.8 0.4]; % Membership grades

% Convert fuzzy sets to individual fuzzy sets with separate membership functions

fuzzySet1 = {x1, mfx1};

fuzzySet2 = {x2, mfx2};

% Perform fuzzy operations on individual fuzzy sets

fuzzyUnion = union(fuzzySet1, fuzzySet2);

fuzzyIntersection = intersection(fuzzySet1, fuzzySet2);

fuzzyComplement = complement(fuzzySet1);

% Display the results

disp('Fuzzy Union:');

disp(fuzzyUnion);

disp('Fuzzy Intersection:');

disp(fuzzyIntersection);

disp('Fuzzy Complement:');

disp(fuzzyComplement);

For further reference, please refer these links to know more about ‘Fuzzy Logic Toolbox’

https://in.mathworks.com/products/fuzzy-logic.html

I hope this helps resolving the issue.

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Sign in to answer this question.

See Also

Categories

Control SystemsFuzzy Logic ToolboxFuzzy Logic in Simulink

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Tags

  • multi sets

Products

  • Fuzzy Logic Toolbox

Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.


Working on Fuzzy multi sets (4)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom(English)

Asia Pacific

Contact your local office

Working on Fuzzy multi sets (2024)

FAQs

What is the formula for a fuzzy set? ›

(Fuzzy Set—FS)

Let X is a set (space), with generic element of X denoted by x, that is X = { x } . Then a FS is defined as Eq. (1). where μ A : X → [ 0 , 1 ] is the membership function of the FS A, μ A ( x ) ∈ [ 0 , 1 ] is the degree of membership of the element x to the set A.

Are fuzzy sets useful? ›

Fuzzy set theory is used to model complex decision-making processes that involve imprecise or uncertain data. By using fuzzy logic, it is possible to incorporate subjective human judgement into the decision-making process, making it more robust and flexible.

What are the basics of fuzzy sets? ›

A Fuzzy set is a set whose elements have degrees of membership. Fuzzy sets are an extension of the classical notion of set (known as a Crisp Set). More mathe- matically, a fuzzy set is a pair (A, µA) where A is a set and µA : A → [0,1]. For all x ∈ A, µA(x) is called the grade of membership of x.

What is a fuzzy multiset? ›

3.1 Infinite Membership Sequences. Infinite fuzzy multisets means that for x∈X,CountA(x) may be an infinite set. of the unit interval I=[0,1]. We note that α-cuts of a fuzzy multiset Agives. well-defined crisp multisets [A]αand ]A[αfor α∈(0,1).

How do you calculate fuzziness? ›

Measure of fuzziness

FUZ(F) ≥ FUZ(F*) if F* is a sharpened version of F, that is F*(x) ≥ F(x) if F(x) ≥ 0.5 and F*(x) ≤ F(x) if F(x) ≤ 0.5. FUZ(F) = FUZ( ˉF), the fuzziness of a set and its complement are the same.

What is a fuzzy set example? ›

Fuzzy set theory permits membership function valued in the interval [0,1]. Example: Words like young, tall, good or high are fuzzy. There is no single quantitative value which defines the term young.

Is fuzzy logic hard? ›

Fuzzy logic is conceptually easy to understand. The mathematical concepts behind fuzzy reasoning are very simple.

Is fuzzy logic outdated? ›

Fuzzy Logic - Is fuzzy logic obsolete? Fuzzy logic continues to be utilized in specific applications, particularly in scenarios where conventional binary logic may not yield the best results.

What is the disadvantage of fuzzy system? ›

Disadvantages of Fuzzy Logic

Fuzzy logic in AI may not be appropriate for situations demanding high accuracy. A fuzzy knowledge-based system requires significant equipment testing for confirmation and validation. Since fuzzy logic uses accurate and imprecise data, accuracy can often be reduced.

Why do we study fuzzy sets? ›

Fuzzy sets allow one to work in uncertain and vague situations and solve those problems which have more than one solution. In real life sometimes we are unable to answer many questions because these answers are depending upon two valued logic which are unable to give clear-cut explanation.

What are the laws of fuzzy sets? ›

A fuzzy set is universal fuzzy set if and only if the value of the membership function is 1 for all the members under consideration. Any fuzzy set A defined on a universe U is a subset of that universe. Two fuzzy sets A and B are said to be equal fuzzy sets if μA(x) = μB(x) for all x ϵ U.

What is a normal fuzzy set? ›

Definition. A fuzzy set µ is called normal when h(µ) = 1. It is called subnormal when h(µ) < 1.

Why do we need multiset? ›

Multisets are useful in cases where we don't care about the order of the elements but we do need to maintain a count of how many times each element appears. For example, in a document analysis domain we may need to count the number of occurrences of each word in the document.

How many types of fuzzy sets are there? ›

In this instance, universal set X are the positive real numbers. membership function is given by a fuzzy set, it is a type-2 fuzzy set. This concept can be extended up to Type- n fuzzy set. Fuzzy sets of type 2: • : the set of all ordinary fuzzy sets that can be defined with the universal set [0,1].

What is an example of a multiset? ›

The cardinality of a multiset is the sum of the multiplicities of all its elements. For example, in the multiset {a, a, b, b, b, c} the multiplicities of the members a, b, and c are respectively 2, 3, and 1, and therefore the cardinality of this multiset is 6.

How do you find a fuzzy set? ›

A fuzzy set A in the universe X is a set of ordered pairs A = {x, μA(x)}, x ∈ X, where μA(x) is the grade of membership of x in A: (1) μ A : X → 0 , 1 . A fuzzy set is said to be normal if and only if maxxX μA(x) = 1.

What is the theorem of a fuzzy set? ›

Theorem. (Distributive Laws) Let A, B, and C be fuzzy sets. Then C ∪ (A ∩ B)=(C ∪ A) ∩ (C ∪ B) and C ∩ (A ∪ B)=(C ∩ A) ∪ (C ∩ B).

How is fuzzy ratio calculated? ›

We can determine the simple ratio between two strings using the ratio() method on the fuzz object. This simply calculates the edit distance based on the ordering of both input strings difflib. ratio() – see the difflib documentation to learn more.

What is the fuzzy method of math? ›

Fuzzy mathematics is the branch of mathematics including fuzzy set theory and fuzzy logic that deals with partial inclusion of elements in a set on a spectrum, as opposed to simple binary "yes" or "no" (0 or 1) inclusion. It started in 1965 after the publication of Lotfi Asker Zadeh's seminal work Fuzzy sets.

References

Top Articles
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 6496

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.