From: Jean-Philippe ARGAUD Date: Thu, 5 Apr 2012 08:23:28 +0000 (+0200) Subject: Correcting and extending algorithmic choices for ADAO X-Git-Tag: V6_5_0~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6fbe106fdaab6295f3c011c50ff7d0e4aaa92606;p=modules%2Fadao.git Correcting and extending algorithmic choices for ADAO --- diff --git a/src/daSalome/daYacsSchemaCreator/infos_daComposant.py b/src/daSalome/daYacsSchemaCreator/infos_daComposant.py index 3c03f5e..1aa9c8c 100644 --- a/src/daSalome/daYacsSchemaCreator/infos_daComposant.py +++ b/src/daSalome/daYacsSchemaCreator/infos_daComposant.py @@ -17,7 +17,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# Author: André Ribes, andre.ribes@edf.fr, EDF R&D +# Author: Andre Ribes, andre.ribes@edf.fr, EDF R&D # -- Infos pour le parser -- @@ -26,14 +26,11 @@ AnalysisData = {} AnalysisFromList = ["String", "Script"] # -- Infos from daCore -- -#AssimData = ["Background", "BackgroundError", -# "Observation", "ObservationError", "ObservationOperator", "ObservationOperatorAppliedToX", -# "EvolutionModel", "EvolutionError", "AlgorithmParameters"] - AssimData = ["Background", "BackgroundError", - "Observation", "ObservationError", "ObservationOperator", - "EvolutionModel", "EvolutionError", "AlgorithmParameters"] - + "Observation", "ObservationError", + "EvolutionModel", "EvolutionError", + "ObservationOperator", + "AlgorithmParameters"] AssimType = {} AssimType["Background"] = ["Vector"] @@ -43,7 +40,6 @@ AssimType["ObservationError"] = ["Matrix"] AssimType["ObservationOperator"] = ["Matrix", "Function"] AssimType["AlgorithmParameters"] = ["Dict"] AssimType["UserDataInit"] = ["Dict"] -#AssimType["ObservationOperatorAppliedToX"] = ["List"] FromNumpyList = {} FromNumpyList["Vector"] = ["String", "Script"] @@ -52,24 +48,57 @@ FromNumpyList["Function"] = ["FunctionDict"] FromNumpyList["Dict"] = ["Script"] # -- Infos from daAlgorithms -- -AssimAlgos = ["Blue", "EnsembleBlue", "KalmanFilter", "LinearLeastSquares", "3DVAR"] +AssimAlgos = [ + "3DVAR", + "Blue", + "EnsembleBlue", + "KalmanFilter", + "LinearLeastSquares", + "NonLinearLeastSquares", + ] AlgoDataRequirements = {} -AlgoDataRequirements["Blue"] = ["Background", "BackgroundError", - "Observation", "ObservationOperator", "ObservationError"] +AlgoDataRequirements["3DVAR"] = [ + "Background", "BackgroundError", + "Observation", "ObservationError", + "ObservationOperator", + ] +AlgoDataRequirements["Blue"] = [ + "Background", "BackgroundError", + "Observation", "ObservationError", + "ObservationOperator", + ] +AlgoDataRequirements["EnsembleBlue"] = [ + "Background", "BackgroundError", + "Observation", "ObservationError", + "ObservationOperator", + ] +AlgoDataRequirements["KalmanFilter"] = [ + "Background", "BackgroundError", + "Observation", "ObservationError", + "EvolutionModel", "EvolutionError", + "ObservationOperator", + ] +AlgoDataRequirements["LinearLeastSquares"] = [ + "Observation", "ObservationError", + "ObservationOperator", + ] +AlgoDataRequirements["NonLinearLeastSquares"] = [ + "Observation", "ObservationError", + "ObservationOperator", + ] -AlgoDataRequirements["3DVAR"] = ["Background", "BackgroundError", - "Observation", "ObservationOperator", "ObservationError"] AlgoType = {} -AlgoType["Blue"] = "Optim" AlgoType["3DVAR"] = "Optim" +AlgoType["Blue"] = "Optim" AlgoType["EnsembleBlue"] = "Optim" AlgoType["KalmanFilter"] = "Optim" AlgoType["LinearLeastSquares"] = "Optim" +AlgoType["NonLinearLeastSquares"] = "Optim" #AlgoType["Blue"] = "Direct" -# Variables qui sont partagés avec le générateur de +# Variables qui sont partages avec le generateur de # catalogue Eficas # Basic data types @@ -80,7 +109,7 @@ DataTypeDict = {} DataTypeDict["Vector"] = ["String", "Script"] DataTypeDict["Matrix"] = ["String", "Script"] DataTypeDict["Function"] = ["FunctionDict"] -DataTypeDict["Dict"] = ["Script"] +DataTypeDict["Dict"] = ["String", "Script"] DataTypeDefaultDict = {} DataTypeDefaultDict["Vector"] = "Script" @@ -113,6 +142,21 @@ OptDict["UserPostAnalysis"] = ["String", "Script"] OptDefaultDict = {} OptDefaultDict["UserPostAnalysis"] = "Script" - # Observers -ObserversList = ["CostFunctionJ","CostFunctionJb","CostFunctionJo","GradientOfCostFunctionJ","GradientOfCostFunctionJb","GradientOfCostFunctionJo","CurrentState","Analysis","Innovation","SigmaObs2","SigmaBck2","OMA","OMB","BMA","CovarianceAPosteriori"] +ObserversList = [ + "Analysis", + "CurrentState", + "Innovation", + "OMA", + "OMB", + "BMA", + "CostFunctionJ", + "CostFunctionJb", + "CostFunctionJo", + "GradientOfCostFunctionJ", + "GradientOfCostFunctionJb", + "GradientOfCostFunctionJo", + "SigmaObs2", + "SigmaBck2", + "APosterioriCovariance", + ]