Cite Us
pyOpt

Previous topic

Objective

Next topic

Constraint

Variable

class pyOpt_variable.Variable(name, type='c', value=0.0, *args, **kwargs)

Optimization Variable Class

Variable Class Initialization

Arguments:

  • name -> STR: Variable Name

Keyword arguments:

  • type -> STR: Variable Type (‘c’-continuous, ‘i’-integer, ‘d’-discrete), Default = ‘c’
  • value -> INT/FLOAT: Variable Value, Default = 0.0
  • lower -> INT/FLOAT: Variable Lower Value
  • upper -> INT/FLOAT: Variable Upper Value
  • choices -> LIST: Variable Choices

Documentation last updated: Feb. 07, 2011 - Peter W. Jansen