Class FieldPenalizedCartesianFuelCost<T extends CalculusFieldElement<T>>

    • Constructor Detail

      • FieldPenalizedCartesianFuelCost

        protected FieldPenalizedCartesianFuelCost​(String name,
                                                  T massFlowRateFactor,
                                                  T maximumThrustMagnitude,
                                                  T epsilon,
                                                  FieldEventDetectionSettings<T> eventDetectionSettings)
        Constructor.
        Parameters:
        name - adjoint name
        massFlowRateFactor - mass flow rate factor
        maximumThrustMagnitude - maximum thrust magnitude
        epsilon - penalty weight
        eventDetectionSettings - detection settings
    • Method Detail

      • getEpsilon

        public T getEpsilon()
        Getter for the penalty weight epsilon.
        Returns:
        epsilon
      • getMaximumThrustMagnitude

        public T getMaximumThrustMagnitude()
        Getter for maximum thrust magnitude.
        Returns:
        maximum thrust
      • getEventDetectionSettings

        public FieldEventDetectionSettings<T> getEventDetectionSettings()
        Getter for the event detection settings.
        Returns:
        detection settings
      • evaluateFieldPenaltyFunction

        public abstract T evaluateFieldPenaltyFunction​(T controlNorm)
        Evaluate the penalty term (without the weight), assumed to be a function of the control norm.
        Parameters:
        controlNorm - Euclidean norm of control vector
        Returns:
        penalty function
      • getFieldThrustDirection

        protected FieldVector3D<T> getFieldThrustDirection​(T[] adjointVariables)
        Computes the direction of thrust.
        Parameters:
        adjointVariables - adjoint vector
        Returns:
        thrust direction
      • getFieldHamiltonianContribution

        public T getFieldHamiltonianContribution​(T[] adjointVariables,
                                                 T mass)
        Computes the Hamiltonian contribution of the cost function.
        Parameters:
        adjointVariables - adjoint vector
        mass - mass
        Returns:
        contribution to Hamiltonian