OptimisationVariable
Variable.
Example
app = cf.GetApplication() project = app:NewProject() -- Add an optimisation search with the frequency as parameter freq = project.Variables:Add("freq", 10e6) search = project.Optimisation.Searches:Add(cf.Enums.OptimisationMethodTypeEnum.GridSearch) search.Parameters.Variables:Add(freq, 1e6, 100e6) -- Set the start value of the frequency optimisation variable to 10e6 search.Parameters.Variables[1].MinimumValue = 10e6
Property List
- Enabled
- Enables the variable for use in the optimisation. (Read/Write boolean)
- MaximumValue
- The maximum value of the variable. (Read/Write Expression)
- MinimumValue
- The minimum value of the variable. (Read/Write Expression)
- NumberOfGridPoints
- The number of grid points used. (Read/Write Expression)
- StartValue
- The start value of the variable. (Read/Write Expression)
- Variable
- Variable that will limited to a range. (Read/Write Variable)
Property Details
- Enabled
- Enables the variable for use in the optimisation.
- Type
- boolean
- Access
- Read/Write
- MaximumValue
- The maximum value of the variable.
- Type
- Expression
- Access
- Read/Write
- MinimumValue
- The minimum value of the variable.
- Type
- Expression
- Access
- Read/Write
- NumberOfGridPoints
- The number of grid points used.
- Type
- Expression
- Access
- Read/Write
- StartValue
- The start value of the variable.
- Type
- Expression
- Access
- Read/Write
- Variable
- Variable that will limited to a range.
- Type
- Variable
- Access
- Read/Write