Learn R Programming

FuzzyToolkitUoN (version 1.0)

addVar: Insert a variable

Description

Adds an input or output variable to a FIS object.

Usage

addVar(FIS, varType, varName, varBounds)

Arguments

FIS
A FIS must be provided.
varType
Should be either 'input' or 'output' which represents the type of variable to be created and added.
varName
A string representing the name of the variable.
varBounds
Also known as the 'range', this should be a vector giving a range for the variable, such as 1:10.

Value

    Examples

    Run this code
    FIS <<- tippertest()
    FIS <<- addVar(FIS, "input", "MyVariableName", 0:10)

    Run the code above in your browser using DataLab