Class AbstractCartesianCost

    • Constructor Detail

      • AbstractCartesianCost

        protected AbstractCartesianCost​(String name,
                                        double massFlowRateFactor)
        Constructor.
        Parameters:
        name - name
        massFlowRateFactor - mass flow rate factor
    • Method Detail

      • getAdjointDimension

        public int getAdjointDimension()
        Getter for adjoint vector dimension.
        Specified by:
        getAdjointDimension in interface CartesianCost
        Returns:
        adjoint dimension
      • getMassFlowRateFactor

        public double getMassFlowRateFactor()
        Getter for mass flow rate factor. It is negated and multiplied by the thrust force magnitude to obtain the mass time derivative. The fact that it is a constant means that the exhaust speed is assumed to be independent of time.
        Specified by:
        getMassFlowRateFactor in interface CartesianCost
        Returns:
        mass flow rate factor
      • getAdjointVelocityNorm

        protected double getAdjointVelocityNorm​(double[] adjointVariables)
        Computes the Euclidean norm of the adjoint velocity vector.
        Parameters:
        adjointVariables - adjoint vector
        Returns:
        norm of adjoint velocity
      • buildSwitchDetector

        protected EventDetector buildSwitchDetector​(ControlSwitchFunction controlSwitchFunction,
                                                    EventDetectionSettings detectionSettings)
        Build event detector for control switches.
        Parameters:
        controlSwitchFunction - switch function
        detectionSettings - event detection settings
        Returns:
        event detector
        Since:
        14.0