    

 ## On this page

  

 

 # addVariable

 Last update: 30.07.2026 

public [addVariable](add-variable.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), equation: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), isNumeric: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), isValid: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), isInput: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), type: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), units: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

Adds a variable to the custom design point

#### Parameters

namethe Data Collector name of the variable(can be anything)equationthe equation(usually full ModelCenter variable name)isNumericwhether or not the variable is numericisValidwhether or not the variable is valid for this runisInputwhether or not this variable is an inputtypethe variable's type, i.e. "double"unitsthe units of the variablevaluethe value of the variable for this run#### Throws

[ModelCenterException](./../-model-center-exception/index.md)