times-.fzn: Product of fuzzy numbers

*.fznR Documentation

Product of fuzzy numbers

Description

Multiplies two fuzzy numbers of class fzn or one fuzzy number to a crisp number. Also works for fuzzy arrays of class fzarray.

Usage

fx1 * fx2

Arguments

fx1

First fuzzy (or crisp) number, or fuzzy array.

fx2

Second fuzzy (or crisp) number, or fuzzy array.

Value

The fuzzy product (fx1 * fx2) as an object of class fzn or fzarray.

Examples

x1 <- fzn(alpha = c(0, 0.1, 0.5, 0.8, 1),
          l = c(1, 3, 3, 4.5, 5),
          u = c(12, 10, 9, 6.5, 6))
x2 <- fzn(alpha = c(0, 0.25, 1),
          l = c(1, 3, 5),
          u = c(12, 10, 6))
par(mfrow = c(2, 2))
plotfzn(x1, main = "x1")
plotfzn(x2, main = "x2")
plotfzn(x1 * x2, main = "x1 * x2")


rbensua/fuzzyr documentation built on May 20, 2023, 7:11 a.m.