1 # -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2007-2013 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # --------------------------------------------------
23 # --------------------------------------------------
25 #from Accas import ASSD, JDC_CATA, AU_MOINS_UN, PROC, SIMP, FACT, OPER, MACRO, BLOC, A_VALIDATOR
29 class loi ( ASSD ) : pass
30 class variable ( ASSD ) : pass
31 class sd_charge ( ASSD ) : pass
32 class sd_generateur ( ASSD ) : pass
33 class sd_ligne ( ASSD ) : pass
34 class sd_transfo ( ASSD ) : pass
35 class sd_moteur (ASSD) : pass
36 #class sd_busbar ( sd_generateur,sd_charge ) : pass
40 def __init__(self,ntuple):
43 def __convert__(self,valeur):
44 if type(valeur) == types.StringType:
46 if len(valeur) != self.ntuple:
51 return "Tuple de %s elements" % self.ntuple
57 def __init__(self,nbLigs=None,nbCols=None,methodeCalculTaille=None,formatSortie="ligne",valSup=None,valMin=None,structure=None):
60 self.methodeCalculTaille=methodeCalculTaille
61 self.formatSortie=formatSortie
64 self.structure=structure
66 def __convert__(self,valeur):
67 # Attention ne verifie pas grand chose
68 if type(valeur) != types.ListType :
73 return "Matrice %s x %s" % (self.nbLigs, self.nbCols)
80 JdC = JDC_CATA ( code = 'PSEN',
82 regles = ( AU_MOINS_UN ( 'PSSE_PARAMETERS' ),
83 AU_MOINS_UN ( 'DIRECTORY' ),
84 AU_MOINS_UN ( 'DISTRIBUTION' ),
85 AU_MOINS_UN ( 'SIMULATION' ),
86 AU_PLUS_UN ( 'PSSE_PARAMETERS' ),
87 AU_PLUS_UN ( 'DIRECTORY' ),
88 AU_PLUS_UN ( 'SIMULATION' ),
89 AU_PLUS_UN ( 'CORRELATION' ),
90 AU_PLUS_UN ( 'N_1_GENERATORS' ),
91 AU_PLUS_UN ( 'N_1_LINES' ),
92 AU_PLUS_UN ( 'N_1_LOADS' ),
93 AU_PLUS_UN ( 'N_1_MOTORS' ),
94 AU_PLUS_UN ( 'N_1_TRANSFORMERS' ),
100 # --------------------------------------------------
102 # --------------------------------------------------
104 MONGENER = OPER ( nom = "MONGENER",
105 sd_prod = sd_generateur,
106 UIinfo = {"groupes": ("CACHE")},
111 ID = SIMP ( statut = 'o', typ = "TXM", fr = "num bus", ang = "num bus",),
113 MONMOTEUR = OPER ( nom = "MONMOTEUR",
115 UIinfo = {"groupes": ("CACHE")},
120 ID = SIMP ( statut = 'o', typ = "TXM", fr = "num bus", ang = "num bus",),
122 MACHARGE = OPER ( nom = "MACHARGE",
124 UIinfo = {"groupes": ("CACHE")},
129 ID = SIMP ( statut = 'o', typ = "TXM", fr = "nom charge", ang = "load name",),
131 MALIGNE = OPER ( nom = "MALIGNE",
133 UIinfo = {"groupes": ("CACHE")},
138 ID = SIMP ( statut = 'o', typ = "TXM", fr = "nom ligne", ang = "line name",),
140 MONTRANSFO = OPER ( nom = "MONTRANSFO",
141 sd_prod = sd_transfo,
142 UIinfo = {"groupes": ("CACHE")},
144 fr = "Transformateur",
147 ID = SIMP ( statut = 'o', typ = "TXM", fr = "nom transformateur", ang = "transformer name",),
152 PSSE_PARAMETERS = PROC ( nom = "PSSE_PARAMETERS",
155 ALGORITHM = SIMP ( statut = "o",
157 into=["Optimum Power Flow","Economic Dispatch and Power Flow"],
158 defaut="Optimum Power Flow",
160 I_MAX = SIMP ( statut = "o",
162 into=['RateA','RateB','RateC'],
165 LOCK_TAPS = SIMP ( statut = "o",
170 b_OPF = BLOC (condition = "ALGORITHM == 'Optimum Power Flow'",
171 FUEL_COST = SIMP ( statut = "o",
175 LOADSHEDDING_COST = SIMP ( statut = "o",
179 MVAR_COST = SIMP ( statut = "o",
183 ITERATION_LIMIT = SIMP ( statut = "o",
188 QGEN_CONTROL = SIMP ( statut = "o",
192 b_QgenControl = BLOC (condition = "QGEN_CONTROL == True",
193 SAVE_CASE_BEFORE_QCONTROL = SIMP ( statut = "o",
196 fr = "Sauvegarder des fichiers de cas avant d'avoir deconnecte les groupes ne produisant pas de la puissance active",
197 ang = "Save network case files before having disconnected groups that dont generate active power.",
202 b_ECD = BLOC (condition = "ALGORITHM == 'Economic Dispatch and Power Flow'",
203 ecd_file=SIMP(statut="o", typ = ('Fichier', 'Economic Dispatch Files (*.ecd);;All Files (*)',),),
206 ## P_MIN= SIMP ( statut = "o",
212 SIMULATION = PROC ( nom = "SIMULATION",
215 regles =(EXCLUS('NUMBER_PACKAGE','CONVERGENCE'), UN_PARMI('NUMBER_PACKAGE','CONVERGENCE'),),
217 SIZE_PACKAGE = SIMP ( statut = "o",
222 NUMBER_PACKAGE = SIMP ( statut = "f",
226 CONVERGENCE = SIMP ( statut = "f",
231 ## STUDY = SIMP ( statut = "o",
233 ## into = ( 'N-1', 'Load', 'Wind-1', 'Wind-2', 'PV' ),
235 ## fr = "Affichage du niveau de wrapper de la bibliotheque Open TURNS",
236 ## ang = "Open TURNS library debug level print",
241 #================================
242 # Definition du modele physique
243 #================================
247 CORRELATION = PROC ( nom = 'CORRELATION',
250 fr = "Correlation entre variables",
251 ang = "Variable correlation",
253 #### Copula = SIMP ( statut = "o",
255 #### into = ( "Independent", "Normal" ),
256 #### defaut = "Independent",
257 #### fr = "Type de la copule",
258 #### ang = "Copula kind",
261 ## # Matrix = BLOC ( condition = "Copula in ( 'Normal', )",
263 CorrelationMatrix = SIMP ( statut = "o",
264 typ = Matrice(nbLigs=None,
266 methodeCalculTaille='NbDeDistributions',
267 structure="symetrique"),
268 fr = "Matrice de correlation entre les variables d'entree",
269 ang = "Correlation matrix for input variables",
273 ## #), # Fin BLOC Matrix
278 DIRECTORY = MACRO ( nom = 'DIRECTORY',
280 fr = "Chargement des directoires et fichiers",
281 ang = "Load directories and files necessary to run PSEN",
282 sd_prod = opsPSEN.INCLUDE,
283 op_init = opsPSEN.INCLUDE_context,
287 PSSE_path=SIMP(statut="o",typ='Repertoire',defaut='C:\Program Files\PTI\PSSE33\PSSBIN'),
288 sav_file=SIMP(statut="o", typ = ('Fichier', 'Network Case Files (*.sav);;All Files (*)',),),
289 results_folder=SIMP(statut="o",typ='Repertoire'),
290 #lines_file=SIMP(statut="o" ,typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),),
291 #groups_file=SIMP(statut="o", typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),),
292 #generationsystem_file=SIMP(statut="o" ,typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),),
298 #================================
299 # Importation des fichiers csv N-1
300 #================================
302 N_1_LINES = PROC( nom="N_1_LINES",
307 Activated = SIMP ( statut='o', typ=bool, defaut=True),
308 ## FileName = SIMP ( statut = "o",
309 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
310 ## fr = "chemin du fichier csv des probabilites des defauts lignes",
311 ## ang = "csv file path with probabilities of line outages",
313 Probability = SIMP ( statut = 'o',
316 fr = "Probabilite d'indisponibilite de la ligne",
317 ang = "Probability that the line is not available",
318 validators=VerifTypeTuple((sd_ligne,'R')),),
321 N_1_TRANSFORMERS = PROC( nom="N_1_TRANSFORMERS",
324 fr = "N-1 transformateurs",
325 ang = "N-1 transformers",
326 Activated = SIMP ( statut='o', typ=bool, defaut=True),
327 ## FileName = SIMP ( statut = "o",
328 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
329 ## fr = "chemin du fichier csv des probabilites des defauts transformateur",
330 ## ang = "csv file path with probabilities of transformer outages",
332 Probability = SIMP ( statut = 'o',
335 fr = "Probabilite d'indisponibilite de la ligne",
336 ang = "Probability that the line is not available",
337 validators=VerifTypeTuple((sd_transfo,'R')),),
339 N_1_GENERATORS = PROC( nom="N_1_GENERATORS",
342 fr = "N-1 generateurs",
343 ang = "N-1 generators",
344 Activated = SIMP ( statut='o', typ=bool, defaut=True),
345 ## FileName = SIMP ( statut = "o",
346 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
347 ## fr = "chemin du fichier csv des probabilites des defauts generateurs",
348 ## ang = "csv file path with probabilities of generator outages",
350 Probability = SIMP ( statut = 'o',
353 fr = "Probabilite d'indisponibilite du generateur",
354 ang = "Probability that the generator is not available",
355 validators=VerifTypeTuple((sd_generateur,'R')),),
357 N_1_MOTORS = PROC( nom="N_1_MOTORS",
362 Activated = SIMP ( statut='o', typ=bool, defaut=True),
363 ## FileName = SIMP ( statut = "o",
364 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
365 ## fr = "chemin du fichier csv des probabilites des defauts generateurs",
366 ## ang = "csv file path with probabilities of generator outages",
368 Probability = SIMP ( statut = 'o',
371 fr = "Probabilite d'indisponibilite du moteur",
372 ang = "Probability that the motor is not available",
373 validators=VerifTypeTuple((sd_moteur,'R')),),
375 N_1_LOADS = PROC( nom="N_1_LOADS",
380 Activated = SIMP ( statut='o', typ=bool, defaut=True),
381 ## FileName = SIMP ( statut = "o",
382 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
383 ## fr = "chemin du fichier csv des probabilites des defauts charges",
384 ## ang = "csv file path with probabilities of load outages",
386 Probability = SIMP ( statut = 'o',
389 fr = "Probabilite d'indisponibilite du generateur",
390 ang = "Probability that the generator is not available",
391 validators=VerifTypeTuple((sd_charge,'R')),),
397 #================================
398 # Definition des LOIS
399 #================================
401 # Nota : les variables de type OPER doivent etre en majuscules !
402 # Nota : les variables de type OPER doivent etre de premier niveau (pas imbriquees dans un autre type)
403 DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
406 fr = "Definitions des lois marginales utilisees par les variables d'entree",
409 # Choisir generateur ou charge
412 ## TypeMachine = SIMP ( statut='o', typ='TXM',
413 ## into = ('charge','vent1','vent2','pv','N-1',),
415 Activated = SIMP ( statut='o', typ=bool, defaut=True),
416 ComponentType = SIMP (statut='o', typ='TXM',
417 into = ('Generator','Load','Motor','Line','Transformer'),),
418 b_gener = BLOC (condition = "ComponentType == 'Generator'",
420 Type = SIMP (statut= "o", typ = "TXM",
421 into = ("Generator Power Level", "Generator Availability"),
422 fr = "Choisir si c'est le niveau de puissance ou la disponibilit� du generateur qui sera tiree",
423 ang= "Choose whether the power level or the availability of the generator will be set by the law",
424 defaut = "Generator Power Level",
427 Sampling = SIMP (statut= "o", typ = "TXM",
428 into = ("Same sample for all generators", "One sample per generator"),
429 fr = "Choisir si une seule tirage sera fait pour tous les generateurs ou si des tirages differents seront faits pour chaque generateur",
430 ang= "Choose whether one drawing/sample will be performed for all of the generators or whether a different drawing/sample will be performed for each generator.",
431 defaut = "Same sample for all generators",
434 Generator = SIMP(statut='o',typ=sd_generateur,max="**", homo="SansOrdreNiDoublon",docu="sd_generateur"),
437 # Type de distribution
440 b_gener_level = BLOC (condition= "Type == 'Generator Power Level'",
442 Law = SIMP ( statut = "o", typ = "TXM",
443 into = ( "Exponential",
449 "TimeSeries_from_file",
454 fr = "Choix du type de la loi marginale",
455 ang = "1D marginal distribution",
460 # Definition des parametres selon le type de la loi
464 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
466 Lambda = SIMP ( statut = "o",
470 fr = "Parametre Lambda | Lambda > 0",
471 ang = "Lambda parameter | Lambda > 0",
474 Gamma = SIMP ( statut = "o",
477 fr = "Borne inferieure du support de la loi",
478 ang = "Support lower bound",
481 ), # Fin BLOC EXPONENTIAL
484 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
486 First = SIMP ( statut = "o",
489 fr = "Borne inferieure du supoport de la loi",
490 ang = "Support lower bound",
493 # Il faut definir une collection de couples ( x,p )
494 Values = SIMP ( statut = 'o',
497 fr = "Liste de couples : largeur de classe, hauteur de classe",
498 ang = "Class bandwidth, class height couple list",
499 validators=VerifTypeTuple(('R','R')),
502 ), # Fin BLOC HISTOGRAM
505 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
507 Mu = SIMP ( statut = "o",
510 fr = "Moyenne de la loi",
514 Sigma = SIMP ( statut = "o",
518 fr = "Ecart type de la loi",
519 ang = "Standard deviation",
525 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
527 Sigma = SIMP ( statut = "o",
530 fr = "Parametre Sigma de la loi | Sigma > 0",
531 ang = "Sigma parameter | Sigma > 0",
534 Gamma = SIMP ( statut = "o",
537 fr = "Borne inferieure du support de la loi",
538 ang = "Support lower bound",
540 ), # Fin BLOC RAYLEIGH
542 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
544 FileName = SIMP ( statut = "o",
545 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
546 fr = "Nom du fichier .csv",
547 ang = ".csv file name",
553 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
555 MuN = SIMP ( statut = "o",
558 fr = "Moyenne de la loi Normale non tronqu�e",
559 ang = "Mean value of the associated non truncated normal distribution",
562 SigmaN = SIMP ( statut = "o",
566 fr = "Ecart-type de la loi Normale non tronqu�e",
567 ang = "Standard deviation of the associated non truncated normal distribution",
570 A = SIMP ( statut = "o",
573 fr = "Borne inferieure de la loi | A < B",
574 ang = "Lower bound | A < B",
577 B = SIMP ( statut = "o",
580 fr = "Borne superieure de la loi | A < B",
581 ang = "Upper bound | A < B",
584 ), # Fin BLOC TRUNCATEDNORMAL
587 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
589 FileName = SIMP ( statut = "o",
590 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
591 fr = "Fichier CSV d'une serie temporelle",
592 ang = "CSV file of a time series",
597 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
599 A = SIMP ( statut = "o",
602 fr = "Borne inferieure du support de la loi | A < B",
603 ang = "Support lower bound | A < B",
606 B = SIMP ( statut = "o",
609 fr = "Borne superieure du support de la loi | A < B",
610 ang = "Support upper bound | A < B",
613 ), # Fin BLOC UNIFORM
616 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
618 # Il faut definir une collection de couples ( x,p )
619 Values = SIMP ( statut = 'o',
622 fr = "Liste de couples : (valeur, prob.)",
623 ang = "List of pairs : (value, prob.)",
624 validators=VerifTypeTuple(('R','R')),
627 ), # Fin BLOC USERDEFINED
630 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
632 Settings = SIMP ( statut = "o",
635 into = ( "AlphaBeta", "MuSigma" ),
636 defaut = "AlphaBeta",
637 fr = "Parametrage de la loi weibull",
638 ang = "Weibull distribution parameter set",
641 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
643 Alpha = SIMP ( statut = "o",
647 fr = "Parametre Alpha de la loi | Alpha > 0",
648 ang = "Alpha parameter | Alpha > 0",
651 Beta = SIMP ( statut = "o",
655 fr = "Parametre Beta de la loi | Beta > 0",
656 ang = "Beta parameter | Beta > 0",
659 ), # Fin BLOC AlphaBeta_Parameters
662 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
664 Mu = SIMP ( statut = "o",
667 fr = "Moyenne de la loi",
671 Sigma = SIMP ( statut = "o",
675 fr = "Ecart type de la loi",
676 ang = "Standard deviation",
679 ), # Fin BLOC MuSigma_Parameters
681 Gamma = SIMP ( statut = "o",
684 fr = "Borne inferieure du support de la loi",
685 ang = "Support lower bound",
688 ), # Fin BLOC WEIBULL
691 Transfer_Function = FACT(statut='f',
693 TF_Input = SIMP ( statut='o',
695 fr = 'Entrer une fonction de transfert � partir d''un fichier .pow (vitesse de vent - puissance eolienne)\n \
696 ou entrer une liste de tuples (valeur tiree - puissance normalisee)',
697 ang = 'Enter wind speed - turbine production transfer function as a .pow file, \n \
698 or enter a generic list of (law output value, normalized power output) tuples',
699 into = ('.pow file', 'tuples list'),
701 b_file = BLOC(condition = "TF_Input == '.pow file'",
702 File_Name = SIMP ( statut = "o",
703 typ = ('Fichier', 'Pow files (*.pow);;All Files (*)',),
704 fr = "Nom du fichier de transfer .pow",
705 ang = ".pow file name",
707 Wind_Speed_Measurement_Height = SIMP ( statut = 'o',
710 fr = 'Hauteur (en metres) a laquelle les mesures de vitesse du vent ont ete prises',
711 ang = 'Height of wind speed measurements (m)',
715 Hub_Height = SIMP (statut = 'o',
717 fr = 'hauteur de moyeu de l''eolienne',
718 ang = 'wind turbine hub height',
721 AlphaWS = SIMP (statut = 'o',
723 fr = 'l''alpha pour extrapoler les mesures de vitesse du vent a la hauteur du moyeu ',
724 ang = 'alpha used to extrapolate wind speed measurements to hub height',
729 Percent_Losses = SIMP (statut = 'o',
731 fr = 'pourcentage de pertes entre la sortie theorique d''une turbine et la sortie de la centrale',
732 ang = 'percent losses between theoretical power output of a single turbine and the output of the farm',
737 ), #fin du bloc FileName
739 b_tuples = BLOC(condition = "TF_Input == 'tuples list'",
741 TF_Values = SIMP ( statut = 'o',
745 fr = "Liste de couples : valeur tiree, puissance normalisee sortie",
746 ang = "List of couples : value set by law, normalized power output",
747 validators=VerifTypeTuple(('R','R')),
749 ), #fin du block Tuples List
751 ), #fin du FACT Transfer Function
753 ), #fin du bloc generator level
756 b_gener_avail = BLOC (condition= "Type == 'Generator Availability'",
758 Law = SIMP ( statut = "o", typ = "TXM",
759 into = ( #"Exponential",
765 "TimeSeries_from_file",
770 fr = "Choix du type de la loi marginale",
771 ang = "1D marginal distribution",
772 defaut="UserDefined",
777 # Definition des parametres selon le type de la loi
781 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
783 FileName = SIMP ( statut = "o",
784 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
785 fr = "Fichier CSV d'une serie temporelle",
786 ang = "CSV file of a time series",
791 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
793 # Il faut definir une collection de couples ( x,p )
794 Values = SIMP ( statut = 'o',
797 fr = "Liste de couples : (valeur, prob.)",
798 ang = "List of pairs : (value, prob.)",
799 validators=VerifTypeTuple(('R','R')),
800 defaut=((0,0.0),(1,1.0)),
803 ), # Fin BLOC USERDEFINED
806 ), #fin du bloc generator avail
809 ), #fin du bloc generateur
812 b_charge = BLOC (condition = "ComponentType == 'Load'",
816 # Type de distribution
819 Type = SIMP (statut= "o", typ = "TXM",
820 into = ("Load Level", "Load Availability"),
821 fr = "Choisir si c'est le niveau de charge ou la disponibilit� de la charge qui sera tiree",
822 ang= "Choose whether the power level or the availability of the load will be set by the law",
823 defaut = "Load Level",
826 Sampling = SIMP (statut= "o", typ = "TXM",
827 into = ("Same sample for all loads", "One sample per load"),
828 fr = "Choisir si une seule tirage sera fait pour tous les charges ou si des tirages differents seront faits pour chaque charge",
829 ang= "Choose whether one drawing/sample will be performed for all of the loads or whether a different drawing/sample will be performed for each load.",
830 defaut = "Same sample for all loads",
833 Load = SIMP(statut='o',typ=sd_charge,max="**", homo="SansOrdreNiDoublon",),
836 b_charge_level = BLOC (condition = "Type == 'Load Level'",
838 Law = SIMP ( statut = "o", typ = "TXM",
839 into = ( "Exponential",
845 "TimeSeries_from_file",
850 fr = "Choix du type de la loi marginale",
851 ang = "1D marginal distribution",
856 # Definition des parametres selon le type de la loi
860 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
862 Lambda = SIMP ( statut = "o",
866 fr = "Parametre Lambda | Lambda > 0",
867 ang = "Lambda parameter | Lambda > 0",
870 Gamma = SIMP ( statut = "o",
873 fr = "Borne inferieure du support de la loi",
874 ang = "Support lower bound",
877 ), # Fin BLOC EXPONENTIAL
880 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
882 First = SIMP ( statut = "o",
885 fr = "Borne inferieure du supoport de la loi",
886 ang = "Support lower bound",
889 # Il faut definir une collection de couples ( x,p )
890 Values = SIMP ( statut = 'o',
893 fr = "Liste de couples : largeur de classe, hauteur de classe",
894 ang = "Class bandwidth, class height couple list",
895 validators=VerifTypeTuple(('R','R')),
898 ), # Fin BLOC HISTOGRAM
901 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
903 Mu = SIMP ( statut = "o",
906 fr = "Moyenne de la loi",
910 Sigma = SIMP ( statut = "o",
914 fr = "Ecart type de la loi",
915 ang = "Standard deviation",
921 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
923 Sigma = SIMP ( statut = "o",
926 fr = "Parametre Sigma de la loi | Sigma > 0",
927 ang = "Sigma parameter | Sigma > 0",
930 Gamma = SIMP ( statut = "o",
933 fr = "Borne inferieure du support de la loi",
934 ang = "Support lower bound",
936 ), # Fin BLOC RAYLEIGH
938 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
940 FileName = SIMP ( statut = "o",
941 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
942 fr = "Nom du fichier .csv",
943 ang = ".csv file name",
949 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
951 MuN = SIMP ( statut = "o",
954 fr = "Moyenne de la loi Normale non tronqu�e",
955 ang = "Mean value of the associated non truncated normal distribution",
958 SigmaN = SIMP ( statut = "o",
962 fr = "Ecart-type de la loi Normale non tronqu�e",
963 ang = "Standard deviation of the associated non truncated normal distribution",
966 A = SIMP ( statut = "o",
969 fr = "Borne inferieure de la loi | A < B",
970 ang = "Lower bound | A < B",
973 B = SIMP ( statut = "o",
976 fr = "Borne superieure de la loi | A < B",
977 ang = "Upper bound | A < B",
980 ), # Fin BLOC TRUNCATEDNORMAL
983 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
985 FileName = SIMP ( statut = "o",
986 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
987 fr = "Fichier CSV d'une serie temporelle",
988 ang = "CSV file of a time series",
993 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
995 A = SIMP ( statut = "o",
998 fr = "Borne inferieure du support de la loi | A < B",
999 ang = "Support lower bound | A < B",
1002 B = SIMP ( statut = "o",
1005 fr = "Borne superieure du support de la loi | A < B",
1006 ang = "Support upper bound | A < B",
1009 ), # Fin BLOC UNIFORM
1012 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1014 # Il faut definir une collection de couples ( x,p )
1015 Values = SIMP ( statut = 'o',
1018 fr = "Liste de couples : (valeur, probabilite)",
1019 ang = "List of pairs : (value, probability)",
1020 validators=VerifTypeTuple(('R','R')),
1023 ), # Fin BLOC USERDEFINED
1026 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
1028 Settings = SIMP ( statut = "o",
1031 into = ( "AlphaBeta", "MuSigma" ),
1032 defaut = "AlphaBeta",
1033 fr = "Parametrage de la loi weibull",
1034 ang = "Weibull distribution parameter set",
1037 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
1039 Alpha = SIMP ( statut = "o",
1043 fr = "Parametre Alpha de la loi | Alpha > 0",
1044 ang = "Alpha parameter | Alpha > 0",
1047 Beta = SIMP ( statut = "o",
1051 fr = "Parametre Beta de la loi | Beta > 0",
1052 ang = "Beta parameter | Beta > 0",
1055 ), # Fin BLOC AlphaBeta_Parameters
1058 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1060 Mu = SIMP ( statut = "o",
1063 fr = "Moyenne de la loi",
1067 Sigma = SIMP ( statut = "o",
1071 fr = "Ecart type de la loi",
1072 ang = "Standard deviation",
1075 ), # Fin BLOC MuSigma_Parameters
1077 Gamma = SIMP ( statut = "o",
1080 fr = "Borne inferieure du support de la loi",
1081 ang = "Support lower bound",
1084 ), # Fin BLOC WEIBULL
1086 ), #fin du block Load Level
1089 b_charge_avail = BLOC (condition = "Type == 'Load Availability'",
1091 Law = SIMP ( statut = "o", typ = "TXM",
1092 into = ( #"Exponential",
1098 "TimeSeries_from_file",
1103 fr = "Choix du type de la loi marginale",
1104 ang = "1D marginal distribution",
1105 defaut = "UserDefined",
1110 # Definition des parametres selon le type de la loi
1113 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1115 FileName = SIMP ( statut = "o",
1116 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1117 fr = "Fichier CSV d'une serie temporelle",
1118 ang = "CSV file of a time series",
1124 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1126 # Il faut definir une collection de couples ( x,p )
1127 Values = SIMP ( statut = 'o',
1130 fr = "Liste de couples : (valeur, probabilite)",
1131 ang = "List of pairs : (value, probability)",
1132 validators=VerifTypeTuple(('R','R')),
1133 defaut=((0,0.0),(1,1.0)),
1136 ), # Fin BLOC USERDEFINED
1139 ), #fin du block Load Avail
1142 ), #fin du bloc charge
1147 b_moteur = BLOC (condition = "ComponentType == 'Motor'",
1151 # Type de distribution
1154 Type = SIMP (statut= "o", typ = "TXM",
1155 into = ("Motor Level", "Motor Availability"),
1156 fr = "Choisir si c'est le niveau de charge du moteur ou la disponibilit� du moteur qui sera tiree",
1157 ang= "Choose whether the power level or the availability of the motor will be set by the law",
1158 defaut = "Motor Level",
1161 Sampling = SIMP (statut= "o", typ = "TXM",
1162 into = ("Same sample for all motors", "One sample per motor"),
1163 fr = "Choisir si une seule tirage sera fait pour tous les moteurs ou si des tirages differents seront faits pour chaque moteur",
1164 ang= "Choose whether one drawing/sample will be performed for all of the motors or whether a different drawing/sample will be performed for each motor.",
1165 defaut = "Same sample for all motors",
1168 Motor = SIMP(statut='o',typ=sd_moteur,max="**", homo="SansOrdreNiDoublon",),
1171 b_moteur_level = BLOC (condition = "Type == 'Motor Level'",
1173 Law = SIMP ( statut = "o", typ = "TXM",
1174 into = ( "Exponential",
1180 "TimeSeries_from_file",
1185 fr = "Choix du type de la loi marginale",
1186 ang = "1D marginal distribution",
1191 # Definition des parametres selon le type de la loi
1195 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
1197 Lambda = SIMP ( statut = "o",
1201 fr = "Parametre Lambda | Lambda > 0",
1202 ang = "Lambda parameter | Lambda > 0",
1205 Gamma = SIMP ( statut = "o",
1208 fr = "Borne inferieure du support de la loi",
1209 ang = "Support lower bound",
1212 ), # Fin BLOC EXPONENTIAL
1215 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
1217 First = SIMP ( statut = "o",
1220 fr = "Borne inferieure du supoport de la loi",
1221 ang = "Support lower bound",
1224 # Il faut definir une collection de couples ( x,p )
1225 Values = SIMP ( statut = 'o',
1228 fr = "Liste de couples : largeur de classe, hauteur de classe",
1229 ang = "Class bandwidth, class height couple list",
1230 validators=VerifTypeTuple(('R','R')),
1233 ), # Fin BLOC HISTOGRAM
1236 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
1238 Mu = SIMP ( statut = "o",
1241 fr = "Moyenne de la loi",
1245 Sigma = SIMP ( statut = "o",
1249 fr = "Ecart type de la loi",
1250 ang = "Standard deviation",
1253 ), # Fin BLOC NORMAL
1256 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
1258 Sigma = SIMP ( statut = "o",
1261 fr = "Parametre Sigma de la loi | Sigma > 0",
1262 ang = "Sigma parameter | Sigma > 0",
1265 Gamma = SIMP ( statut = "o",
1268 fr = "Borne inferieure du support de la loi",
1269 ang = "Support lower bound",
1271 ), # Fin BLOC RAYLEIGH
1273 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
1275 FileName = SIMP ( statut = "o",
1276 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1277 fr = "Nom du fichier .csv",
1278 ang = ".csv file name",
1284 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
1286 MuN = SIMP ( statut = "o",
1289 fr = "Moyenne de la loi Normale non tronqu�e",
1290 ang = "Mean value of the associated non truncated normal distribution",
1293 SigmaN = SIMP ( statut = "o",
1297 fr = "Ecart-type de la loi Normale non tronqu�e",
1298 ang = "Standard deviation of the associated non truncated normal distribution",
1301 A = SIMP ( statut = "o",
1304 fr = "Borne inferieure de la loi | A < B",
1305 ang = "Lower bound | A < B",
1308 B = SIMP ( statut = "o",
1311 fr = "Borne superieure de la loi | A < B",
1312 ang = "Upper bound | A < B",
1315 ), # Fin BLOC TRUNCATEDNORMAL
1318 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1320 FileName = SIMP ( statut = "o",
1321 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1322 fr = "Fichier CSV d'une serie temporelle",
1323 ang = "CSV file of a time series",
1328 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
1330 A = SIMP ( statut = "o",
1333 fr = "Borne inferieure du support de la loi | A < B",
1334 ang = "Support lower bound | A < B",
1337 B = SIMP ( statut = "o",
1340 fr = "Borne superieure du support de la loi | A < B",
1341 ang = "Support upper bound | A < B",
1344 ), # Fin BLOC UNIFORM
1347 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1349 # Il faut definir une collection de couples ( x,p )
1350 Values = SIMP ( statut = 'o',
1353 fr = "Liste de couples : (valeur, probabilite)",
1354 ang = "List of pairs : (value, probability)",
1355 validators=VerifTypeTuple(('R','R')),
1358 ), # Fin BLOC USERDEFINED
1361 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
1363 Settings = SIMP ( statut = "o",
1366 into = ( "AlphaBeta", "MuSigma" ),
1367 defaut = "AlphaBeta",
1368 fr = "Parametrage de la loi weibull",
1369 ang = "Weibull distribution parameter set",
1372 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
1374 Alpha = SIMP ( statut = "o",
1378 fr = "Parametre Alpha de la loi | Alpha > 0",
1379 ang = "Alpha parameter | Alpha > 0",
1382 Beta = SIMP ( statut = "o",
1386 fr = "Parametre Beta de la loi | Beta > 0",
1387 ang = "Beta parameter | Beta > 0",
1390 ), # Fin BLOC AlphaBeta_Parameters
1393 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1395 Mu = SIMP ( statut = "o",
1398 fr = "Moyenne de la loi",
1402 Sigma = SIMP ( statut = "o",
1406 fr = "Ecart type de la loi",
1407 ang = "Standard deviation",
1410 ), # Fin BLOC MuSigma_Parameters
1412 Gamma = SIMP ( statut = "o",
1415 fr = "Borne inferieure du support de la loi",
1416 ang = "Support lower bound",
1419 ), # Fin BLOC WEIBULL
1421 ), #fin du block Load Level
1424 b_moteur_avail = BLOC (condition = "Type == 'Motor Availability'",
1426 Law = SIMP ( statut = "o", typ = "TXM",
1427 into = ( #"Exponential",
1433 "TimeSeries_from_file",
1438 fr = "Choix du type de la loi marginale",
1439 ang = "1D marginal distribution",
1440 defaut = "UserDefined",
1445 # Definition des parametres selon le type de la loi
1448 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1450 FileName = SIMP ( statut = "o",
1451 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1452 fr = "Fichier CSV d'une serie temporelle",
1453 ang = "CSV file of a time series",
1459 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1461 # Il faut definir une collection de couples ( x,p )
1462 Values = SIMP ( statut = 'o',
1465 fr = "Liste de couples : (valeur, probabilite)",
1466 ang = "List of pairs : (value, probability)",
1467 validators=VerifTypeTuple(('R','R')),
1468 defaut=((0,0.0),(1,1.0)),
1471 ), # Fin BLOC USERDEFINED
1474 ), #fin du block Load Avail
1477 ), #fin du bloc moteur
1480 b_ligne = BLOC (condition = "ComponentType == 'Line'",
1484 # Type de distribution
1487 Type = SIMP (statut= "o", typ = "TXM",
1488 into = ("Line Availability",),
1489 fr = "La disponibilite de la ligne sera tiree",
1490 ang= "Line availability will be set by the law",
1491 defaut = "Line Availability",
1494 Sampling = SIMP (statut= "o", typ = "TXM",
1495 into = ("Same sample for all lines", "One sample per line"),
1496 fr = "Choisir si une seule tirage sera fait pour tous les lignes ou si des tirages differents seront faits pour chaque ligne",
1497 ang= "Choose whether one drawing/sample will be performed for all of the lines or whether a different drawing/sample will be performed for each line.",
1498 defaut = "Same sample for all lines",
1501 Line = SIMP(statut='o',typ=sd_ligne,max="**", homo="SansOrdreNiDoublon"),
1503 Law = SIMP ( statut = "o", typ = "TXM",
1504 into = ( #"Exponential",
1510 "TimeSeries_from_file",
1515 defaut = "UserDefined",
1516 fr = "Choix du type de la loi marginale",
1517 ang = "1D marginal distribution",
1522 # Definition des parametres selon le type de la loi
1526 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
1528 Lambda = SIMP ( statut = "o",
1532 fr = "Parametre Lambda | Lambda > 0",
1533 ang = "Lambda parameter | Lambda > 0",
1536 Gamma = SIMP ( statut = "o",
1539 fr = "Borne inferieure du support de la loi",
1540 ang = "Support lower bound",
1543 ), # Fin BLOC EXPONENTIAL
1546 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
1548 First = SIMP ( statut = "o",
1551 fr = "Borne inferieure du supoport de la loi",
1552 ang = "Support lower bound",
1555 # Il faut definir une collection de couples ( x,p )
1556 Values = SIMP ( statut = 'o',
1559 fr = "Liste de couples : largeur de classe, hauteur de classe",
1560 ang = "Class bandwidth, class height couple list",
1561 validators=VerifTypeTuple(('R','R')),
1564 ), # Fin BLOC HISTOGRAM
1567 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
1569 Mu = SIMP ( statut = "o",
1572 fr = "Moyenne de la loi",
1576 Sigma = SIMP ( statut = "o",
1580 fr = "Ecart type de la loi",
1581 ang = "Standard deviation",
1584 ), # Fin BLOC NORMAL
1587 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
1589 Sigma = SIMP ( statut = "o",
1592 fr = "Parametre Sigma de la loi | Sigma > 0",
1593 ang = "Sigma parameter | Sigma > 0",
1596 Gamma = SIMP ( statut = "o",
1599 fr = "Borne inferieure du support de la loi",
1600 ang = "Support lower bound",
1602 ), # Fin BLOC RAYLEIGH
1604 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
1606 FileName = SIMP ( statut = "o",
1607 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1608 fr = "Nom du fichier .csv",
1609 ang = ".csv file name",
1615 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
1617 MuN = SIMP ( statut = "o",
1620 fr = "Moyenne de la loi Normale non tronqu�e",
1621 ang = "Mean value of the associated non truncated normal distribution",
1624 SigmaN = SIMP ( statut = "o",
1628 fr = "Ecart-type de la loi Normale non tronqu�e",
1629 ang = "Standard deviation of the associated non truncated normal distribution",
1632 A = SIMP ( statut = "o",
1635 fr = "Borne inferieure de la loi | A < B",
1636 ang = "Lower bound | A < B",
1639 B = SIMP ( statut = "o",
1642 fr = "Borne superieure de la loi | A < B",
1643 ang = "Upper bound | A < B",
1646 ), # Fin BLOC TRUNCATEDNORMAL
1649 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1651 FileName = SIMP ( statut = "o",
1652 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1653 fr = "Fichier CSV d'une serie temporelle",
1654 ang = "CSV file of a time series",
1659 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
1661 A = SIMP ( statut = "o",
1664 fr = "Borne inferieure du support de la loi | A < B",
1665 ang = "Support lower bound | A < B",
1668 B = SIMP ( statut = "o",
1671 fr = "Borne superieure du support de la loi | A < B",
1672 ang = "Support upper bound | A < B",
1675 ), # Fin BLOC UNIFORM
1678 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1680 # Il faut definir une collection de couples ( x,p )
1681 Values = SIMP ( statut = 'o',
1684 fr = "Liste de couples : (valeur, probabilite)",
1685 ang = "List of pairs : (value, probability)",
1686 validators=VerifTypeTuple(('R','R')),
1687 defaut=((0,0.0),(1,1.0)),
1690 ), # Fin BLOC USERDEFINED
1693 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
1695 Settings = SIMP ( statut = "o",
1698 into = ( "AlphaBeta", "MuSigma" ),
1699 defaut = "AlphaBeta",
1700 fr = "Parametrage de la loi weibull",
1701 ang = "Weibull distribution parameter set",
1704 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
1706 Alpha = SIMP ( statut = "o",
1710 fr = "Parametre Alpha de la loi | Alpha > 0",
1711 ang = "Alpha parameter | Alpha > 0",
1714 Beta = SIMP ( statut = "o",
1718 fr = "Parametre Beta de la loi | Beta > 0",
1719 ang = "Beta parameter | Beta > 0",
1722 ), # Fin BLOC AlphaBeta_Parameters
1725 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1727 Mu = SIMP ( statut = "o",
1730 fr = "Moyenne de la loi",
1734 Sigma = SIMP ( statut = "o",
1738 fr = "Ecart type de la loi",
1739 ang = "Standard deviation",
1742 ), # Fin BLOC MuSigma_Parameters
1744 Gamma = SIMP ( statut = "o",
1747 fr = "Borne inferieure du support de la loi",
1748 ang = "Support lower bound",
1751 ), # Fin BLOC WEIBULL
1753 ), #fin du bloc ligne
1755 b_transfo = BLOC (condition = "ComponentType == 'Transformer'",
1759 # Type de distribution
1762 Type = SIMP (statut= "o", typ = "TXM",
1763 into = ("Transformer Availability",),
1764 fr = "La disponibilite du transformateur sera tiree",
1765 ang= "Transformer availability will be set by the law",
1766 defaut = "Transformer Availability"
1769 Sampling = SIMP (statut= "o", typ = "TXM",
1770 into = ("Same sample for all transformers", "One sample per transformer"),
1771 fr = "Choisir si une seule tirage sera fait pour tous les transforamteurs ou si des tirages differents seront faits pour chaque transformateur",
1772 ang= "Choose whether one drawing/sample will be performed for all of the tranformers or whether a different drawing/sample will be performed for each transformer.",
1773 defaut = "Same sample for all transformers",
1776 Transformer = SIMP(statut='o',typ=sd_transfo,max="**", homo="SansOrdreNiDoublon"),
1778 Law = SIMP ( statut = "o", typ = "TXM",
1789 #"NonCentralStudent",
1797 "TimeSeries_from_file",
1802 defaut="UserDefined",
1803 fr = "Choix du type de la loi marginale",
1804 ang = "1D marginal distribution",
1809 # Definition des parametres selon le type de la loi
1812 ## NONPARAM = BLOC ( condition = " Law in ( 'NonParametrique', ) ",
1814 ## FileName = SIMP ( statut = "o",
1815 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1816 ## fr = "Nom du modele physique",
1817 ## ang = "Physical model identifier",
1821 # BETA = BLOC ( condition = " Law in ( 'Beta', ) ",
1823 # Settings = SIMP ( statut = "o",
1826 # into = ( "RT", "MuSigma" ),
1828 # fr = "Parametrage de la loi beta",
1829 # ang = "Beta distribution parameter set",
1832 # RT_Parameters = BLOC ( condition = " Settings in ( 'RT', ) ",
1834 # R = SIMP ( statut = "o",
1838 # fr = "Parametre R de la loi | R > 0",
1839 # ang = "R parameter | R > 0",
1843 # T = SIMP ( statut = "o",
1847 # fr = "Parametre T de la loi | T > R",
1848 # ang = "T parameter | T > R",
1851 # ), # Fin BLOC RT_Parameters
1854 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1856 # Mu = SIMP ( statut = "o",
1859 # fr = "Moyenne de la loi",
1860 # ang = "Mean value",
1863 # Sigma = SIMP ( statut = "o",
1867 # fr = "Ecart type de la loi",
1868 # ang = "Standard deviation",
1871 # ), # Fin BLOC MuSigma_Parameters
1874 # A = SIMP ( statut = "o",
1877 # fr = "Borne inferieure du support de la loi",
1878 # ang = "Support lower bound",
1882 # B = SIMP ( statut = "o",
1885 # fr = "Borne superieure du support de la loi",
1886 # ang = "Support upper bound",
1889 # ), # Fin BLOC BETA
1893 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
1895 Lambda = SIMP ( statut = "o",
1899 fr = "Parametre Lambda | Lambda > 0",
1900 ang = "Lambda parameter | Lambda > 0",
1903 Gamma = SIMP ( statut = "o",
1906 fr = "Borne inferieure du support de la loi",
1907 ang = "Support lower bound",
1910 ), # Fin BLOC EXPONENTIAL
1914 # GAMMA = BLOC ( condition = " Law in ( 'Gamma', ) ",
1916 # Settings = SIMP ( statut = "o",
1919 # into = ( "KLambda", "MuSigma" ),
1920 # defaut = "KLambda",
1921 # fr = "Parametrage de la loi gamma",
1922 # ang = "Gamma distribution parameter set",
1925 # KLambda_Parameters = BLOC ( condition = " Settings in ( 'KLambda', ) ",
1927 # K = SIMP ( statut = "o",
1931 # fr = "Parametre K de la loi | K > 0",
1932 # ang = "K parameter | K > 0",
1935 # Lambda = SIMP ( statut = "o",
1939 # fr = "Parametre Lambda de la loi | Lambda > 0",
1940 # ang = "Lambda parameter | Lambda > 0",
1943 # ), # Fin BLOC KLambda_Parameters
1946 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1948 # Mu = SIMP ( statut = "o",
1951 # fr = "Moyenne de la loi",
1952 # ang = "Mean value",
1955 # Sigma = SIMP ( statut = "o",
1959 # fr = "Ecart type de la loi",
1960 # ang = "Standard deviation",
1963 # ), # Fin BLOC MuSigma_Parameters
1965 # Gamma = SIMP ( statut = "o",
1968 # fr = "Borne inferieure du supoport de la loi",
1969 # ang = "Support lower bound",
1973 # ), # Fin BLOC GAMMA
1977 # GEOMETRIC = BLOC ( condition = " Law in ( 'Geometric', ) ",
1979 # P = SIMP ( statut = "o",
1984 # fr = "Parametre P | 0 < P < 1",
1985 # ang = "P parameter | 0 < P < 1",
1988 # ), # Fin BLOC GEOMETRIC
1992 # GUMBEL = BLOC ( condition = " Law in ( 'Gumbel', ) ",
1994 # Settings = SIMP ( statut = "o",
1997 # into = ( "AlphaBeta", "MuSigma" ),
1998 # defaut = "AlphaBeta",
1999 # fr = "Parametrage de la loi gumbel",
2000 # ang = "Gumbel distribution parameter set",
2003 # AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
2005 # Alpha = SIMP ( statut = "o",
2009 # fr = "Parametre Alpha de la loi | Alpha > 0",
2010 # ang = "Alpha parameter | Alpha > 0",
2013 # Beta = SIMP ( statut = "o",
2016 # fr = "Parametre Beta de la loi",
2017 # ang = "Beta parameter",
2020 # ), # Fin BLOC AlphaBeta_Parameters
2023 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
2025 # Mu = SIMP ( statut = "o",
2028 # fr = "Moyenne de la loi",
2029 # ang = "Mean value",
2032 # Sigma = SIMP ( statut = "o",
2036 # fr = "Ecart type de la loi",
2037 # ang = "Standard deviation",
2040 # ), # Fin BLOC MuSigma_Parameters
2042 # ), # Fin BLOC GUMBEL
2046 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
2048 First = SIMP ( statut = "o",
2051 fr = "Borne inferieure du supoport de la loi",
2052 ang = "Support lower bound",
2055 # Il faut definir une collection de couples ( x,p )
2056 Values = SIMP ( statut = 'o',
2059 fr = "Liste de couples : largeur de classe, hauteur de classe",
2060 ang = "Class bandwidth, class height couple list",
2061 validators=VerifTypeTuple(('R','R')),
2064 ), # Fin BLOC HISTOGRAM
2068 # LAPLACE = BLOC ( condition = " Law in ( 'Laplace', ) ",
2070 # Lambda = SIMP ( statut = "o",
2074 # fr = "Parametre Lambda | Lambda > 0",
2075 # ang = "Lambda parameter | Lambda > 0",
2078 # Mu = SIMP ( statut = "o",
2081 # fr = "Moyenne de la loi",
2082 # ang = "Mean value",
2085 # ), # Fin BLOC LAPLACE
2087 # LOGNORMAL = BLOC ( condition = " Law in ( 'LogNormal', ) ",
2089 # Settings = SIMP ( statut = "o",
2092 # into = ( "MuSigmaLog", "MuSigma", "MuSigmaOverMu" ),
2093 # defaut = "MuSigmaLog",
2094 # fr = "Parametrage de la loi lognormale",
2095 # ang = "Lognormal distribution parameter set",
2098 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
2100 # Mu = SIMP ( statut = "o",
2103 # fr = "Moyenne de la loi",
2104 # ang = "Mean value",
2107 # Sigma = SIMP ( statut = "o",
2111 # fr = "Ecart type de la loi",
2112 # ang = "Standard deviation",
2115 # ), # Fin BLOC MuSigma_Parameters
2117 # MuSigmaOverMu_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaOverMu', ) ",
2119 # Mu = SIMP ( statut = "o",
2122 # fr = "Moyenne de la loi",
2123 # ang = "Mean value",
2126 # SigmaOverMu = SIMP ( statut = "o",
2130 # fr = "Rapport ecart type / moyenne de la loi",
2131 # ang = "Standard deviation / mean value ratio",
2134 # ), # Fin BLOC MuSigmaOverMu_Parameters
2136 # MuSigmaLog_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaLog', ) ",
2138 # MuLog = SIMP ( statut = "o",
2141 # fr = "Moyenne du log",
2142 # ang = "Log mean value",
2145 # SigmaLog = SIMP ( statut = "o",
2149 # fr = "Ecart type du log",
2150 # ang = "Log standard deviation",
2153 # ), # Fin BLOC MuSigmaLog_Parameters
2155 # Gamma = SIMP ( statut = "o",
2158 # fr = "Borne inferieure du support de la loi",
2159 # ang = "Support lower bound",
2162 # ), # Fin BLOC LOGNORMAL
2166 # LOGISTIC = BLOC ( condition = " Law in ( 'Logistic', ) ",
2168 # Alpha = SIMP ( statut = "o",
2171 # fr = "Borne inferieure du supoport de la loi",
2172 # ang = "Support lower bound",
2175 # Beta = SIMP ( statut = "o",
2179 # fr = "Parametre Beta de la loi | Beta > 0",
2180 # ang = "Beta parameter | Beta > 0",
2183 # ), # Fin BLOC LOGISTIC
2187 # MULTINOMIAL = BLOC ( condition = " Law in ( 'MultiNomial', ) ",
2189 # N = SIMP ( statut = "o",
2192 # fr = "Parametre N de la loi | N > 0",
2193 # ang = "N parameter | N > 0",
2196 # # Il faut definir une collection de couples ( x,p )
2197 # Values = SIMP ( statut = 'o',
2200 # fr = "Liste de probabilit�s",
2201 # ang = "Probability list",
2202 # validators=VerifTypeTuple(('R','R')),
2205 # ), # Fin BLOC MULTINOMIAL
2208 # NONCENTRALSTUDENT = BLOC ( condition = " Law in ( 'NonCentralStudent', ) ",
2210 # Nu = SIMP ( statut = "o",
2213 # fr = "Parametre Nu de la loi | Nu > 0",
2214 # ang = "Nu parameter | Nu > 0",
2217 # Delta = SIMP ( statut = "o",
2220 # fr = "Parametre Delta de la loi | Delta > 0",
2221 # ang = "Delta parameter | Delta > 0",
2224 # Gamma = SIMP ( statut = "o",
2227 # fr = "Parametre Gamma de centrage de la loi",
2228 # ang = "Gamma parameter",
2231 # ), # Fin BLOC NONCENTRALSTUDENT
2234 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
2236 Mu = SIMP ( statut = "o",
2239 fr = "Moyenne de la loi",
2243 Sigma = SIMP ( statut = "o",
2247 fr = "Ecart type de la loi",
2248 ang = "Standard deviation",
2251 ), # Fin BLOC NORMAL
2255 # POISSON = BLOC ( condition = " Law in ( 'Poisson', ) ",
2257 # Lambda = SIMP ( statut = "o",
2261 # fr = "Parametre Lambda de la loi | Lambda > 0",
2262 # ang = "Lambda parameter | Lambda > 0",
2265 # ), # Fin BLOC POISSON
2269 # RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
2271 # Sigma = SIMP ( statut = "o",
2274 # fr = "Parametre Sigma de la loi | Sigma > 0",
2275 # ang = "Sigma parameter | Sigma > 0",
2278 # Gamma = SIMP ( statut = "o",
2281 # fr = "Borne inferieure du support de la loi",
2282 # ang = "Support lower bound",
2284 # ), # Fin BLOC RAYLEIGH
2286 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
2288 FileName = SIMP ( statut = "o",
2289 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
2290 fr = "Nom du fichier .csv",
2291 ang = ".csv file name",
2295 # STUDENT = BLOC ( condition = " Law in ( 'Student', ) ",
2297 # Mu = SIMP ( statut = "o",
2300 # fr = "Parametre Mu de la loi",
2301 # ang = "Mu parameter",
2304 # Nu = SIMP ( statut = "o",
2308 # fr = "Parametre Nu de la loi | Nu > 2",
2309 # ang = "Nu parameter | Nu > 2",
2312 # Sigma = SIMP ( statut = "o",
2315 # fr = "Parametre Sigma de la loi",
2316 # ang = "Sigma parameter",
2319 # ), # Fin BLOC STUDENT
2323 # TRIANGULAR = BLOC ( condition = " Law in ( 'Triangular', ) ",
2325 # A = SIMP ( statut = "o",
2328 # fr = "Borne inferieure du support de la loi | A < M < B",
2329 # ang = "Support lower bound | A < M < B",
2332 # M = SIMP ( statut = "o",
2335 # fr = "Mode de la loi | A < M < B",
2336 # ang = "Mode | A < M < B",
2339 # B = SIMP ( statut = "o",
2342 # fr = "Borne superieure du support de la loi | A < M < B",
2343 # ang = "Support upper bound | A < M < B",
2346 # ), # Fin BLOC TRIANGULAR
2350 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
2352 MuN = SIMP ( statut = "o",
2355 fr = "Moyenne de la loi Normale non tronqu�e",
2356 ang = "Mean value of the associated non truncated normal distribution",
2359 SigmaN = SIMP ( statut = "o",
2363 fr = "Ecart-type de la loi Normale non tronqu�e",
2364 ang = "Standard deviation of the associated non truncated normal distribution",
2367 A = SIMP ( statut = "o",
2370 fr = "Borne inferieure de la loi | A < B",
2371 ang = "Lower bound | A < B",
2374 B = SIMP ( statut = "o",
2377 fr = "Borne superieure de la loi | A < B",
2378 ang = "Upper bound | A < B",
2381 ), # Fin BLOC TRUNCATEDNORMAL
2384 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
2386 FileName = SIMP ( statut = "o",
2387 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
2388 fr = "Fichier CSV d'une serie temporelle",
2389 ang = "CSV file of a time series",
2394 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
2396 A = SIMP ( statut = "o",
2399 fr = "Borne inferieure du support de la loi | A < B",
2400 ang = "Support lower bound | A < B",
2403 B = SIMP ( statut = "o",
2406 fr = "Borne superieure du support de la loi | A < B",
2407 ang = "Support upper bound | A < B",
2410 ), # Fin BLOC UNIFORM
2413 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
2415 # Il faut definir une collection de couples ( x,p )
2416 Values = SIMP ( statut = 'o',
2419 fr = "Liste de couples : (valeur, probabilite)",
2420 ang = "List of pairs : (value, probability)",
2421 validators=VerifTypeTuple(('R','R')),
2422 defaut=((0,0.0),(1,1.0)),
2425 ), # Fin BLOC USERDEFINED
2428 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
2430 Settings = SIMP ( statut = "o",
2433 into = ( "AlphaBeta", "MuSigma" ),
2434 defaut = "AlphaBeta",
2435 fr = "Parametrage de la loi weibull",
2436 ang = "Weibull distribution parameter set",
2439 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
2441 Alpha = SIMP ( statut = "o",
2445 fr = "Parametre Alpha de la loi | Alpha > 0",
2446 ang = "Alpha parameter | Alpha > 0",
2449 Beta = SIMP ( statut = "o",
2453 fr = "Parametre Beta de la loi | Beta > 0",
2454 ang = "Beta parameter | Beta > 0",
2457 ), # Fin BLOC AlphaBeta_Parameters
2460 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
2462 Mu = SIMP ( statut = "o",
2465 fr = "Moyenne de la loi",
2469 Sigma = SIMP ( statut = "o",
2473 fr = "Ecart type de la loi",
2474 ang = "Standard deviation",
2477 ), # Fin BLOC MuSigma_Parameters
2479 Gamma = SIMP ( statut = "o",
2482 fr = "Borne inferieure du support de la loi",
2483 ang = "Support lower bound",
2486 ), # Fin BLOC WEIBULL
2490 ), #fin du bloc transformer
2495 Classement_Commandes_Ds_Arbre=('DIRECTORY', 'DISTRIBUTION', 'CORRELATION',)
2497 Ordre_Des_Commandes = ( 'DIRECTORY', 'PSSE_PARAMETERS', 'SIMULATION', 'DISTRIBUTION', 'CORRELATION',
2498 'N_1_GENERATORS', 'N_1_LINES', 'N_1_TRANSFORMERS', 'N_1_LOADS',)