Description
Properties for a DE Optimizer profile.
Object Model
Public Properties
Interfaces
Example
Configure result from
a maneuver segment with Design Explorer Optimizer
[C#] |
Copy Code
|
IAgVAMCSManeuver maneuver = sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypeManeuver, "MyManeuver", "-") as IAgVAMCSManeuver;
((IAgVAMCSSegment)maneuver).Results.Add("Access/Access");
string deoStr = "Design Explorer Optimizer";
if (Array.IndexOf(sequence.Profiles.AvailableProfiles, deoStr) != -1)
{
IAgVAProfileDEOptimizer deo = sequence.Profiles.Add(deoStr) as IAgVAProfileDEOptimizer;
IAgVADEResult altitudeResult = deo.Results.GetResultByPaths("MyManeuver", "Access");
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";
if (Array.IndexOf(sequence.Profiles.AvailableProfiles, deoStr) != -1)
{
IAgVAMCSPropagate propagate = sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypePropagate, "MyPropagate", "-") as IAgVAMCSPropagate;
IAgVAStoppingConditionElement durationControl = propagate.StoppingConditions["Duration"];
durationControl.EnableControlParameter(AgEVAControlStoppingCondition.eVAControlStoppingConditionTripValue);
IAgVAProfileDEOptimizer deo = sequence.Profiles.Add(deoStr) as IAgVAProfileDEOptimizer;
IAgVADEControlCollection controls = deo.ControlParameters;
IAgVADEControl prop1Duration = controls.GetControlByPaths("MyPropagate", "StoppingConditions.Duration.TripValue");
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
|
Dim maneuver As IAgVAMCSManeuver =
TryCast(sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypeManeuver,
"MyManeuver", "-"), IAgVAMCSManeuver)
DirectCast(maneuver, IAgVAMCSSegment).Results.Add("Access/Access")
Dim deoStr As String =
"Design Explorer Optimizer"
If Array.IndexOf(sequence.Profiles.AvailableProfiles,
deoStr) <> -1 Then
Dim deo
As IAgVAProfileDEOptimizer =
TryCast(sequence.Profiles.Add(deoStr), IAgVAProfileDEOptimizer)
Dim
altitudeResult As IAgVADEResult =
deo.Results.GetResultByPaths("MyManeuver", "Access")
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"
If Array.IndexOf(sequence.Profiles.AvailableProfiles,
deoStr) <> -1 Then
Dim propagate
As IAgVAMCSPropagate =
TryCast(sequence.Segments.Insert(AgEVASegmentType.eVASegmentTypePropagate,
"MyPropagate", "-"), IAgVAMCSPropagate)
Dim
durationControl As
IAgVAStoppingConditionElement =
propagate.StoppingConditions("Duration")
durationControl.EnableControlParameter(AgEVAControlStoppingCondition.eVAControlStoppingConditionTripValue)
Dim deo
As IAgVAProfileDEOptimizer =
TryCast(sequence.Profiles.Add(deoStr), IAgVAProfileDEOptimizer)
Dim controls
As IAgVADEControlCollection =
deo.ControlParameters
Dim
prop1Duration As IAgVADEControl =
controls.GetControlByPaths("MyPropagate", "StoppingConditions.Duration.TripValue")
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