Salome HOME
Modif V6_4_°
[tools/eficas.git] / Openturns_Study / OpenTURNS_Cata_Study_V8.py
1 # -*- coding: iso-8859-1 -*-
2
3 # --------------------------------------------------
4 # debut entete
5 # --------------------------------------------------
6
7 #from Accas import ASSD, JDC_CATA, AU_MOINS_UN, PROC, SIMP, FACT, OPER, MACRO, BLOC, A_VALIDATOR
8 from Accas import *
9
10 class loi      ( ASSD ) : pass
11 class variable ( ASSD ) : pass
12
13 import types
14 class Tuple:
15   def __init__(self,ntuple):
16     self.ntuple=ntuple
17
18   def __convert__(self,valeur):
19     if type(valeur) == types.StringType:
20       return None
21     if len(valeur) != self.ntuple:
22       return None
23     return valeur
24
25   def info(self):
26     return "Tuple de %s elements" % self.ntuple
27
28   __repr__=info
29   __str__=info
30
31 class Matrice:
32   def __init__(self,nbLigs=None,nbCols=None,methodeCalculTaille=None,formatSortie="ligne",valSup=None,valMin=None,structure=None):
33       self.nbLigs=nbLigs
34       self.nbCols=nbCols
35       self.methodeCalculTaille=methodeCalculTaille
36       self.formatSortie=formatSortie
37       self.valSup=valSup
38       self.valMin=valMin
39       self.structure=structure
40
41   def __convert__(self,valeur):
42     # Attention ne verifie pas grand chose
43     if type(valeur) != types.ListType :
44       return None
45     return valeur
46
47   def info(self):
48       return "Matrice %s x %s" % (self.nbLigs, self.nbCols)
49
50       __repr__=info
51       __str__=info
52
53
54 #CONTEXT.debug = 1
55 JdC = JDC_CATA ( code = 'OPENTURNS_STUDY',
56                  execmodul = None,
57                  regles = ( AU_MOINS_UN ( 'CRITERIA' ),
58                             AU_MOINS_UN ( 'MODEL' ),
59                             AVANT ( ('DISTRIBUTION', 'MODEL'), 'VARIABLE' ),
60 #                            A_CLASSER ( 'VARIABLE',                'CORRELATION' ),
61 #                            A_CLASSER ( 'VARIABLE',                'CRITERIA' ),
62 #                            A_CLASSER ( 'CORRELATION',             'CRITERIA' ),
63                             ),
64                  ) # Fin JDC_CATA
65
66
67 # --------------------------------------------------
68 # fin entete
69 # --------------------------------------------------
70
71 LOG = PROC ( nom = "LOG",
72              op = None,
73              docu = "",
74                
75   DebugMessages = SIMP ( statut = "o",
76                  typ = "TXM",
77                  into = ( 'yes', 'no' ),
78                  defaut = 'no',
79                  fr = "Affichage du niveau de debug de la bibliotheque Open TURNS",
80                  ang = "Open TURNS library debug level print",
81                  ),
82                
83   WrapperMessages = SIMP ( statut = "o",
84                  typ = "TXM",
85                  into = ( 'yes', 'no' ),
86                  defaut = 'no',
87                  fr = "Affichage du niveau de wrapper de la bibliotheque Open TURNS",
88                  ang = "Open TURNS library debug level print",
89                  ),
90                
91   UserMessages = SIMP ( statut = "o",
92                  typ = "TXM",
93                  into = ( 'yes', 'no' ),
94                  defaut = 'no',
95                  fr = "Affichage du niveau de user de la bibliotheque Open TURNS",
96                  ang = "Open TURNS library user level print",
97                  ),
98                
99   InfoMessages = SIMP ( statut = "o",
100                  typ = "TXM",
101                  into = ( 'yes', 'no' ),
102                  defaut = 'yes',
103                  fr = "Affichage du niveau de info de la bibliotheque Open TURNS",
104                  ang = "Open TURNS library info level print",
105                  ),
106                
107   WarningMessages = SIMP ( statut = "o",
108                  typ = "TXM",
109                  into = ( 'yes', 'no' ),
110                  defaut = 'yes',
111                  fr = "Affichage du niveau de warning de la bibliotheque Open TURNS",
112                  ang = "Open TURNS library warning level print",
113                  ),
114                
115   ErrorMessages = SIMP ( statut = "o",
116                  typ = "TXM",
117                  into = ( 'yes', 'no' ),
118                  defaut = 'yes',
119                  fr = "Affichage du niveau de error de la bibliotheque Open TURNS",
120                  ang = "Open TURNS library error level print",
121                  ),
122                
123 ) # Fin PROC LOG
124 # Ordre Catalogue LOG
125
126
127
128
129
130 #================================
131 # Definition des LOIS
132 #================================
133
134 # Nota : les variables de type OPER doivent etre en majuscules !
135 # Nota : les variables de type OPER doivent etre de premier niveau (pas imbriquees dans un autre type)
136 DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
137                       sd_prod = loi,
138                       op = 68,
139                       fr = "Definitions des lois marginales utilisees par les variables d'entree", 
140                       
141                       
142 #====
143 # Type de distribution
144 #====
145
146   Kind = SIMP ( statut = "o", typ = "TXM",
147                 into = ( "Beta",
148                          "Exponential",
149                          "Gamma",
150                          "Geometric",
151                          "Gumbel",
152                          "Histogram",
153                          "Laplace",
154                          "Logistic",
155                          "LogNormal",
156                          "MultiNomial",
157                          "NonCentralStudent",
158                          "Normal",
159                          "Poisson",
160                          "Rayleigh",
161                          "Student",
162                          "Triangular",
163                          "TruncatedNormal",
164                          "Uniform",
165                          #"UserDefined",
166                          "Weibull",
167                          ),
168                 fr = "Choix du type de la loi marginale",
169                 ang = "1D marginal distribution",
170                 ),
171
172 #====
173 # Definition des parametres selon le type de la loi
174 #====
175
176   BETA = BLOC ( condition = " Kind in ( 'Beta', ) ",
177
178                   Settings = SIMP ( statut = "o",
179                                        typ = "TXM",
180                                        max = 1,
181                                        into = ( "RT", "MuSigma" ),
182                                        defaut = "RT",
183                                        fr = "Parametrage de la loi beta",
184                                        ang = "Beta distribution parameter set",
185                                        ),
186
187                   RT_Parameters = BLOC ( condition = " Settings in ( 'RT', ) ",
188
189                                       R = SIMP ( statut = "o",
190                                                  typ = "R",
191                                                  max = 1,
192                                                  val_min = 0.,
193                                                  fr = "Parametre R de la loi | R > 0",
194                                                  ang = "R parameter | R > 0",
195                                                  ),
196
197                                       # T > R
198                                       T = SIMP ( statut = "o",
199                                                  typ = "R",
200                                                  max = 1,
201                                                  val_min = 0.,
202                                                  fr = "Parametre T de la loi | T > R",
203                                                  ang = "T parameter | T > R",
204                                                  ),
205
206                                       ), # Fin BLOC RT_Parameters
207
208
209                   MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
210
211                                       Mu = SIMP ( statut = "o",
212                                                   typ = "R",
213                                                   max = 1,
214                                                   fr = "Moyenne de la loi",
215                                                   ang = "Mean value",
216                                                   ),
217
218                                       Sigma = SIMP ( statut = "o",
219                                                      typ = "R",
220                                                      max = 1,
221                                                      val_min = 0.,
222                                                      fr = "Ecart type de la loi",
223                                                      ang = "Standard deviation",
224                                                      ),
225
226                                       ), # Fin BLOC MuSigma_Parameters
227
228
229                   A = SIMP ( statut = "o",
230                              typ = "R",
231                              max = 1,
232                              fr = "Borne inferieure du support de la loi",
233                              ang = "Support lower bound",
234                              ),
235
236                   # B > A
237                   B = SIMP ( statut = "o",
238                              typ = "R",
239                              max = 1,
240                              fr = "Borne superieure du support de la loi",
241                              ang = "Support upper bound",
242                              ),
243
244   ), # Fin BLOC BETA
245
246
247
248   EXPONENTIAL = BLOC ( condition = " Kind in ( 'Exponential', ) ",
249
250                          Lambda = SIMP ( statut = "o",
251                                          typ = "R",
252                                          max = 1,
253                                          val_min = 0.,
254                                          fr = "Parametre Lambda | Lambda > 0",
255                                          ang = "Lambda parameter | Lambda > 0",
256                                          ),
257
258                          Gamma = SIMP ( statut = "o",
259                                         typ = "R",
260                                         max = 1,
261                                         fr = "Borne inferieure du support de la loi",
262                                         ang = "Support lower bound",
263                                         ),
264
265   ), # Fin BLOC EXPONENTIAL
266
267
268
269   GAMMA = BLOC ( condition = " Kind in ( 'Gamma', ) ",
270
271                    Settings = SIMP ( statut = "o",
272                                         typ = "TXM",
273                                         max = 1,
274                                         into = ( "KLambda", "MuSigma" ),
275                                         defaut = "KLambda",
276                                         fr = "Parametrage de la loi gamma",
277                                         ang = "Gamma distribution parameter set",
278                                         ),
279
280                    KLambda_Parameters = BLOC ( condition = " Settings in ( 'KLambda', ) ",
281
282                                        K = SIMP ( statut = "o",
283                                                   typ = "R",
284                                                   max = 1,
285                                                   val_min = 0.,
286                                                   fr = "Parametre K de la loi | K > 0",
287                                                   ang = "K parameter | K > 0",
288                                                   ),
289
290                                        Lambda = SIMP ( statut = "o",
291                                                        typ = "R",
292                                                        max = 1,
293                                                        val_min = 0.,
294                                                        fr = "Parametre Lambda de la loi | Lambda > 0",
295                                                        ang = "Lambda parameter | Lambda > 0",
296                                                        ),
297
298                                        ), # Fin BLOC KLambda_Parameters
299
300
301                    MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
302
303                                        Mu = SIMP ( statut = "o",
304                                                    typ = "R",
305                                                    max = 1,
306                                                    fr = "Moyenne de la loi",
307                                                    ang = "Mean value",
308                                                    ),
309
310                                        Sigma = SIMP ( statut = "o",
311                                                       typ = "R",
312                                                       max = 1,
313                                                       val_min = 0.,
314                                                       fr = "Ecart type de la loi",
315                                                       ang = "Standard deviation",
316                                                       ),
317
318                                        ), # Fin BLOC MuSigma_Parameters
319
320                    Gamma = SIMP ( statut = "o",
321                                   typ = "R",
322                                   max = 1,
323                                   fr = "Borne inferieure du supoport de la loi",
324                                   ang = "Support lower bound",
325                                   ),
326
327
328   ), # Fin BLOC GAMMA
329
330
331
332   GEOMETRIC = BLOC ( condition = " Kind in ( 'Geometric', ) ",
333
334                        P = SIMP ( statut = "o",
335                                   typ = "R",
336                                   max = 1,
337                                   val_min = 0.,
338                                   val_max = 1.,
339                                   fr = "Parametre P | 0 < P < 1",
340                                   ang = "P parameter | 0 < P < 1",
341                                   ),
342
343   ), # Fin BLOC GEOMETRIC
344
345
346
347   GUMBEL = BLOC ( condition = " Kind in ( 'Gumbel', ) ",
348
349                     Settings = SIMP ( statut = "o",
350                                          typ = "TXM",
351                                          max = 1,
352                                          into = ( "AlphaBeta", "MuSigma" ),
353                                          defaut = "AlphaBeta",
354                                          fr = "Parametrage de la loi gumbel",
355                                          ang = "Gumbel distribution parameter set",
356                                          ),
357
358                     AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
359
360                                         Alpha = SIMP ( statut = "o",
361                                                        typ = "R",
362                                                        max = 1,
363                                                        val_min = 0.,
364                                                        fr = "Parametre Alpha de la loi | Alpha > 0",
365                                                        ang = "Alpha parameter | Alpha > 0",
366                                                        ),
367
368                                         Beta = SIMP ( statut = "o",
369                                                       typ = "R",
370                                                       max = 1,
371                                                       fr = "Parametre Beta de la loi",
372                                                       ang = "Beta parameter",
373                                                       ),
374
375                                         ), # Fin BLOC AlphaBeta_Parameters
376
377
378                     MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
379
380                                         Mu = SIMP ( statut = "o",
381                                                     typ = "R",
382                                                     max = 1,
383                                                     fr = "Moyenne de la loi",
384                                                     ang = "Mean value",
385                                                     ),
386
387                                         Sigma = SIMP ( statut = "o",
388                                                        typ = "R",
389                                                        max = 1,
390                                                        val_min = 0.,
391                                                        fr = "Ecart type de la loi",
392                                                        ang = "Standard deviation",
393                                                        ),
394
395                                         ), # Fin BLOC MuSigma_Parameters
396
397   ), # Fin BLOC GUMBEL
398
399
400
401   HISTOGRAM = BLOC ( condition = " Kind in ( 'Histogram', ) ",
402
403                        First = SIMP ( statut = "o",
404                                     typ = "R",
405                                     max = 1,
406                                     fr = "Borne inferieure du supoport de la loi",
407                                     ang = "Support lower bound",
408                                     ),
409
410                        # Il faut definir une collection de couples ( x,p ) 
411                        Values = SIMP ( statut = 'o',
412                                        typ = Tuple(2),
413                                        max = '**',
414                                        fr = "Liste de couples : largeur de classe, hauteur de classe",
415                                        ang = "Class bandwidth, class height couple list",
416                                        validators=VerifTypeTuple(('R','R')),
417                                        ),
418
419   ), # Fin BLOC HISTOGRAM
420
421
422
423   LAPLACE = BLOC ( condition = " Kind in ( 'Laplace', ) ",
424
425                    Lambda = SIMP ( statut = "o",
426                                    typ = "R",
427                                    max = 1,
428                                    val_min = 0.,
429                                    fr = "Parametre Lambda | Lambda > 0",
430                                    ang = "Lambda parameter | Lambda > 0",
431                                    ),
432                    
433                    Mu = SIMP ( statut = "o",
434                                typ = "R",
435                                max = 1,
436                                fr = "Moyenne de la loi",
437                                ang = "Mean value",
438                               ),
439
440   ), # Fin BLOC LAPLACE
441
442   LOGNORMAL = BLOC ( condition = " Kind in ( 'LogNormal', ) ",
443
444                      Settings = SIMP ( statut = "o",
445                                        typ = "TXM",
446                                        max = 1,
447                                        into = ( "MuSigmaLog", "MuSigma", "MuSigmaOverMu" ),
448                                        defaut = "MuSigmaLog",
449                                        fr = "Parametrage de la loi lognormale",
450                                        ang = "Lognormal distribution parameter set",
451                                        ),
452
453                      MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
454
455                                                  Mu = SIMP ( statut = "o",
456                                                              typ = "R",
457                                                              max = 1,
458                                                              fr = "Moyenne de la loi",
459                                                              ang = "Mean value",
460                                                              ),
461
462                                                  Sigma = SIMP ( statut = "o",
463                                                                 typ = "R",
464                                                                 max = 1,
465                                                                 val_min = 0.,
466                                                                 fr = "Ecart type de la loi",
467                                                                 ang = "Standard deviation",
468                                                                 ),
469
470                                                  ), # Fin BLOC MuSigma_Parameters
471
472                      MuSigmaOverMu_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaOverMu', ) ",
473
474                                                  Mu = SIMP ( statut = "o",
475                                                              typ = "R",
476                                                              max = 1,
477                                                              fr = "Moyenne de la loi",
478                                                              ang = "Mean value",
479                                                              ),
480
481                                                  SigmaOverMu = SIMP ( statut = "o",
482                                                                 typ = "R",
483                                                                 max = 1,
484                                                                 val_min = 0.,
485                                                                 fr = "Rapport ecart type / moyenne de la loi",
486                                                                 ang = "Standard deviation / mean value ratio",
487                                                                 ),
488
489                                                  ), # Fin BLOC MuSigmaOverMu_Parameters
490
491                      MuSigmaLog_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaLog', ) ",
492
493                                                     MuLog = SIMP ( statut = "o",
494                                                                    typ = "R",
495                                                                    max = 1,
496                                                                    fr = "Moyenne du log",
497                                                                    ang = "Log mean value",
498                                                                    ),
499
500                                                     SigmaLog = SIMP ( statut = "o",
501                                                                       typ = "R",
502                                                                       max = 1,
503                                                                       val_min = 0.,
504                                                                       fr = "Ecart type du log",
505                                                                       ang = "Log standard deviation",
506                                                                       ),
507                                             
508                                                     ), # Fin BLOC MuSigmaLog_Parameters
509
510                      Gamma = SIMP ( statut = "o",
511                                     typ = "R",
512                                     max = 1,
513                                     fr = "Borne inferieure du support de la loi",
514                                     ang = "Support lower bound",
515                                     ),
516
517    ), # Fin BLOC LOGNORMAL
518
519
520
521    LOGISTIC = BLOC ( condition = " Kind in ( 'Logistic', ) ",
522
523                        Alpha = SIMP ( statut = "o",
524                                       typ = "R",
525                                       max = 1,
526                                       fr = "Borne inferieure du supoport de la loi",
527                                       ang = "Support lower bound",
528                                       ),
529
530                        Beta = SIMP ( statut = "o",
531                                      typ = "R",
532                                      max = 1,
533                                      val_min = 0.,
534                                      fr = "Parametre Beta de la loi | Beta > 0",
535                                      ang = "Beta parameter | Beta > 0",
536                                      ),
537
538    ), # Fin BLOC LOGISTIC
539
540
541
542    MULTINOMIAL = BLOC ( condition = " Kind in ( 'MultiNomial', ) ",
543                          
544                          N = SIMP ( statut = "o",
545                                     typ = "I",
546                                     max = 1,
547                                     fr = "Parametre N de la loi | N > 0",
548                                     ang = "N parameter | N > 0",
549                                     ),
550
551                        # Il faut definir une collection de couples ( x,p ) 
552                        Values = SIMP ( statut = 'o',
553                                        typ = "R",
554                                        max = '**',
555                                        fr = "Liste de probabilités",
556                                        ang = "Probability list",
557                                        validators=VerifTypeTuple(('R','R')),
558                                        ),
559
560    ), # Fin BLOC MULTINOMIAL
561
562
563   NONCENTRALSTUDENT = BLOC ( condition = " Kind in ( 'NonCentralStudent', ) ",
564
565                    Nu = SIMP ( statut = "o",
566                                typ = "R",
567                                max = 1,
568                                fr = "Parametre Nu de la loi | Nu > 0",
569                                ang = "Nu parameter | Nu > 0",
570                               ),
571
572                    Delta = SIMP ( statut = "o",
573                                   typ = "R",
574                                   max = 1,
575                                   fr = "Parametre Delta de la loi | Delta > 0",
576                                   ang = "Delta parameter | Delta > 0",
577                                   ),
578                    
579                    Gamma = SIMP ( statut = "o",
580                                   typ = "R",
581                                   max = 1,
582                                   fr = "Parametre Gamma de centrage de la loi",
583                                   ang = "Gamma parameter",
584                                   ),
585
586   ), # Fin BLOC NONCENTRALSTUDENT
587
588
589    NORMAL = BLOC ( condition = " Kind in ( 'Normal', ) ",
590
591                     Mu = SIMP ( statut = "o",
592                                 typ = "R",
593                                 max = 1,
594                                 fr = "Moyenne de la loi",
595                                 ang = "Mean value",
596                                 ),
597
598                    Sigma = SIMP ( statut = "o",
599                                   typ = "R",
600                                   max = 1,
601                                   val_min = 0.,
602                                   fr = "Ecart type de la loi",
603                                   ang = "Standard deviation",
604                                   ),
605
606    ), # Fin BLOC NORMAL
607
608
609
610    POISSON = BLOC ( condition = " Kind in ( 'Poisson', ) ",
611
612                      Lambda = SIMP ( statut = "o",
613                                      typ = "R",
614                                      max = 1,
615                                      val_min = 0.,
616                                      fr = "Parametre Lambda de la loi | Lambda > 0",
617                                      ang = "Lambda parameter | Lambda > 0",
618                                      ),
619
620    ), # Fin BLOC POISSON
621
622
623
624   RAYLEIGH = BLOC ( condition = " Kind in ( 'Rayleigh', ) ",
625
626                    Sigma = SIMP ( statut = "o",
627                                   typ = "R",
628                                   max = 1,
629                                   fr = "Parametre Sigma de la loi | Sigma > 0",
630                                   ang = "Sigma parameter | Sigma > 0",
631                                   ),
632
633                    Gamma = SIMP ( statut = "o",
634                                   typ = "R",
635                                   max = 1,
636                                   fr = "Borne inferieure du support de la loi",
637                                   ang = "Support lower bound",
638                                   ),
639  ), # Fin BLOC RAYLEIGH
640
641
642    STUDENT = BLOC ( condition = " Kind in ( 'Student', ) ",
643
644                      Mu = SIMP ( statut = "o",
645                                  typ = "R",
646                                  max = 1,
647                                  fr = "Parametre Mu de la loi",
648                                  ang = "Mu parameter",
649                                  ),
650
651                      Nu = SIMP ( statut = "o",
652                                  typ = "R",
653                                  max = 1,
654                                  val_min = 2.,
655                                  fr = "Parametre Nu de la loi | Nu > 2",
656                                  ang = "Nu parameter | Nu > 2",
657                                  ),
658
659                    Sigma = SIMP ( statut = "o",
660                                   typ = "R",
661                                   max = 1,
662                                   fr = "Parametre Sigma de la loi",
663                                   ang = "Sigma parameter",
664                                   ),
665
666    ), # Fin BLOC STUDENT
667
668
669
670    TRIANGULAR = BLOC ( condition = " Kind in ( 'Triangular', ) ",
671
672                          A = SIMP ( statut = "o",
673                                     typ = "R",
674                                     max = 1,
675                                     fr = "Borne inferieure du support de la loi | A < M < B",
676                                     ang = "Support lower bound | A < M < B",
677                                     ),
678
679                          M = SIMP ( statut = "o",
680                                     typ = "R",
681                                     max = 1,
682                                     fr = "Mode de la loi | A < M < B",
683                                     ang = "Mode | A < M < B",
684                                     ),
685
686                          B = SIMP ( statut = "o",
687                                     typ = "R",
688                                     max = 1,
689                                     fr = "Borne superieure du support de la loi | A < M < B",
690                                     ang = "Support upper bound | A < M < B",
691                                     ),
692
693    ), # Fin BLOC TRIANGULAR
694
695
696
697    TRUNCATEDNORMAL = BLOC ( condition = " Kind in ( 'TruncatedNormal', ) ",
698
699                              MuN = SIMP ( statut = "o",
700                                           typ = "R",
701                                           max = 1,
702                                           fr = "Moyenne de la loi Normale non tronquée",
703                                           ang = "Mean value of the associated non truncated normal distribution",
704                                           ),
705
706                              SigmaN = SIMP ( statut = "o",
707                                              typ = "R",
708                                              max = 1,
709                                              val_min = 0.,
710                                              fr = "Ecart-type de la loi Normale non tronquée",
711                                              ang = "Standard deviation of the associated non truncated normal distribution",
712                                              ),
713
714                              A = SIMP ( statut = "o",
715                                         typ = "R",
716                                         max = 1,
717                                         fr = "Borne inferieure de la loi | A < B",
718                                         ang = "Lower bound | A < B",
719                                         ),
720
721                              B = SIMP ( statut = "o",
722                                         typ = "R",
723                                         max = 1,
724                                         fr = "Borne superieure de la loi | A < B",
725                                         ang = "Upper bound | A < B",
726                                         ),
727
728    ), # Fin BLOC TRUNCATEDNORMAL
729
730
731
732    UNIFORM = BLOC ( condition = " Kind in ( 'Uniform', ) ",
733
734                      A = SIMP ( statut = "o",
735                                 typ = "R",
736                                 max = 1,
737                                 fr = "Borne inferieure du support de la loi | A < B",
738                                 ang = "Support lower bound | A < B",
739                                 ),
740
741                      B = SIMP ( statut = "o",
742                                 typ = "R",
743                                 max = 1,
744                                 fr = "Borne superieure du support de la loi | A < B",
745                                 ang = "Support upper bound | A < B",
746                                 ),
747
748    ), # Fin BLOC UNIFORM
749
750
751
752    USERDEFINED = BLOC ( condition = " Kind in ( 'UserDefined', ) ",
753
754                            # Il faut definir une collection de couples ( x,p ) 
755                          Values = SIMP ( statut = 'o',
756                                          typ = 'R',
757                                          max = '**',
758                                          ),
759
760    ), # Fin BLOC USERDEFINED
761
762
763
764    WEIBULL = BLOC ( condition = " Kind in ( 'Weibull', ) ",
765
766                      Settings = SIMP ( statut = "o",
767                                           typ = "TXM",
768                                           max = 1,
769                                           into = ( "AlphaBeta", "MuSigma" ),
770                                           defaut = "AlphaBeta",
771                                           fr = "Parametrage de la loi weibull",
772                                           ang = "Weibull distribution parameter set",
773                                           ),
774
775                      AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
776
777                                          Alpha = SIMP ( statut = "o",
778                                                         typ = "R",
779                                                         max = 1,
780                                                         val_min = 0.,
781                                                         fr = "Parametre Alpha de la loi | Alpha > 0",
782                                                         ang = "Alpha parameter | Alpha > 0",
783                                                         ),
784
785                                          Beta = SIMP ( statut = "o",
786                                                        typ = "R",
787                                                        max = 1,
788                                                        val_min = 0.,
789                                                        fr = "Parametre Beta de la loi | Beta > 0",
790                                                        ang = "Beta parameter | Beta > 0",
791                                                        ),
792
793                                          ), # Fin BLOC AlphaBeta_Parameters
794
795
796                      MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
797
798                                          Mu = SIMP ( statut = "o",
799                                                      typ = "R",
800                                                      max = 1,
801                                                      fr = "Moyenne de la loi",
802                                                      ang = "Mean value",
803                                                      ),
804
805                                          Sigma = SIMP ( statut = "o",
806                                                         typ = "R",
807                                                         max = 1,
808                                                         val_min = 0.,
809                                                         fr = "Ecart type de la loi",
810                                                         ang = "Standard deviation",
811                                                         ),
812
813                                          ), # Fin BLOC MuSigma_Parameters
814
815                      Gamma = SIMP ( statut = "o",
816                                     typ = "R",
817                                     max = 1,
818                                     fr = "Borne inferieure du support de la loi",
819                                     ang = "Support lower bound",
820                                     ),
821
822     ), # Fin BLOC WEIBULL
823
824 ) # Fin OPER DISTRIBUTION
825 # Ordre Catalogue DISTRIBUTION
826
827
828
829 #================================
830 # Definition du modele physique
831 #================================
832
833
834 DETERMINISTICVARIABLE = OPER ( nom = "DETERMINISTICVARIABLE",
835             sd_prod = variable,
836             op = None,
837             fr = "Variable deterministe",
838             ang = "Deterministic variable",
839             UIinfo = {"groupes": ("CACHE")},
840             
841   N = SIMP ( statut = 'o',
842              typ = "TXM",
843              fr = "Nom",
844              ang = "Name",
845              ),
846             
847   T = SIMP ( statut = 'o',
848              defaut = "in",
849              into = ( "in" , "out", ),
850              typ = "TXM",
851              fr = "Type",
852              ang = "Type",
853              ),
854             
855   R = SIMP ( statut = 'o',
856              defaut = 0,
857              typ = "I",
858              fr = "Rang",
859              ang = "Rank",
860              ),
861             
862 ) # Fin OPER DETERMINISTICVARIABLE
863 # Ordre Catalogue DETERMINISTICVARIABLE
864
865
866
867 import opsOT
868 MODEL = MACRO ( nom = "MODEL",
869                 op = None,
870                 UIinfo = { "groupes" : ( "Gestion du travail", ) },
871                 fr = "Chargement du wrapper du modele physique",
872                 ang = "Physical model wrapper load",
873                 sd_prod = opsOT.INCLUDE,
874                 op_init = opsOT.INCLUDE_context,
875                 fichier_ini = 1,
876                
877   FileName = SIMP ( statut = "o",
878                     typ = ('Fichier', 'Wrapper Files (*.xml);;All Files (*)',),
879                     fr = "Nom du modele physique",
880                     ang = "Physical model identifier",
881                     ),
882                
883 ) # Fin PROC MODEL
884 # Ordre Catalogue MODEL
885
886
887
888
889 VARIABLE = PROC ( nom = "VARIABLE",
890                   op = None,
891                   docu = "",
892                   fr = "Variable probabiliste",
893                   ang = "Probabilistic variable",
894
895   ModelVariable = SIMP ( statut = "o",
896                          typ = ( variable, ),
897                          fr = "Variable d'entrée du modèle",
898                          ang = "Input variable of the model",
899                          ),
900
901   Distribution = SIMP ( statut = "o",
902                         typ = ( loi, ),
903                         fr = "Modélisation probabiliste",
904                         ang = "Probabilistic modelisation",
905                         ),
906                   
907 ) # Fin PROC VARIABLE
908 # Ordre Catalogue VARIABLE
909
910
911 CORRELATION = PROC ( nom = 'CORRELATION',
912                      op = None,
913                      docu = "",
914                      fr = "Correlation entre variables",
915                      ang = "Variable correlation",
916
917   Copula = SIMP ( statut = "o",
918                   typ = 'TXM',
919                   into = ( "Independent", "Normal" ),
920                   defaut = "Independent",
921                   fr = "Type de la copule",
922                   ang = "Copula kind",
923                   ),
924
925   Matrix = BLOC ( condition = "Copula in ( 'Normal', )",
926                   
927     CorrelationMatrix = SIMP ( statut = "o",
928                                typ = Matrice(nbLigs=None,
929                                              nbCols=None,
930                                              methodeCalculTaille='NbDeVariables',
931                                              valSup=1,
932                                              valMin=-1,
933                                              structure="symetrique"),
934                                fr = "Matrice de correlation entre les variables d'entree",
935                                ang = "Correlation matrix for input variables",
936                                ),
937   ), # Fin BLOC Matrix
938
939
940 ) # Fin PROC CORRELATION
941 # Ordre Catalogue CORRELATION
942
943
944
945
946
947 #================================
948 # Definition de l'etude
949 #================================
950
951 # Nota : les variables de type PROC doivent etre en majuscules !
952 CRITERIA = PROC ( nom = "CRITERIA",
953                   op = None,
954                   docu = "",
955                   fr = "Critère de l'étude d'incertitudes",
956                   ang = "Uncertainty study criteria",
957
958
959
960   Type = SIMP ( statut = "o",
961                 typ = "TXM",
962                 into = ( "Min/Max", "Central Uncertainty", "Threshold Exceedence" ),
963                 fr = "Type du critère",
964                 ang = "Criteria type",
965                 ),
966
967
968
969
970
971
972
973   MinMax = BLOC ( condition = " Type in ( 'Min/Max', ) ",
974
975                   Method = SIMP ( statut = "o",
976                                   typ = "TXM",
977                                   into = ( "Experiment Plane", "Random Sampling" ),
978                                   fr = "Methode",
979                                   ang = "Method",
980                                   ),
981                   # UC 3.1.1
982                   ExperimentPlaneSettings = BLOC ( condition = " Method in ( 'Experiment Plane', ) ",
983
984                           ExperimentPlane = SIMP ( statut = "o",
985                                                    typ = "TXM",
986                                                    into = ( "Axial", "Factorial", "Composite", ),
987                                                    fr = "Type du plan d'expérience",
988                                                    ang = "Experiment plane type",
989                                                    ),
990
991                           Levels = SIMP ( statut = "o",
992                                           typ = "R",
993                                           val_min = 0.0,
994                                           max = '**',    
995                                           fr = "Liste de niveaux dans chaque direction",
996                                           ang = "Levels in each direction",
997                                           ),
998
999                           # Scaled Vector
1000                           UnitPerDimension = SIMP ( statut = "o",
1001                                           typ = "R",
1002                                           max = '**',    
1003                                           fr = "Unité par dimension (autant que de variables declarées)",
1004                                           ang = "Units per dimension (as much as declared variables)",
1005                                           ),
1006
1007                           # Translation Vector
1008                           Center = SIMP ( statut = "o",
1009                                           typ = "R",
1010                                           max = '**',    
1011                                           fr = "Centre du plan d'expérience",
1012                                           ang = "Experiment plan center",
1013                                           ),
1014
1015                     ), # Fin BLOC ExperimentPlaneSettings
1016
1017
1018
1019                   RandomSamplingSettings = BLOC ( condition = " Method in ( 'Random Sampling', ) ",
1020
1021                           SimulationsNumber = SIMP ( statut = "o",
1022                                                 typ = "I",
1023                                                 val_min = 1,
1024                                                 fr = "Nombre de points",
1025                                                 ang = "Points number",
1026                                                 ),
1027
1028                     ), # Fin BLOC RandomSamplingSettings
1029
1030                   Result = SIMP (  statut = "o",
1031                                    typ = "TXM",
1032                                    into = ( "Min/Max", ),
1033                                    defaut = "Min/Max",
1034                                    fr = "Le minimum et le maximum de la variable d'intérêt",
1035                                    ang = "The min and max values",
1036                                    ),
1037
1038
1039   ), # Fin BLOC MinMax
1040
1041
1042
1043
1044   CentralUncertainty = BLOC ( condition = " Type in ( 'Central Uncertainty', ) ",
1045
1046                   Method = SIMP ( statut = "o",
1047                                   typ = "TXM",
1048                                   into = ( "Taylor Variance Decomposition", "Random Sampling" ),
1049                                   fr = "Methode",
1050                                   ang = "Method",
1051                                   ),
1052                               
1053                   # UC 3.2.
1054                   TaylorVarianceDecompositionSettings = BLOC ( condition = " Method in ( 'Taylor Variance Decomposition', ) ",
1055
1056                       Result = FACT ( statut = "o",
1057                                       min = 1,
1058                                       max = "**",
1059
1060                               MeanFirstOrder = SIMP ( statut = "o",
1061                                                 typ = 'TXM',
1062                                                 into = ( 'yes', 'no' ),
1063                                                 defaut = 'yes',
1064                                                 max = 1,
1065                                                 fr = "Moyenne au premier ordre",
1066                                                 ang = "MeanFirstOrder",
1067                                                 ),
1068
1069                               StandardDeviationFirstOrder = SIMP ( statut = "o",
1070                                                                    typ = 'TXM',
1071                                                                    into = ( 'yes', 'no' ),
1072                                                                    defaut = 'yes',
1073                                                                    max = 1,
1074                                                                    fr = "Ecart-type au premier ordre",
1075                                                                    ang = "StandardDeviationFirstOrder",
1076                                                                    ),
1077
1078                               MeanSecondOrder = SIMP ( statut = "o",
1079                                                        typ = 'TXM',
1080                                                        into = ( 'yes', 'no' ),
1081                                                        defaut = 'no',
1082                                                        max = 1,
1083                                                        fr = "Moyenne au second ordre",
1084                                                        ang = "MeanSecondOrder",
1085                                                        ),
1086
1087                               ImportanceFactor = SIMP ( statut = "o",
1088                                                         typ = 'TXM',
1089                                                         into = ( 'yes', 'no' ),
1090                                                         defaut = 'yes',
1091                                                         max = 1,
1092                                                         fr = "Facteur d'importance pour variable de sortie scalaire",
1093                                                         ang = "ImportanceFactor",
1094                                                         ),
1095                               ImportanceFactorSettings = BLOC ( condition = " ImportanceFactor in ( 'yes', ) ",
1096
1097                                      ImportanceFactorDrawingFilename = SIMP ( statut = "o",
1098                                                                               typ = "TXM",
1099                                                                               max = 1,
1100                                                                               fr = "Nom du fichier graphique des facteurs d'importance",
1101                                                                               ang = "Importance Factor Drawing Filename",
1102                                                                               ),
1103                                                                              
1104
1105                               ), # Fin BLOC ImportanceFactorSettings
1106                                       
1107                       ), # Fin FACT Result
1108                                                                
1109                   ), # Fin BLOC TaylorVarianceDecompositionSettings
1110
1111
1112
1113                   RandomSamplingSettings = BLOC ( condition = " Method in ( 'Random Sampling', ) ",
1114
1115                           SimulationsNumber = SIMP ( statut = "o",
1116                                                 typ = "I",
1117                                                 val_min = 1,
1118                                                 fr = "Nombre de points",
1119                                                 ang = "Points number",
1120                                                 ),
1121
1122                        Result = FACT ( statut = "o",
1123                                       min = 1,
1124                                       max = "**",
1125
1126                               EmpiricalMean = SIMP ( statut = "o",
1127                                                      typ = 'TXM',
1128                                                      into = ( 'yes', 'no' ),
1129                                                      defaut = 'yes',
1130                                                      max = 1,
1131                                                      fr = "Moyenne empirique",
1132                                                      ang = "Empirical mean",
1133                                                      ),
1134
1135                               EmpiricalStandardDeviation = SIMP ( statut = "o",
1136                                                                   typ = 'TXM',
1137                                                                   into = ( 'yes', 'no' ),
1138                                                                   defaut = 'yes',
1139                                                                   max = 1,
1140                                                                   fr = "Ecart-type empirique",
1141                                                                   ang = "Empirical standard deviation",
1142                                                                   ),
1143
1144                               EmpiricalQuantile = SIMP ( statut = "o",
1145                                                          typ = 'TXM',
1146                                                          into = ( 'yes', 'no' ),
1147                                                          defaut = 'yes',
1148                                                          max = 1,
1149                                                          fr = "Quantile empirique",
1150                                                          ang = "Empirical quantile",
1151                                                          ),
1152
1153                               EmpiricalQuantileSettings = BLOC ( condition = " EmpiricalQuantile in ( 'yes', ) ",
1154
1155                                   EmpiricalQuantile_Order = SIMP ( statut = "o",
1156                                                                    typ = 'R',
1157                                                                    defaut = 0.95,
1158                                                                    max = 1,
1159                                                                    val_min = 0.0,
1160                                                                    val_max = 1.0,
1161                                                                    fr = "Ordre du quantile empirique",
1162                                                                    ang = "Empirical quantile order",
1163                                                                    ),
1164
1165                               ), # Fin BLOC EmpiricalQuantileSettings
1166
1167                               CorrelationAnalysis = SIMP ( statut = "o",
1168                                                             typ = 'TXM',
1169                                                             into = ( 'yes', 'no' ),
1170                                                             defaut = 'yes',
1171                                                             max = 1,
1172                                                             fr = "Correlations analysees",
1173                                                             ang = "Analysed correlations",
1174                                                             ),
1175
1176                               KernelSmoothing = SIMP ( statut = "o",
1177                                                        typ = 'TXM',
1178                                                        into = ( 'yes', 'no' ),
1179                                                        defaut = 'yes',
1180                                                        max = 1,
1181                                                        fr = "Kernel smoothing de l'echantillon",
1182                                                        ang = "Kernel smoothing of the sample",
1183                                                        ),
1184
1185                               KernelSmoothingSettings = BLOC ( condition = " KernelSmoothing in ( 'yes', ) ",
1186
1187                                      KernelSmoothingDrawingFilename = SIMP ( statut = "o",
1188                                                                               typ = "TXM",
1189                                                                               max = 1,
1190                                                                               fr = "Nom du fichier graphique de la reconstruction a noyau",
1191                                                                               ang = "Kernel Smoothing Drawing Filename",
1192                                                                               ),
1193                                                                              
1194
1195                               ), # Fin BLOC KernelSmoothingSettings
1196                                       
1197                       ), # Fin FACT Result
1198                                                                
1199                   ), # Fin BLOC RandomSamplingSettings
1200
1201   ), # Fin BLOC CentralUncertainty
1202
1203
1204
1205
1206   ThresholdExceedence = BLOC ( condition = " Type in ( 'Threshold Exceedence', ) ",
1207
1208          Event =  FACT ( statut = "o",
1209                          min = 1,
1210                          max = 1,
1211
1212                          Threshold = SIMP ( statut = "o",
1213                                             typ = "R",
1214                                             max = 1,
1215                                             fr = "Le seuil de defaillance",
1216                                             ang = "Failure threshold",
1217                                             ),
1218
1219                          ComparisonOperator = SIMP ( statut = "o",
1220                                                      typ = "TXM",
1221                                                      max = 1,
1222                                                      into = ( "Less", "LessOrEqual", "Equal", "GreaterOrEqual", "Greater" ),
1223                                                      fr = "Que faut-il ne pas depasser : un maximum ou un minimum",
1224                                                      ang = "What is the failure threshold : maximum or minimum",
1225                                                      ),
1226          ), # Fin FACT Event
1227                          
1228
1229          Method = SIMP ( statut = "o",
1230                          typ = "TXM",
1231                          into = ( "Simulation", "FORM_SORM" ),
1232                          fr = "Methode",
1233                          ang = "Method",
1234                          ),
1235
1236          SimulationSettings = BLOC ( condition = " Method in ( 'Simulation', ) ",
1237
1238                Algorithm = SIMP ( statut = "o",
1239                                   typ = "TXM",
1240                                   into = ( "MonteCarlo", "LHS", "ImportanceSampling" ),
1241                                   fr = "Algorithme de simulation",
1242                                   ang = "Simulation algorithm",
1243                                   ),
1244
1245                                  
1246                RandomGenerator = FACT ( statut = "o",
1247                                         min = 1,
1248                                         max = 1,
1249
1250                            SeedToBeSet = SIMP ( statut = "o",
1251                                                 typ = 'TXM',
1252                                                 into = ( 'yes', 'no' ),
1253                                                 defaut = 'no',
1254                                                 max = 1,
1255                                                 fr = "La racine du generateur aleatoire doit-elle etre positionnee ?",
1256                                                 ang = "Does the random generator seed need to be set ?",
1257                                                 ),
1258
1259                            SeedSettings = BLOC ( condition = " SeedToBeSet in ( 'yes', ) ",
1260
1261                                                  RandomGeneratorSeed = SIMP ( statut = "o",
1262                                                                               typ = "I",
1263                                                                               max = 1,
1264                                                                               fr = "Racine du generateur aleatoire",
1265                                                                               ang = "Random generator seed",
1266                                                                               ),
1267
1268                                                ), # Fin BLOC SeedSettings
1269
1270                ), # Fin FACT RandomGenerator
1271
1272
1273                BlockSize = SIMP ( statut = "o",
1274                                   typ = "I",
1275                                   max = 1,
1276                                   val_min = 1,
1277                                   defaut = 1,
1278                                   fr = "Nombre de calculs realises en bloc",
1279                                   ang = "Number of computations as a block",
1280                                   ),
1281
1282                MaximumOuterSampling = SIMP ( statut = "o",
1283                                              typ = "I",
1284                                              max = 1,
1285                                              val_min = 1,
1286                                              fr = "Maximum d'iterations externes",
1287                                              ang = "Maximum outer Sampling value",
1288                                              ),
1289
1290                MaximumCoefficientOfVariation = SIMP ( statut = "o",
1291                                                       typ = "R",
1292                                                       max = 1,
1293                                                       defaut = 0.1,
1294                                                       val_min = 0.0,
1295                                                       val_max = 1.0,
1296                                                       fr = "Coefficient de variation maximum",
1297                                                       ang = "Maximum coefficient of variation"
1298                                                       ),
1299
1300                ImportanceSamplingSettings = BLOC ( condition = " Algorithm in ( 'ImportanceSampling', ) ",
1301
1302                             MeanVector = SIMP ( statut = "o",
1303                                                 typ = "R",
1304                                                 max = "**",
1305                                                 fr = "Moyenne",
1306                                                 ang = "Mean vector",
1307                                                 ),
1308
1309
1310                ), # Fin BLOC ImportanceSamplingSettings
1311
1312                Result = FACT ( statut = "o",
1313                                       min = 1,
1314                                       max = "**",
1315
1316                     Probability = SIMP ( statut = "o",
1317                                          typ = 'TXM',
1318                                          into = ( 'yes', ),
1319                                          defaut = 'yes',
1320                                          max = 1,
1321                                          fr = "Probabiblite",
1322                                          ang = "Probability",
1323                                          ),
1324
1325                     StandardDeviation = SIMP ( statut = "o",
1326                                          typ = 'TXM',
1327                                          into = ( 'yes', ),
1328                                          defaut = 'yes',
1329                                          max = 1,
1330                                          fr = "Ecart type",
1331                                          ang = "Standard deviation",
1332                                          ),
1333
1334                     ConfidenceInterval = SIMP ( statut = "o",
1335                                                 typ = 'TXM',
1336                                                 into = ( 'yes', 'no' ),
1337                                                 defaut = 'yes',
1338                                                 max = 1,
1339                                                 fr = "Intervale de confiance",
1340                                                 ang = "Confidence interval",
1341                                                 ),
1342
1343                     ConfidenceIntervalSettings = BLOC ( condition = " ConfidenceInterval in ( 'yes', ) ",
1344
1345                           Level = SIMP ( statut = "o",
1346                                          typ = 'R',
1347                                          defaut = 0.9,
1348                                          max = 1,
1349                                          val_min = 0.0,
1350                                          val_max = 1.0,
1351                                          fr = "Niveau de confiance",
1352                                          ang = "Confidence level",
1353                                          ),
1354                                                      
1355                     ), # Fin BLOC ConfidenceIntervalSettings
1356                                
1357                     VariationCoefficient = SIMP ( statut = "o",
1358                                                   typ = 'TXM',
1359                                                   into = ( 'yes', 'no' ),
1360                                                   defaut = 'yes',
1361                                                   max = 1,
1362                                                   fr = "Coefficient de variation",
1363                                                   ang = "Coefficient of variation",
1364                                                   ),
1365
1366                     SimulationsNumber = SIMP ( statut = "o",
1367                                              typ = 'TXM',
1368                                              into = ( 'yes', 'no' ),
1369                                              defaut = 'yes',
1370                                              max = 1,
1371                                              fr = "Nombre d'iterations",
1372                                              ang = "Iteration number",
1373                                              ),
1374
1375                     ConvergenceGraph = SIMP ( statut = "o",
1376                                              typ = 'TXM',
1377                                              into = ( 'yes', 'no' ),
1378                                              defaut = 'yes',
1379                                              max = 1,
1380                                              fr = "Graphe de convergence",
1381                                              ang = "Convergence graph",
1382                                              ),
1383                                
1384                     ConvergenceGraphSettings = BLOC ( condition = " ConvergenceGraph in ( 'yes', ) ",
1385
1386                                      ConvergenceDrawingFilename = SIMP ( statut = "o",
1387                                                                          typ = "TXM",
1388                                                                          max = 1,
1389                                                                          fr = "Nom du fichier graphique de la convergence",
1390                                                                          ang = "Convergence Drawing Filename",
1391                                                                          ),
1392                                                                              
1393
1394                               ), # Fin BLOC ConvergenceGraphSettings
1395                                       
1396              ), # Fin FACT Result
1397                                                                
1398
1399
1400          ), # Fin BLOC SimulationSettings
1401
1402
1403                                
1404          FORM_SORMSettings = BLOC ( condition = " Method in ( 'FORM_SORM', ) ",
1405
1406                 Approximation = SIMP ( statut = "o",
1407                                        typ = "TXM",
1408                                        defaut = "FirstOrder",
1409                                        into = ( "FirstOrder", "SecondOrder" ),
1410                                        max = 1,
1411                                        fr = "Approximation",
1412                                        ang = "Approximation",
1413                                        ),
1414
1415                 OptimizationAlgorithm = SIMP ( statut = "o",
1416                                                typ = "TXM",
1417                                                defaut = "Cobyla",
1418                                                into = ( "Cobyla", "AbdoRackwitz" ),
1419                                                max = 1,
1420                                                fr = "Methode d'optimisation",
1421                                                ang = "Optimization method",
1422                                                ),
1423
1424                                      
1425                 PhysicalStartingPoint = SIMP ( statut = "f",
1426                                                typ = "R",
1427                                                max = "**",
1428                                                fr = "Point de demarrage de l'algorithme iteratif",
1429                                                ang = "Initial point for iterative process",
1430                                                ),
1431
1432                 MaximumIterationsNumber = SIMP ( statut = "f",
1433                                                  typ = "I",
1434                                                  max = 1,
1435                                                  val_min = 1,
1436                                                  fr = "Nombre maximum d'iterations",
1437                                                  ang = "Maximum number of iterations",
1438                                                  ),
1439
1440                                      
1441                 MaximumAbsoluteError = SIMP ( statut = "o",
1442                                               typ = "R",
1443                                               max = 1,
1444                                               defaut = 1E-4,
1445                                               val_min = 0.0,
1446                                               fr = "Distance maximum absolue entre 2 iterations successives",
1447                                               ang = "Absolute maximum distance between 2 successive iterates",
1448                                               ),
1449
1450                 MaximumRelativeError = SIMP ( statut = "o",
1451                                                typ = "R",
1452                                                max = 1,
1453                                                defaut = 1E-4,
1454                                                val_min = 0.0,
1455                                                fr = "Distance maximum relative entre 2 iterations successives",
1456                                                ang = "Relative maximum distance between 2 successive iterates",
1457                                                ),
1458                                      
1459                 MaximumConstraintError = SIMP ( statut = "o",
1460                                                 typ = "R",
1461                                                 max = 1,
1462                                                 defaut = 1E-4,
1463                                                 val_min = 0.0,
1464                                                 fr = "Valeur maximum absolue de la fonction moins la valeur du niveau",
1465                                                 ang = "Maximum absolute value of the constraint function minus the level value",
1466                                                 ),
1467
1468                 ImportanceSampling = SIMP ( statut = "o",
1469                                             typ = 'TXM',
1470                                             into = ( 'yes', 'no' ),
1471                                             defaut = 'no',
1472                                             max = 1,
1473                                             fr = "Tirage d'importance au point de conception",
1474                                             ang = "Importance sampling at design point",
1475                                             ),
1476
1477                 FORMResult = BLOC ( condition = " Approximation in ( 'FirstOrder', ) ",
1478
1479                     Probability = SIMP ( statut = "o",
1480                                          typ = 'TXM',
1481                                          into = ( 'yes', ),
1482                                          defaut = 'yes',
1483                                          max = 1,
1484                                          fr = "Probabiblite",
1485                                          ang = "Probability",
1486                                          ),
1487
1488                     DesignPoint = SIMP ( statut = "o",
1489                                          typ = 'TXM',
1490                                          into = ( 'yes', 'no' ),
1491                                          defaut = 'yes',
1492                                          max = 1,
1493                                          fr = "Point de conception",
1494                                          ang = "Design point",
1495                                          ),
1496
1497                     HasoferReliabilityIndex = SIMP ( statut = "o",
1498                                                  typ = 'TXM',
1499                                                  into = ( 'yes', 'no' ),
1500                                                  defaut = 'yes',
1501                                                  max = 1,
1502                                                  fr = "Indice de fiabilite",
1503                                                  ang = "Reliability index",
1504                                                  ),
1505
1506                     ImportanceFactor = SIMP ( statut = "o",
1507                                               typ = 'TXM',
1508                                               into = ( 'yes', 'no' ),
1509                                               defaut = 'yes',
1510                                               max = 1,
1511                                               fr = "Facteur d'importance pour variable de sortie scalaire",
1512                                               ang = "Importance factor",
1513                                               ),
1514
1515                     ImportanceFactorSettings = BLOC ( condition = " ImportanceFactor in ( 'yes', ) ",
1516
1517                                      ImportanceFactorDrawingFilename = SIMP ( statut = "o",
1518                                                                               typ = "TXM",
1519                                                                               max = 1,
1520                                                                               fr = "Nom du fichier graphique des facteurs d'importance",
1521                                                                               ang = "Importance Factor Drawing Filename",
1522                                                                               ),
1523                                                                              
1524
1525                               ), # Fin BLOC ImportanceFactorSettings
1526                                       
1527                     SensitivityAnalysis = SIMP ( statut = "o",
1528                                                  typ = 'TXM',
1529                                                  into = ( 'yes', 'no' ),
1530                                                  defaut = 'yes',
1531                                                  max = 1,
1532                                                  fr = "Analyse de sensibilite",
1533                                                  ang = "Sensitivity analysis",
1534                                                  ),
1535
1536                     SensitivityAnalysisSettings = BLOC ( condition = " SensitivityAnalysis in ( 'yes', ) ",
1537
1538                             FORMEventProbabilitySensitivity = SIMP ( statut = "o",
1539                                                              typ = 'TXM',
1540                                                              into = ( 'yes', 'no' ),
1541                                                              defaut = 'yes',
1542                                                              max = 1,
1543                                                              fr = "Indice de fiabilite de Hasofer",
1544                                                              ang = "Hasofer reliability index",
1545                                                              ),
1546         
1547                             FORMEventProbabilitySensitivitySettings = BLOC ( condition = " FORMEventProbabilitySensitivity in ( 'yes', ) ",
1548
1549                                      FORMEventProbabilitySensitivityDrawingFilename = SIMP ( statut = "o",
1550                                                                          typ = "TXM",
1551                                                                          max = 1,
1552                                                                          fr = "Nom du fichier graphique des sensibilites",
1553                                                                          ang = "Sensitivity Drawing Filename",
1554                                                                          ),
1555                                                                              
1556
1557                               ), # Fin BLOC FORMEventProbabilitySensitivitySettings
1558                                       
1559                             HasoferReliabilityIndexSensitivity = SIMP ( statut = "o",
1560                                                              typ = 'TXM',
1561                                                              into = ( 'yes', 'no' ),
1562                                                              defaut = 'yes',
1563                                                              max = 1,
1564                                                              fr = "Indice de fiabilite de Hasofer",
1565                                                              ang = "Hasofer reliability index",
1566                                                              ),
1567         
1568                             HasoferReliabilityIndexSensitivitySettings = BLOC ( condition = " HasoferReliabilityIndexSensitivity in ( 'yes', ) ",
1569
1570                                      HasoferReliabilityIndexSensitivityDrawingFilename = SIMP ( statut = "o",
1571                                                                          typ = "TXM",
1572                                                                          max = 1,
1573                                                                          fr = "Nom du fichier graphique des sensibilites",
1574                                                                          ang = "Sensitivity Drawing Filename",
1575                                                                          ),
1576                                                                              
1577
1578                               ), # Fin BLOC FHasoferReliabilityIndexSensitivitySettings
1579                                       
1580                     ), # Fin BLOC SensitivityAnalysisSettings
1581
1582                     FunctionCallsNumber = SIMP ( statut = "o",
1583                                                  typ = 'TXM',
1584                                                  into = ( 'yes', 'no' ),
1585                                                  defaut = 'yes',
1586                                                  max = 1,
1587                                                  fr = "Nombre d'appels a la fonction",
1588                                                  ang = "Function calls number",
1589                                                  ),
1590
1591
1592                 ), # Fin BLOC FORMResult
1593
1594
1595                 SORMResult = BLOC ( condition = " Approximation in ( 'SecondOrder', ) ",
1596
1597
1598                     TvedtApproximation = SIMP ( statut = "o",
1599                                                 typ = 'TXM',
1600                                                 into = ( 'yes', 'no' ),
1601                                                 defaut = 'yes',
1602                                                 max = 1,
1603                                                 fr = "Approximation de Tvedt",
1604                                                 ang = "Tvedt approximation",
1605                                                 ),
1606
1607                     HohenBichlerApproximation = SIMP ( statut = "o",
1608                                                        typ = 'TXM',
1609                                                        into = ( 'yes', 'no' ),
1610                                                        defaut = 'yes',
1611                                                        max = 1,
1612                                                        fr = "Approximation de HohenBichler",
1613                                                        ang = "HohenBichler approximation",
1614                                                        ),
1615
1616                     BreitungApproximation = SIMP ( statut = "o",
1617                                                    typ = 'TXM',
1618                                                    into = ( 'yes', 'no' ),
1619                                                    defaut = 'yes',
1620                                                    max = 1,
1621                                                    fr = "Approximation de Breitung",
1622                                                    ang = "Breitung approximation",
1623                                                    ),
1624
1625                     DesignPoint = SIMP ( statut = "o",
1626                                          typ = 'TXM',
1627                                          into = ( 'yes', 'no' ),
1628                                          defaut = 'yes',
1629                                          max = 1,
1630                                          fr = "Point de conception",
1631                                          ang = "Design point",
1632                                          ),
1633
1634                     ImportanceFactor = SIMP ( statut = "o",
1635                                               typ = 'TXM',
1636                                               into = ( 'yes', 'no' ),
1637                                               defaut = 'yes',
1638                                               max = 1,
1639                                               fr = "Facteur d'importance pour variable de sortie scalaire",
1640                                               ang = "Importance factor",
1641                                               ),
1642
1643                     ImportanceFactorSettings = BLOC ( condition = " ImportanceFactor in ( 'yes', ) ",
1644
1645                                      ImportanceFactorDrawingFilename = SIMP ( statut = "o",
1646                                                                               typ = "TXM",
1647                                                                               max = 1,
1648                                                                               fr = "Nom du fichier graphique des facteurs d'importance",
1649                                                                               ang = "Importance Factor Drawing Filename",
1650                                                                               ),
1651                                                                              
1652
1653                               ), # Fin BLOC ImportanceFactorSettings
1654                                       
1655                     SensitivityAnalysis = SIMP ( statut = "o",
1656                                                  typ = 'TXM',
1657                                                  into = ( 'yes', 'no' ),
1658                                                  defaut = 'yes',
1659                                                  max = 1,
1660                                                  fr = "Analyse de sensibilite",
1661                                                  ang = "Sensitivity analysis",
1662                                                  ),
1663
1664                     SensitivityAnalysisSettings = BLOC ( condition = " SensitivityAnalysis in ( 'yes', ) ",
1665
1666                             HasoferReliabilityIndexSensitivity = SIMP ( statut = "o",
1667                                                              typ = 'TXM',
1668                                                              into = ( 'yes', 'no' ),
1669                                                              defaut = 'yes',
1670                                                              max = 1,
1671                                                              fr = "Indice de fiabilite de Hasofer",
1672                                                              ang = "Hasofer reliability index",
1673                                                              ),
1674                                                                  
1675                             HasoferReliabilityIndexSensitivitySettings = BLOC ( condition = " HasoferReliabilityIndexSensitivity in ( 'yes', ) ",
1676
1677                                      HasoferReliabilityIndexSensitivityDrawingFilename = SIMP ( statut = "o",
1678                                                                          typ = "TXM",
1679                                                                          max = 1,
1680                                                                          fr = "Nom du fichier graphique des sensibilites",
1681                                                                          ang = "Sensitivity Drawing Filename",
1682                                                                          ),
1683                                                                              
1684
1685                               ), # Fin BLOC FHasoferReliabilityIndexSensitivitySettings
1686                                       
1687                     ), # Fin BLOC SensitivityAnalysisSettings
1688
1689                     FunctionCallsNumber = SIMP ( statut = "o",
1690                                                  typ = 'TXM',
1691                                                  into = ( 'yes', 'no' ),
1692                                                  defaut = 'yes',
1693                                                  max = 1,
1694                                                  fr = "Nombre d'appels a la fonction",
1695                                                  ang = "Function calls number",
1696                                                  ),
1697
1698
1699                 ), # Fin BLOC SecondOrder
1700
1701
1702                                      
1703         ), # Fin BLOC FORM_SORMSettings
1704
1705
1706                                
1707   ), # Fin BLOC ThresholdExceedence
1708
1709
1710
1711 ) # Fin PROC CRITERIA
1712 # Ordre Catalogue CRITERIA
1713
1714
1715
1716
1717
1718
1719