Class QuadraticPenaltyCartesianFuel
java.lang.Object
org.orekit.control.indirect.adjoint.cost.AbstractCartesianCost
org.orekit.control.indirect.adjoint.cost.PenalizedCartesianFuelCost
org.orekit.control.indirect.adjoint.cost.QuadraticPenaltyCartesianFuel
- All Implemented Interfaces:
CartesianCost
Fuel cost penalized with a quadratic term. For epsilon equal to 1, one gets the bounded energy cost.
- Since:
- 13.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQuadraticPenaltyCartesianFuel(String name, double massFlowRateFactor, double maximumThrustMagnitude, double epsilon) Constructor with default event detection settings.QuadraticPenaltyCartesianFuel(String name, double massFlowRateFactor, double maximumThrustMagnitude, double epsilon, EventDetectionSettings eventDetectionSettings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluatePenaltyFunction(double controlNorm) Evaluate the penalty term (without the weight), assumed to be a function of the control norm.Getter for the event detection settings.Get the detectors needed for propagation.getThrustAccelerationVector(double[] adjointVariables, double mass) Computes the thrust acceleration vector in propagation frame from the adjoint variables and the mass.voidupdateAdjointDerivatives(double[] adjointVariables, double mass, double[] adjointDerivatives) Update the adjoint derivatives if necessary.Methods inherited from class org.orekit.control.indirect.adjoint.cost.PenalizedCartesianFuelCost
getEpsilon, getHamiltonianContribution, getMaximumThrustMagnitude, getThrustDirectionMethods inherited from class org.orekit.control.indirect.adjoint.cost.AbstractCartesianCost
buildSwitchDetector, getAdjointDimension, getAdjointName, getAdjointVelocityNorm, getMassFlowRateFactorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.control.indirect.adjoint.cost.CartesianCost
getCostDerivativeProvider
-
Constructor Details
-
QuadraticPenaltyCartesianFuel
public QuadraticPenaltyCartesianFuel(String name, double massFlowRateFactor, double maximumThrustMagnitude, double epsilon, EventDetectionSettings eventDetectionSettings) Constructor.- Parameters:
name- adjoint namemassFlowRateFactor- mass flow rate factormaximumThrustMagnitude- maximum thrust magnitudeepsilon- penalty weighteventDetectionSettings- detection settings
-
QuadraticPenaltyCartesianFuel
public QuadraticPenaltyCartesianFuel(String name, double massFlowRateFactor, double maximumThrustMagnitude, double epsilon) Constructor with default event detection settings.- Parameters:
name- adjoint namemassFlowRateFactor- mass flow rate factormaximumThrustMagnitude- maximum thrust magnitudeepsilon- penalty weight
-
-
Method Details
-
getEventDetectionSettings
Getter for the event detection settings.- Returns:
- detection settings
-
evaluatePenaltyFunction
public double evaluatePenaltyFunction(double controlNorm) Evaluate the penalty term (without the weight), assumed to be a function of the control norm.- Specified by:
evaluatePenaltyFunctionin classPenalizedCartesianFuelCost- Parameters:
controlNorm- Euclidean norm of control vector- Returns:
- penalty function
-
getThrustAccelerationVector
Computes the thrust acceleration vector in propagation frame from the adjoint variables and the mass.- Parameters:
adjointVariables- adjoint vectormass- mass- Returns:
- thrust vector
-
updateAdjointDerivatives
public void updateAdjointDerivatives(double[] adjointVariables, double mass, double[] adjointDerivatives) Update the adjoint derivatives if necessary.- Parameters:
adjointVariables- adjoint vectormass- massadjointDerivatives- derivatives to update
-
getEventDetectors
Get the detectors needed for propagation.- Returns:
- event detectors
-