- or "CostFunctionJ" in self._parameters["StoreSupplementaryCalculations"] \
- or "CostFunctionJb" in self._parameters["StoreSupplementaryCalculations"] \
- or "CostFunctionJo" in self._parameters["StoreSupplementaryCalculations"]:
+ or self._toStore("PredictedState"):
+ self.StoredVariables["PredictedState"].store( Xn_predicted )
+ if self._parameters["StoreInternalVariables"] \
+ or self._toStore("CostFunctionJ") \
+ or self._toStore("CostFunctionJb") \
+ or self._toStore("CostFunctionJo"):