# ImpedanceOptimisationGoal

An impedance optimisation goal.

## Example

application = cf.Application.GetInstance()
voltageSource = project.Contents.SolutionConfigurations.GlobalSources["VoltageSource1"]

-- Create an impedance optimisation goal with focus on the 'VoltageSource'

properties = cf.ImpedanceOptimisationGoal.GetDefaultProperties()
properties.FocusSource = voltageSource
properties.GoalOperator = cf.Enums.OptimisationGoalOperatorEnum.LessThan
properties.Objective.TargetValue = "1.5"

-- Change the focus type to transmission coefficient and reference impedance of 75 ohm

impedanceGoal.FocusType = cf.Enums.OptimisationImpedanceFocusTypeEnum.TransmissionCoefficient
impedanceGoal.ReferenceImpedance = 75

## Inheritance

The ImpedanceOptimisationGoal object is derived from the OptimisationGoal object.

## Usage locations

The ImpedanceOptimisationGoal object can be accessed from the following locations:

## Property List

FocusSource
Set the focus source to a specified source object. The intended usage is for when the source is defined in CADFEKO. (Read/Write VoltageSource)
FocusSourceLabel
Set the source focus label. The intended usage is for when the source is defined only in EDITFEKO. (Read/Write string)
FocusType
Set the focus type. (Read/Write OptimisationImpedanceFocusTypeEnum)
GoalOperator
The goal operator indicates the desired relationship between the goal focus and the objective. (Read/Write OptimisationGoalOperatorEnum)
Label
Objective
The objective describes a state that the optimisation process should attempt to achieve. (Read only OptimisationGoalObjective)
ProcessingSteps
A number of conversion steps or mathematical operations to be carried out on the goal focus before the goal is evaluated. (Read/Write OptimisationGoalProcessingStepsList)
ReferenceImpedance
Type
The object type string. (Read only string)
Weight
Specify the optimisation weight. (Read/Write ParametricExpression)

## Method List

Delete ()
Deletes the entity.
Duplicate ()
Duplicates the entity. (Returns a Object object.)
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
SetProperties (properties Object)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.

## Static Function List

GetDefaultProperties ()
Creates a table containing the default settings to create an object. (Returns a table object.)

## Property Details

FocusSource
Set the focus source to a specified source object. The intended usage is for when the source is defined in CADFEKO.
Type
VoltageSource
Access
FocusSourceLabel
Set the source focus label. The intended usage is for when the source is defined only in EDITFEKO.
Type
string
Access
FocusType
Set the focus type.
Type
OptimisationImpedanceFocusTypeEnum
Access
GoalOperator
The goal operator indicates the desired relationship between the goal focus and the objective.
Type
OptimisationGoalOperatorEnum
Access
Label
The object label.
Type
string
Access
Objective
The objective describes a state that the optimisation process should attempt to achieve.
Type
OptimisationGoalObjective
Access
ProcessingSteps
A number of conversion steps or mathematical operations to be carried out on the goal focus before the goal is evaluated.
Type
OptimisationGoalProcessingStepsList
Access
ReferenceImpedance
Reference impedance.
Type
ParametricExpression
Access
Type
The object type string.
Type
string
Access
Weight
Specify the optimisation weight.
Type
ParametricExpression
Access

## Method Details

Delete ()
Deletes the entity.
Duplicate ()
Duplicates the entity.
Return
Object
The new (duplicated) entity.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
Return
table
A table defining the properties.
SetProperties (properties Object)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Input Parameters
properties(Object)
A table of properties defining the new state of the object.

## Static Function Details

GetDefaultProperties ()
Creates a table containing the default settings to create an object.
Return
table
A table containing the default properties.