AGI STK Astrogator 11 Send comments on this topic.
IAgVAProfileDEOptimizer Interface





Description

Properties for a DE Optimizer profile.

Object Model





Public Properties

Public Property ControlParameters The list of control parameters defined for the profile.
Public Property DetailLog Detail Log.
Public Property EnableDisplayStatus If true, a page will appear during the targeting run to report the status of the targeting effort in terms of proximity to the desired value for each dependent variable in the profile.
Public Property EnforceDesignVariableBounds Controls whether the optimizer can go outside the control bounds.
Public Property EngineLog Engine Log.
Public Property GenerateResultsFile Generate results file.
Public Property MaxEvaluations The maximum number of evaluations of the target sequence allowed. Dimensionless.
Public Property MaxIterations This property is deprecated. Use MaxEvaluations instead.
Public Property PerturbationSize Perturbation size. Dimensionless.
Public Property ResetControlsBeforeRun Reset controls before each run.
Public Property Results The list of results defined for the profile.
Public Property ScriptingTool Returns the Scripting tool for the sequence.
Public Property SummaryLog Summary Log.
Public Property TargeterGraphs Graphs
Public Property ToleranceOnConstraintFeasibility Tolerance on constraint feasibility. Dimensionless.
Public Property ToleranceOnObjectiveFunction Tolerance on objective function. Dimensionless.
Public Property ToleranceOnProjectedGradient Tolerance on projected gradient. Dimensionless
Public Property UseAdvancedDefaults Use defaults for advanced options.
Public Property UseDefaults Use defaults for general options.
Public Property UseGlobalPerturbationSize Use global perturbation size for calculating gradients.

Interfaces

Implemented Interface
IAgVAProfile

Example

Configure result from a maneuver segment with Design Explorer Optimizer
[C#] Copy Code
// Add a maneuver segment on the Target Sequence in order to provide access result 
IAgVAMCSManeuver maneuver = sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypeManeuver, "MyManeuver""-"as IAgVAMCSManeuver; 
 
// Add results the Access result to the manuever 
((IAgVAMCSSegment)maneuver).Results.Add("Access/Access"); 
 
string deoStr = "Design Explorer Optimizer"
 
// Retrieve sequence profile 
if (Array.IndexOf(sequence.Profiles.AvailableProfiles, deoStr) != -1

    IAgVAProfileDEOptimizer deo = sequence.Profiles.Add(deoStr) as IAgVAProfileDEOptimizer; 
 
    // Retrieve result reference 
    IAgVADEResult altitudeResult = deo.Results.GetResultByPaths("MyManeuver""Access"); 
 
    // Configure VADEResult properties 
 
    altitudeResult.Enable = true
    altitudeResult.Goal = AgEVADEGoal.eVADEGoalMaximize; 
    altitudeResult.Weight = 2.00000
    altitudeResult.ScalingMethod = AgEVADEScalingMethod.eVADEScalingMethodInitialValue; 

 

Configure control from a propagate segment with Design Explorer Optimizer
[C#] Copy Code
string deoStr = "Design Explorer Optimizer"
 
// Retrieve sequence profile 
if (Array.IndexOf(sequence.Profiles.AvailableProfiles, deoStr) != -1

    // Add a propagate segment on the Target Sequence in order to provide a control 
    IAgVAMCSPropagate propagate = sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypePropagate, "MyPropagate""-"as IAgVAMCSPropagate; 
 
    // Enable the propagate "StoppingConditions.Duration.TripValue" control 
    IAgVAStoppingConditionElement durationControl = propagate.StoppingConditions["Duration"]; 
    durationControl.EnableControlParameter(AgEVAControlStoppingCondition.eVAControlStoppingConditionTripValue); 
 
    IAgVAProfileDEOptimizer deo = sequence.Profiles.Add(deoStr) as IAgVAProfileDEOptimizer; 
 
    // Retrieve result reference 
    IAgVADEControlCollection controls = deo.ControlParameters; 
    IAgVADEControl prop1Duration = controls.GetControlByPaths("MyPropagate""StoppingConditions.Duration.TripValue"); 
 
    // Configure IAgVADEControl properties 
    prop1Duration.Enable = true
    prop1Duration.Perturbation = 0.01
    prop1Duration.LowerBound = 0
    prop1Duration.UpperBound = 43200
    prop1Duration.ScalingMethod = AgEVADEScalingMethod.eVADEScalingMethodCustom; 
    prop1Duration.ScalingValue = 0.000055

 

Configure result from a maneuver segment with Design Explorer Optimizer
[Visual Basic .NET] Copy Code
' Add a maneuver segment on the Target Sequence in order to provide access result
Dim maneuver As IAgVAMCSManeuver = TryCast(sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypeManeuver, "MyManeuver", "-"), IAgVAMCSManeuver)

' Add results the Access result to the manuever
DirectCast(maneuver, IAgVAMCSSegment).Results.Add("Access/Access")

Dim deoStr As String = "Design Explorer Optimizer"

' Retrieve sequence profile
If Array.IndexOf(sequence.Profiles.AvailableProfiles, deoStr) <> -1 Then
    Dim deo As IAgVAProfileDEOptimizer = TryCast(sequence.Profiles.Add(deoStr), IAgVAProfileDEOptimizer)

    ' Retrieve result reference
    Dim altitudeResult As IAgVADEResult = deo.Results.GetResultByPaths("MyManeuver", "Access")

    ' Configure VADEResult properties

    altitudeResult.Enable = True
    altitudeResult.Goal = AgEVADEGoal.eVADEGoalMaximize
    altitudeResult.Weight = 2
    altitudeResult.ScalingMethod = AgEVADEScalingMethod.eVADEScalingMethodInitialValue
End If

Configure control from a propagate segment with Design Explorer Optimizer
[Visual Basic .NET] Copy Code
Dim deoStr As String = "Design Explorer Optimizer"

' Retrieve sequence profile
If Array.IndexOf(sequence.Profiles.AvailableProfiles, deoStr) <> -1 Then
    ' Add a propagate segment on the Target Sequence in order to provide a control
    Dim propagate As IAgVAMCSPropagate = TryCast(sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypePropagate, "MyPropagate", "-"), IAgVAMCSPropagate)

    ' Enable the propagate "StoppingConditions.Duration.TripValue" control
    Dim durationControl As IAgVAStoppingConditionElement = propagate.StoppingConditions("Duration")
    durationControl.EnableControlParameter(AgEVAControlStoppingCondition.eVAControlStoppingConditionTripValue)

    Dim deo As IAgVAProfileDEOptimizer = TryCast(sequence.Profiles.Add(deoStr), IAgVAProfileDEOptimizer)

    ' Retrieve result reference
    Dim controls As IAgVADEControlCollection = deo.ControlParameters
    Dim prop1Duration As IAgVADEControl = controls.GetControlByPaths("MyPropagate", "StoppingConditions.Duration.TripValue")

    ' Configure IAgVADEControl properties
    prop1Duration.Enable = True
    prop1Duration.Perturbation = 0.01
    prop1Duration.LowerBound = 0
    prop1Duration.UpperBound = 43200
    prop1Duration.ScalingMethod = AgEVADEScalingMethod.eVADEScalingMethodCustom
    prop1Duration.ScalingValue = 5.5E-05
End If

CoClasses that Implement IAgVAProfileDEOptimizer

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1