# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2022 EDF R&D
+# Copyright (C) 2008-2023 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
"Fonction de simulation H pour effectuer Y=H(X)"
import numpy
__x = numpy.ravel(x)
- __H = numpy.diag([1.,2.,3.])
+ __H = numpy.array([[1,0,0],[0,2,0],[0,0,3],[1,2,3]])
return __H @ __x
#
def multisimulation( xserie ):
Algorithm = '3DVAR',
Parameters = {
"Bounds":Bounds,
- "MaximumNumberOfSteps":100,
+ "MaximumNumberOfIterations":100,
"StoreSupplementaryCalculations":[
"CostFunctionJ",
"CurrentState",
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):