addVar: Insert a variable

Description Usage Arguments Value Author(s) Examples

Description

Adds an input or output variable to a FIS object.

Usage

1
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

A FIS with the new variable added.

Author(s)

Craig Knott, Luke Hovell, Nathan Karimian

Examples

1
2
FIS <<- tippertest()
FIS <<- addVar(FIS, "input", "MyVariableName", 0:10)

FuzzyToolkitUoN documentation built on May 2, 2019, 5:50 a.m.