.. ------------------------------------ ..
.. _section_ref_algorithm_3DVAR_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_3DVAR.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_4DVAR_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_3DVAR`
.. ------------------------------------ ..
.. _section_ref_algorithm_AdjointTest_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_AdjointTest.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_Blue_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_Blue.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_DerivativeFreeOptimization_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_DerivativeFreeOptimization.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_DifferentialEvolution_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_DerivativeFreeOptimization`
.. ------------------------------------ ..
.. _section_ref_algorithm_EnsembleBlue_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_Blue`
.. ------------------------------------ ..
.. _section_ref_algorithm_EnsembleKalmanFilter_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_KalmanFilter`
.. ------------------------------------ ..
.. _section_ref_algorithm_EnsembleOfSimulationGenerationTask_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_ExtendedBlue_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_ExtendedBlue.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_ExtendedKalmanFilter_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_KalmanFilter`
.. ------------------------------------ ..
.. _section_ref_algorithm_FunctionTest_examples:
+
.. include:: snippets/Header2Algo09.rst
.. --------- ..
.. ------------------------------------ ..
.. _section_ref_algorithm_GradientTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. include:: snippets/SetDebug.rst
.. ------------------------------------ ..
+.. _section_ref_algorithm_InputValuesTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_KalmanFilter_examples:
+
.. include:: snippets/Header2Algo09.rst
.. --------- ..
.. ------------------------------------ ..
.. _section_ref_algorithm_LinearLeastSquares_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_Blue`
.. ------------------------------------ ..
.. _section_ref_algorithm_LinearityTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_LocalSensitivityTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_MeasurementsOptimalPositioningTask_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_NonLinearLeastSquares_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_NonLinearLeastSquares.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_ParallelFunctionTest_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_ParallelFunctionTest.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_ParticleSwarmOptimization_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_DerivativeFreeOptimization`
.. ------------------------------------ ..
.. _section_ref_algorithm_QuantileRegression_examples:
+
.. include:: snippets/Header2Algo06.rst
.. ------------------------------------ ..
.. ------------------------------------ ..
.. _section_ref_algorithm_SamplingTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_TabuSearch_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_DerivativeFreeOptimization`
.. ------------------------------------ ..
.. _section_ref_algorithm_TangentTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_UnscentedKalmanFilter_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_KalmanFilter`
.. ------------------------------------ ..
.. _section_ref_algorithm_3DVAR_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_3DVAR.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_4DVAR_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_3DVAR`
vérification, on prend :math:`\mathbf{dx}_0=Normal(0,\mathbf{x})` et
:math:`\mathbf{dx}=\alpha_0*\mathbf{dx}_0` avec :math:`\alpha_0` un paramètre
utilisateur de mise à l'échelle, par défaut à 1. :math:`F` est l'opérateur ou
-le code de calcul (qui est ici acquis par la commande d'opérateur d'observation
+le code de calcul (qui est ici défini par la commande d'opérateur d'observation
"*ObservationOperator*").
On observe le résidu suivant, qui est la différence de deux produits scalaires :
.. ------------------------------------ ..
.. _section_ref_algorithm_AdjointTest_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_AdjointTest.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_Blue_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_Blue.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_DerivativeFreeOptimization_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_DerivativeFreeOptimization.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_DifferentialEvolution_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_DerivativeFreeOptimization`
.. ------------------------------------ ..
.. _section_ref_algorithm_EnsembleBlue_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_Blue`
.. ------------------------------------ ..
.. _section_ref_algorithm_EnsembleKalmanFilter_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_KalmanFilter`
.. ------------------------------------ ..
.. _section_ref_algorithm_EnsembleOfSimulationGenerationTask_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_ExtendedBlue_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_ExtendedBlue.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_ExtendedKalmanFilter_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_KalmanFilter`
.. ------------------------------------ ..
.. _section_ref_algorithm_FunctionTest_examples:
+
.. include:: snippets/Header2Algo09.rst
.. --------- ..
.. ------------------------------------ ..
.. _section_ref_algorithm_GradientTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. include:: snippets/SetDebug.rst
.. ------------------------------------ ..
+.. _section_ref_algorithm_InputValuesTest_examples:
+
.. include:: snippets/Header2Algo06.rst
+- :ref:`section_ref_algorithm_ControledFunctionTest`
- :ref:`section_ref_algorithm_FunctionTest`
- :ref:`section_ref_algorithm_ParallelFunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_KalmanFilter_examples:
+
.. include:: snippets/Header2Algo09.rst
.. --------- ..
.. ------------------------------------ ..
.. _section_ref_algorithm_LinearLeastSquares_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_Blue`
.. ------------------------------------ ..
.. _section_ref_algorithm_LinearityTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_LocalSensitivityTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_MeasurementsOptimalPositioningTask_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_NonLinearLeastSquares_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_NonLinearLeastSquares.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_ParallelFunctionTest_examples:
+
.. include:: snippets/Header2Algo09.rst
.. include:: scripts/simple_ParallelFunctionTest.rst
.. ------------------------------------ ..
.. _section_ref_algorithm_ParticleSwarmOptimization_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_DerivativeFreeOptimization`
.. ------------------------------------ ..
.. _section_ref_algorithm_QuantileRegression_examples:
+
.. include:: snippets/Header2Algo06.rst
.. ------------------------------------ ..
.. ------------------------------------ ..
.. _section_ref_algorithm_SamplingTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_TabuSearch_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_DerivativeFreeOptimization`
vérification, on prend :math:`\mathbf{dx}_0=Normal(0,\mathbf{x})` et
:math:`\mathbf{dx}=\alpha_0*\mathbf{dx}_0` avec :math:`\alpha_0` un paramètre
utilisateur de mise à l'échelle, par défaut à 1. :math:`F` est l'opérateur ou
-le code de calcul (qui est ici acquis par la commande d'opérateur d'observation
+le code de calcul (qui est ici défini par la commande d'opérateur d'observation
"*ObservationOperator*").
On observe le résidu suivant, provenant du rapport d'incréments utilisant
.. include:: snippets/InitialDirection.rst
+.. include:: snippets/NumberOfPrintedDigits.rst
+
.. include:: snippets/SetSeed.rst
StoreSupplementaryCalculations
.. ------------------------------------ ..
.. _section_ref_algorithm_TangentTest_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_FunctionTest`
.. ------------------------------------ ..
.. _section_ref_algorithm_UnscentedKalmanFilter_examples:
+
.. include:: snippets/Header2Algo06.rst
- :ref:`section_ref_algorithm_KalmanFilter`
print("")
print(" Les résultats obtenus sont corrects.")
print("")
- #
- return 0
def compare_versions(v1,v2):
"Comparaison v1 >= v2"
else:
print(' - Lapack............: numpy n\'indique plus où le trouver')
print("")
- return True
#~ @unittest.skip("Debug")
def test_Numpy01(self, dimension = 10000, precision = 1.e-17, repetitions = 10):
#
xa = case.get("Analysis")[-1]
Test_Adao.results.append( xa )
- return xa
def test2(self):
"""Test"""
#
xa = case.get("Analysis")[-1]
Test_Adao.results.append( xa )
- return xa
def test3(self):
"""Test"""
print(" L'écart absolu maximal obtenu lors du test est de %.2e."%ecart)
print(" Les résultats obtenus sont corrects.")
print("")
- #
- return xa
# ==============================================================================
def assertAlmostEqualArrays(first, second, places=7, msg=None, delta=None):
print(" L'écart absolu maximal obtenu lors du test est de %.2e."%ecart)
print(" Les résultats obtenus sont corrects.")
print("")
- #
- return xa
# ==============================================================================
def assertAlmostEqualArrays(first, second, places=7, msg=None, delta=None):
print(" L'écart absolu maximal obtenu lors du test est de %.2e."%ecart)
print(" Les résultats obtenus sont corrects.")
print("")
- #
- return xa
# ==============================================================================
def filesize(name):
verify_similarity_of_algo_results(("KalmanFilter", "EnsembleKalmanFilter"), Xa, 2.e-1)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
def test2(self):
"""Verification de la disponibilite de l'ensemble des algorithmes\n(Utilisation d'un operateur fonctionnel)"""
verify_similarity_of_algo_results(("KalmanFilter", "EnsembleKalmanFilter"), Xa, 2e-1)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
"""Comparaison de deux vecteurs"""
verify_similarity_of_algo_results(("Multi/"+algo, "Mono/"+algo), Xa, 1.e-20)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
#
# ==============================================================================
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
verify_similarity_of_algo_results(("Multi/"+algo, "Mono/"+algo), Xa, 1.e-20)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
# ==============================================================================
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
verify_similarity_of_algo_results(("Multi/"+algo, "Mono/"+algo), Xa, 1.e-20)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
# ==============================================================================
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
verify_similarity_of_algo_results(("Multi/"+algo, "Mono/"+algo), Xa, 1.e-20)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
# ==============================================================================
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
verify_similarity_of_algo_results(("Multi/"+algo, "Mono/"+algo), Xa, 1.e-20)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
# ==============================================================================
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
verify_similarity_of_algo_results(("Multi/"+algo, "Mono/"+algo), Xa, 1.e-20)
print(" Les resultats obtenus sont corrects.")
print("")
- #
- return 0
# ==============================================================================
def almost_equal_vectors(v1, v2, precision = 1.e-15, msg = ""):
print("The results are correct.")
print("")
#
- return Xoptimum
+ # return Xoptimum
# ==============================================================================
def assertAlmostEqualArrays(first, second, places=7, msg=None, delta=None):
print("The results are correct.")
print("")
#
- return Xoptimum
+ # return Xoptimum
# ==============================================================================
def assertAlmostEqualArrays(first, second, places=7, msg=None, delta=None):
print("The results are correct.")
print("")
#
- return Xoptimum
+ # return Xoptimum
# ==============================================================================
def assertAlmostEqualArrays(first, second, places=7, msg=None, delta=None):