m: Product of two LR fuzzy numbers In Calculator.LR.FNs: Calculator for LR Fuzzy Numbers

Description

This function calculates the multiplication (product) of two LR fuzzy numbers. Although on the basis of Zadeh extension principle, the class of LR fuzzy numbers is not closed under the operations multiplication and division, but we consider the following approximation for the product of two LR fuzzy numbers M=(m, α, β)_{LR} and N=(n, γ, δ)_{LR} in this package to work easy in the class of LR fuzzy numbers:

M \otimes N \simeq ≤ft\{ \begin{array}{lcc} (mn, m γ + n α, m δ + n β)_{LR} &\ \ if & \ \ M \succ 0 \ and \ N \succ 0 \\ (mn, m γ - n β, m δ - n α)_{RL} &\ \ if & \ \ M \succ 0 \ and \ N \prec 0 \\ (mn, -n β - m δ , -n α -m γ)_{RL} &\ \ if & \ \ M \prec 0 \ and \ N \prec 0 \end{array} \right.

Usage

 1 m(M, N)

Arguments

 M The first LR (or RL or L) fuzzy number N The second LR (or RL or L) fuzzy number

Value

A LR (or RL or L) fuzzy number

Abbas Parchami

References

Dubois, D., Prade, H., Fuzzy Sets and Systems: Theory and Applications. Academic Press (1980).

Dubois, D., Prade, H., Operations on fuzzy numbers. International Journal of Systems Science 9 (1978), 613-626.

Dubois, D., Prade, H., Fuzzy numbers: An overview. In In: Analysis of Fuzzy Information. Mathematical Logic, Vol. I. CRC Press (1987), 3-39.

Dubois, D., Prade, H., The mean value of a fuzzy number. Fuzzy Sets and Systems 24 (1987), 279-300.

Kaufmann, A., Gupta, M.M., Introduction to Fuzzy Arithmetic. van Nostrand Reinhold Company, New York (1985).

Taheri, S.M, Mashinchi, M., Introduction to Fuzzy Probability and Statistics. Shahid Bahonar University of Kerman Publications, In Persian (2009).

Viertl, R., Statistical Methods for Fuzzy Data. John Wiley & Sons, Chichester (2011).

Zadeh, L.A., The concept of a linguistic variable and its application to approximate reasoning-I. Information Sciences 8 (1975), 199-249.

Examples

Example output   Attaching package: 'Calculator.LR.FNs'

The following object is masked from 'package:base':

sign

 A regular approximation is not defined for multiplication since at least one of LR fuzzy numbers is non-positive and non-negative fuzzy number
 A regular approximation is not defined for multiplication since at least one of LR fuzzy numbers is non-positive and non-negative fuzzy number
 the result of multiplication is approximately  (core = 4.5, left spread = 6, right spread = 7.5) LR
 the result of multiplication is approximately  (core = 3.6, left spread = 2.4, right spread = 1.8) LR
 the result of multiplication is approximately  (core = 3.6, left spread = 2.4, right spread = 1.8) LR
 the result of multiplication is approximately  (core = 1.44, left spread = 1.44, right spread = 0.48) LR
 the result of multiplication is approximately  (core = 4.32, left spread = 5.04, right spread = 2.88) LR
 the result of multiplication is approximately  (core = 3.6, left spread = 2.4, right spread = 1.8) LR
 the result of multiplication is approximately  (core = 4.32, left spread = 5.04, right spread = 2.88) LR
 the result of multiplication is approximately  (core = 3.6, left spread = 2.4, right spread = 1.8) LR
 the result of multiplication is approximately  (core = 1.44, left spread = 1.44, right spread = 0.48) LR
 the result of multiplication is approximately  (core = 3.6, left spread = 2.4, right spread = 1.8) LR
 the result of multiplication is approximately  (core = 4.32, left spread = 5.04, right spread = 2.88) LR
function (M, N)
{
options(warn = -1)
if (messages(M) != 1) {
return(messages(M))
}
if (messages(N) != 1) {
return(messages(N))
}
if (M != N) {
return(noquote(paste0("Production has NOT a closed form of a LR fuzzy number")))
}
else if ((sign(M) == "Positive") & (sign(N) == "Positive")) {
a1 = M * N
a2 = (M * N) + (N * M)
a3 = (M * N) + (N * M)
a4 = (M + N)/2
print(noquote(paste0("the result of multiplication is approximately  (core = ",
a1, ", left spread = ", a2, ", right spread = ",
a3, ")", if (a4 == 0) {
paste0(" LR")
}
else if (a4 == 1) {
paste0(" RL")
}
else {
paste0(" L")
})))
return(invisible(c(a1, a2, a3, a4)))
}
else if ((sign(M) == "Negative") & (sign(N) == "Negative")) {
a1 = M * N
a2 = -(M * N) - (N * M)
a3 = -(M * N) - (N * M)
a4 = abs(M - 1)
print(noquote(paste0("the result of multiplication is approximately  (core = ",
a1, ", left spread = ", a2, ", right spread = ",
a3, ")", if (a4 == 0) {
paste0(" LR")
}
else if (a4 == 1) {
paste0(" RL")
}
else {
paste0(" L")
})))
return(invisible(c(a1, a2, a3, a4)))
}
else if ((sign(M) == "Positive") & (sign(N) == "Negative")) {
a1 = M * N
a2 = (M * N) - (N * M)
a3 = (M * N) - (N * M)
a4 = abs(M - 1)
print(noquote(paste0("the result of multiplication is approximately  (core = ",
a1, ", left spread = ", a2, ", right spread = ",
a3, ")", if (a4 == 0) {
paste0(" LR")
}
else if (a4 == 1) {
paste0(" RL")
}
else {
paste0(" L")
})))
return(invisible(c(a1, a2, a3, a4)))
}
else if ((sign(M) == "Negative") & (sign(N) == "Positive")) {
a1 = M * N
a2 = (N * M) - (M * N)
a3 = (N * M) - (M * N)
a4 = abs(N - 1)
print(noquote(paste0("the result of multiplication is approximately  (core = ",
a1, ", left spread = ", a2, ", right spread = ",
a3, ")", if (a4 == 0) {
paste0(" LR")
}
else if (a4 == 1) {
paste0(" RL")
}
else {
paste0(" L")
})))
return(invisible(c(a1, a2, a3, a4)))
}
else {
return(noquote(paste0("A regular approxi. is not defined for multiplication since at least one of FNs is non + and non -")))
}
}

Calculator.LR.FNs documentation built on May 2, 2019, 8:25 a.m.