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_busbar ( sd_generateur,sd_charge ) : pass
39 def __init__(self,ntuple):
42 def __convert__(self,valeur):
43 if type(valeur) == types.StringType:
45 if len(valeur) != self.ntuple:
50 return "Tuple de %s elements" % self.ntuple
56 def __init__(self,nbLigs=None,nbCols=None,methodeCalculTaille=None,formatSortie="ligne",valSup=None,valMin=None,structure=None):
59 self.methodeCalculTaille=methodeCalculTaille
60 self.formatSortie=formatSortie
63 self.structure=structure
65 def __convert__(self,valeur):
66 # Attention ne verifie pas grand chose
67 if type(valeur) != types.ListType :
72 return "Matrice %s x %s" % (self.nbLigs, self.nbCols)
79 JdC = JDC_CATA ( code = 'PSEN',
81 regles = ( AU_MOINS_UN ( 'PSSE_PARAMETERS' ),
82 AU_MOINS_UN ( 'DIRECTORY' ),
83 AU_MOINS_UN ( 'DISTRIBUTION' ),
84 AU_MOINS_UN ( 'SIMULATION' ),
85 AU_PLUS_UN ( 'PSSE_PARAMETERS' ),
86 AU_PLUS_UN ( 'DIRECTORY' ),
87 AU_PLUS_UN ( 'SIMULATION' ),
88 AU_PLUS_UN ( 'CORRELATION' ),
89 AU_PLUS_UN ( 'N_1_GENERATORS' ),
90 AU_PLUS_UN ( 'N_1_LINES' ),
91 AU_PLUS_UN ( 'N_1_LOADS' ),
92 AU_PLUS_UN ( 'N_1_TRANSFORMERS' ),
98 # --------------------------------------------------
100 # --------------------------------------------------
102 MONGENER = OPER ( nom = "MONGENER",
103 sd_prod = sd_generateur,
104 UIinfo = {"groupes": ("CACHE")},
109 ID = SIMP ( statut = 'o', typ = "TXM", fr = "num bus", ang = "num bus",),
111 MACHARGE = OPER ( nom = "MACHARGE",
113 UIinfo = {"groupes": ("CACHE")},
118 ID = SIMP ( statut = 'o', typ = "TXM", fr = "nom charge", ang = "load name",),
120 MALIGNE = OPER ( nom = "MALIGNE",
122 UIinfo = {"groupes": ("CACHE")},
127 ID = SIMP ( statut = 'o', typ = "TXM", fr = "nom ligne", ang = "line name",),
129 MONTRANSFO = OPER ( nom = "MONTRANSFO",
130 sd_prod = sd_transfo,
131 UIinfo = {"groupes": ("CACHE")},
133 fr = "Transformateur",
136 ID = SIMP ( statut = 'o', typ = "TXM", fr = "nom transformateur", ang = "transformer name",),
141 PSSE_PARAMETERS = PROC ( nom = "PSSE_PARAMETERS",
144 FUEL_COST = SIMP ( statut = "o",
148 LOADSHEDDING_COST = SIMP ( statut = "o",
152 MVAR_COST = SIMP ( statut = "o",
156 I_MAX = SIMP ( statut = "o",
158 into=['RateA','RateB','RateC'],
161 LOCK_TAPS = SIMP ( statut = "o",
165 ## P_MIN= SIMP ( statut = "o",
171 SIMULATION = PROC ( nom = "SIMULATION",
174 regles =(EXCLUS('NUMBER_PACKAGE','CONVERGENCE'),),
176 SIZE_PACKAGE = SIMP ( statut = "o",
181 NUMBER_PACKAGE = SIMP ( statut = "f",
185 CONVERGENCE = SIMP ( statut = "f",
190 ## STUDY = SIMP ( statut = "o",
192 ## into = ( 'N-1', 'Load', 'Wind-1', 'Wind-2', 'PV' ),
194 ## fr = "Affichage du niveau de wrapper de la bibliotheque Open TURNS",
195 ## ang = "Open TURNS library debug level print",
200 #================================
201 # Definition du modele physique
202 #================================
206 CORRELATION = PROC ( nom = 'CORRELATION',
209 fr = "Correlation entre variables",
210 ang = "Variable correlation",
212 #### Copula = SIMP ( statut = "o",
214 #### into = ( "Independent", "Normal" ),
215 #### defaut = "Independent",
216 #### fr = "Type de la copule",
217 #### ang = "Copula kind",
220 ## # Matrix = BLOC ( condition = "Copula in ( 'Normal', )",
222 CorrelationMatrix = SIMP ( statut = "o",
223 typ = Matrice(nbLigs=None,
225 methodeCalculTaille='NbDeDistributions',
226 structure="symetrique"),
227 fr = "Matrice de correlation entre les variables d'entree",
228 ang = "Correlation matrix for input variables",
232 ## #), # Fin BLOC Matrix
237 DIRECTORY = MACRO ( nom = 'DIRECTORY',
239 fr = "Chargement des directoires et fichiers",
240 ang = "Load directories and files necessary to run PSEN",
241 sd_prod = opsPSEN.INCLUDE,
242 op_init = opsPSEN.INCLUDE_context,
246 PSSE_path=SIMP(statut="o",typ='Repertoire',defaut='C:\Program Files\PTI\PSSE33\PSSBIN'),
247 sav_file=SIMP(statut="o", typ = ('Fichier', 'Network Case Files (*.sav);;All Files (*)',),),
248 results_folder=SIMP(statut="o",typ='Repertoire'),
249 #lines_file=SIMP(statut="o" ,typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),),
250 #groups_file=SIMP(statut="o", typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),),
251 #generationsystem_file=SIMP(statut="o" ,typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),),
257 #================================
258 # Importation des fichiers csv N-1
259 #================================
261 N_1_LINES = PROC( nom="N_1_LINES",
266 Activated = SIMP ( statut='o', typ=bool, defaut=True),
267 ## FileName = SIMP ( statut = "o",
268 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
269 ## fr = "chemin du fichier csv des probabilites des defauts lignes",
270 ## ang = "csv file path with probabilities of line outages",
272 Probability = SIMP ( statut = 'o',
275 fr = "Probabilite d'indisponibilite de la ligne",
276 ang = "Probability that the line is not available",
277 validators=VerifTypeTuple((sd_ligne,'R')),),
280 N_1_TRANSFORMERS = PROC( nom="N_1_TRANSFORMERS",
283 fr = "N-1 transformateurs",
284 ang = "N-1 transformers",
285 Activated = SIMP ( statut='o', typ=bool, defaut=True),
286 ## FileName = SIMP ( statut = "o",
287 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
288 ## fr = "chemin du fichier csv des probabilites des defauts transformateur",
289 ## ang = "csv file path with probabilities of transformer outages",
291 Probability = SIMP ( statut = 'o',
294 fr = "Probabilite d'indisponibilite de la ligne",
295 ang = "Probability that the line is not available",
296 validators=VerifTypeTuple((sd_transfo,'R')),),
298 N_1_GENERATORS = PROC( nom="N_1_GENERATORS",
301 fr = "N-1 generateurs",
302 ang = "N-1 generators",
303 Activated = SIMP ( statut='o', typ=bool, defaut=True),
304 ## FileName = SIMP ( statut = "o",
305 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
306 ## fr = "chemin du fichier csv des probabilites des defauts generateurs",
307 ## ang = "csv file path with probabilities of generator outages",
309 Probability = SIMP ( statut = 'o',
312 fr = "Probabilite d'indisponibilite du generateur",
313 ang = "Probability that the generator is not available",
314 validators=VerifTypeTuple((sd_generateur,'R')),),
316 N_1_LOADS = PROC( nom="N_1_LOADS",
321 Activated = SIMP ( statut='o', typ=bool, defaut=True),
322 ## FileName = SIMP ( statut = "o",
323 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
324 ## fr = "chemin du fichier csv des probabilites des defauts charges",
325 ## ang = "csv file path with probabilities of load outages",
327 Probability = SIMP ( statut = 'o',
330 fr = "Probabilite d'indisponibilite du generateur",
331 ang = "Probability that the generator is not available",
332 validators=VerifTypeTuple((sd_charge,'R')),),
338 #================================
339 # Definition des LOIS
340 #================================
342 # Nota : les variables de type OPER doivent etre en majuscules !
343 # Nota : les variables de type OPER doivent etre de premier niveau (pas imbriquees dans un autre type)
344 DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
347 fr = "Definitions des lois marginales utilisees par les variables d'entree",
350 # Choisir generateur ou charge
353 ## TypeMachine = SIMP ( statut='o', typ='TXM',
354 ## into = ('charge','vent1','vent2','pv','N-1',),
356 Activated = SIMP ( statut='o', typ=bool, defaut=True),
357 ComponentType = SIMP (statut='o', typ='TXM',
358 into = ('Generator','Load','Line','Transformer'),),
359 b_gener = BLOC (condition = "ComponentType == 'Generator'",
361 Type = SIMP (statut= "o", typ = "TXM",
362 into = ("Generator Power Level", "Generator Availability"),
363 fr = "Choisir si c'est le niveau de puissance ou la disponibilité du generateur qui sera tiree",
364 ang= "Choose whether the power level or the availability of the generator will be set by the law",
365 defaut = "Generator Power Level",
368 Generator = SIMP(statut='o',typ=sd_generateur,max="**", homo="SansOrdreNiDoublon"),
371 # Type de distribution
374 b_gener_level = BLOC (condition= "Type == 'Generator Power Level'",
376 Law = SIMP ( statut = "o", typ = "TXM",
377 into = ( "Exponential",
383 "TimeSeries_from_file",
388 fr = "Choix du type de la loi marginale",
389 ang = "1D marginal distribution",
394 # Definition des parametres selon le type de la loi
398 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
400 Lambda = SIMP ( statut = "o",
404 fr = "Parametre Lambda | Lambda > 0",
405 ang = "Lambda parameter | Lambda > 0",
408 Gamma = SIMP ( statut = "o",
411 fr = "Borne inferieure du support de la loi",
412 ang = "Support lower bound",
415 ), # Fin BLOC EXPONENTIAL
418 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
420 First = SIMP ( statut = "o",
423 fr = "Borne inferieure du supoport de la loi",
424 ang = "Support lower bound",
427 # Il faut definir une collection de couples ( x,p )
428 Values = SIMP ( statut = 'o',
431 fr = "Liste de couples : largeur de classe, hauteur de classe",
432 ang = "Class bandwidth, class height couple list",
433 validators=VerifTypeTuple(('R','R')),
436 ), # Fin BLOC HISTOGRAM
439 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
441 Mu = SIMP ( statut = "o",
444 fr = "Moyenne de la loi",
448 Sigma = SIMP ( statut = "o",
452 fr = "Ecart type de la loi",
453 ang = "Standard deviation",
459 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
461 Sigma = SIMP ( statut = "o",
464 fr = "Parametre Sigma de la loi | Sigma > 0",
465 ang = "Sigma parameter | Sigma > 0",
468 Gamma = SIMP ( statut = "o",
471 fr = "Borne inferieure du support de la loi",
472 ang = "Support lower bound",
474 ), # Fin BLOC RAYLEIGH
476 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
478 FileName = SIMP ( statut = "o",
479 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
480 fr = "Nom du fichier .csv",
481 ang = ".csv file name",
487 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
489 MuN = SIMP ( statut = "o",
492 fr = "Moyenne de la loi Normale non tronquée",
493 ang = "Mean value of the associated non truncated normal distribution",
496 SigmaN = SIMP ( statut = "o",
500 fr = "Ecart-type de la loi Normale non tronquée",
501 ang = "Standard deviation of the associated non truncated normal distribution",
504 A = SIMP ( statut = "o",
507 fr = "Borne inferieure de la loi | A < B",
508 ang = "Lower bound | A < B",
511 B = SIMP ( statut = "o",
514 fr = "Borne superieure de la loi | A < B",
515 ang = "Upper bound | A < B",
518 ), # Fin BLOC TRUNCATEDNORMAL
521 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
523 FileName = SIMP ( statut = "o",
524 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
525 fr = "Fichier CSV d'une serie temporelle",
526 ang = "CSV file of a time series",
531 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
533 A = SIMP ( statut = "o",
536 fr = "Borne inferieure du support de la loi | A < B",
537 ang = "Support lower bound | A < B",
540 B = SIMP ( statut = "o",
543 fr = "Borne superieure du support de la loi | A < B",
544 ang = "Support upper bound | A < B",
547 ), # Fin BLOC UNIFORM
550 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
552 # Il faut definir une collection de couples ( x,p )
553 Values = SIMP ( statut = 'o',
556 fr = "Liste de couples : (valeur, prob.)",
557 ang = "List of pairs : (value, prob.)",
558 validators=VerifTypeTuple(('R','R')),
561 ), # Fin BLOC USERDEFINED
564 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
566 Settings = SIMP ( statut = "o",
569 into = ( "AlphaBeta", "MuSigma" ),
570 defaut = "AlphaBeta",
571 fr = "Parametrage de la loi weibull",
572 ang = "Weibull distribution parameter set",
575 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
577 Alpha = SIMP ( statut = "o",
581 fr = "Parametre Alpha de la loi | Alpha > 0",
582 ang = "Alpha parameter | Alpha > 0",
585 Beta = SIMP ( statut = "o",
589 fr = "Parametre Beta de la loi | Beta > 0",
590 ang = "Beta parameter | Beta > 0",
593 ), # Fin BLOC AlphaBeta_Parameters
596 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
598 Mu = SIMP ( statut = "o",
601 fr = "Moyenne de la loi",
605 Sigma = SIMP ( statut = "o",
609 fr = "Ecart type de la loi",
610 ang = "Standard deviation",
613 ), # Fin BLOC MuSigma_Parameters
615 Gamma = SIMP ( statut = "o",
618 fr = "Borne inferieure du support de la loi",
619 ang = "Support lower bound",
622 ), # Fin BLOC WEIBULL
625 Transfer_Function = FACT(statut='f',
627 TF_Input = SIMP ( statut='o',
629 fr = 'Entrer une fonction de transfert à partir d''un fichier .pow (vitesse de vent - puissance eolienne)\n \
630 ou entrer une liste de tuples (valeur tiree - puissance normalisee)',
631 ang = 'Enter wind speed - turbine production transfer function as a .pow file, \n \
632 or enter a generic list of (law output value, normalized power output) tuples',
633 into = ('.pow file', 'tuples list'),
635 b_file = BLOC(condition = "TF_Input == '.pow file'",
636 File_Name = SIMP ( statut = "o",
637 typ = ('Fichier', 'Pow files (*.pow);;All Files (*)',),
638 fr = "Nom du fichier de transfer .pow",
639 ang = ".pow file name",
641 Wind_Speed_Measurement_Height = SIMP ( statut = 'o',
644 fr = 'Hauteur (en metres) a laquelle les mesures de vitesse du vent ont ete prises',
645 ang = 'Height of wind speed measurements (m)',
649 Hub_Height = SIMP (statut = 'o',
651 fr = 'hauteur de moyeu de l''eolienne',
652 ang = 'wind turbine hub height',
655 Alpha = SIMP (statut = 'o',
657 fr = 'l''alpha pour extrapoler les mesures de vitesse du vent a la hauteur du moyeu ',
658 ang = 'alpha used to extrapolate wind speed measurements to hub height',
663 Percent_Losses = SIMP (statut = 'o',
665 fr = 'pourcentage de pertes entre la sortie theorique d''une turbine et la sortie de la centrale',
666 ang = 'percent losses between theoretical power output of a single turbine and the output of the farm',
671 ), #fin du bloc FileName
673 b_tuples = BLOC(condition = "TF_Input == 'tuples list'",
675 TF_Values = SIMP ( statut = 'o',
679 fr = "Liste de couples : valeur tiree, puissance normalisee sortie",
680 ang = "List of couples : value set by law, normalized power output",
681 validators=VerifTypeTuple(('R','R')),
683 ), #fin du block Tuples List
685 ), #fin du FACT Transfer Function
687 ), #fin du bloc generator level
690 b_gener_avail = BLOC (condition= "Type == 'Generator Availability'",
692 Law = SIMP ( statut = "o", typ = "TXM",
693 into = ( #"Exponential",
699 "TimeSeries_from_file",
704 fr = "Choix du type de la loi marginale",
705 ang = "1D marginal distribution",
706 defaut="UserDefined",
711 # Definition des parametres selon le type de la loi
715 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
717 FileName = SIMP ( statut = "o",
718 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
719 fr = "Fichier CSV d'une serie temporelle",
720 ang = "CSV file of a time series",
725 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
727 # Il faut definir une collection de couples ( x,p )
728 Values = SIMP ( statut = 'o',
731 fr = "Liste de couples : (valeur, prob.)",
732 ang = "List of pairs : (value, prob.)",
733 validators=VerifTypeTuple(('R','R')),
734 defaut=((0,0.0),(1,1.0)),
737 ), # Fin BLOC USERDEFINED
740 ), #fin du bloc generator avail
743 ), #fin du bloc generateur
745 b_charge = BLOC (condition = "ComponentType == 'Load'",
749 # Type de distribution
752 Type = SIMP (statut= "o", typ = "TXM",
753 into = ("Load Level", "Load Availability"),
754 fr = "Choisir si c'est le niveau de charge ou la disponibilité de la charge qui sera tiree",
755 ang= "Choose whether the power level or the availability of the load will be set by the law",
756 defaut = "Load Level",
759 Load = SIMP(statut='o',typ=sd_charge,max="**", homo="SansOrdreNiDoublon",),
762 b_charge_level = BLOC (condition = "Type == 'Load Level'",
764 Law = SIMP ( statut = "o", typ = "TXM",
765 into = ( "Exponential",
771 "TimeSeries_from_file",
776 fr = "Choix du type de la loi marginale",
777 ang = "1D marginal distribution",
782 # Definition des parametres selon le type de la loi
786 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
788 Lambda = SIMP ( statut = "o",
792 fr = "Parametre Lambda | Lambda > 0",
793 ang = "Lambda parameter | Lambda > 0",
796 Gamma = SIMP ( statut = "o",
799 fr = "Borne inferieure du support de la loi",
800 ang = "Support lower bound",
803 ), # Fin BLOC EXPONENTIAL
806 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
808 First = SIMP ( statut = "o",
811 fr = "Borne inferieure du supoport de la loi",
812 ang = "Support lower bound",
815 # Il faut definir une collection de couples ( x,p )
816 Values = SIMP ( statut = 'o',
819 fr = "Liste de couples : largeur de classe, hauteur de classe",
820 ang = "Class bandwidth, class height couple list",
821 validators=VerifTypeTuple(('R','R')),
824 ), # Fin BLOC HISTOGRAM
827 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
829 Mu = SIMP ( statut = "o",
832 fr = "Moyenne de la loi",
836 Sigma = SIMP ( statut = "o",
840 fr = "Ecart type de la loi",
841 ang = "Standard deviation",
847 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
849 Sigma = SIMP ( statut = "o",
852 fr = "Parametre Sigma de la loi | Sigma > 0",
853 ang = "Sigma parameter | Sigma > 0",
856 Gamma = SIMP ( statut = "o",
859 fr = "Borne inferieure du support de la loi",
860 ang = "Support lower bound",
862 ), # Fin BLOC RAYLEIGH
864 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
866 FileName = SIMP ( statut = "o",
867 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
868 fr = "Nom du fichier .csv",
869 ang = ".csv file name",
875 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
877 MuN = SIMP ( statut = "o",
880 fr = "Moyenne de la loi Normale non tronquée",
881 ang = "Mean value of the associated non truncated normal distribution",
884 SigmaN = SIMP ( statut = "o",
888 fr = "Ecart-type de la loi Normale non tronquée",
889 ang = "Standard deviation of the associated non truncated normal distribution",
892 A = SIMP ( statut = "o",
895 fr = "Borne inferieure de la loi | A < B",
896 ang = "Lower bound | A < B",
899 B = SIMP ( statut = "o",
902 fr = "Borne superieure de la loi | A < B",
903 ang = "Upper bound | A < B",
906 ), # Fin BLOC TRUNCATEDNORMAL
909 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
911 FileName = SIMP ( statut = "o",
912 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
913 fr = "Fichier CSV d'une serie temporelle",
914 ang = "CSV file of a time series",
919 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
921 A = SIMP ( statut = "o",
924 fr = "Borne inferieure du support de la loi | A < B",
925 ang = "Support lower bound | A < B",
928 B = SIMP ( statut = "o",
931 fr = "Borne superieure du support de la loi | A < B",
932 ang = "Support upper bound | A < B",
935 ), # Fin BLOC UNIFORM
938 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
940 # Il faut definir une collection de couples ( x,p )
941 Values = SIMP ( statut = 'o',
944 fr = "Liste de couples : (valeur, probabilite)",
945 ang = "List of pairs : (value, probability)",
946 validators=VerifTypeTuple(('R','R')),
949 ), # Fin BLOC USERDEFINED
952 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
954 Settings = SIMP ( statut = "o",
957 into = ( "AlphaBeta", "MuSigma" ),
958 defaut = "AlphaBeta",
959 fr = "Parametrage de la loi weibull",
960 ang = "Weibull distribution parameter set",
963 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
965 Alpha = SIMP ( statut = "o",
969 fr = "Parametre Alpha de la loi | Alpha > 0",
970 ang = "Alpha parameter | Alpha > 0",
973 Beta = SIMP ( statut = "o",
977 fr = "Parametre Beta de la loi | Beta > 0",
978 ang = "Beta parameter | Beta > 0",
981 ), # Fin BLOC AlphaBeta_Parameters
984 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
986 Mu = SIMP ( statut = "o",
989 fr = "Moyenne de la loi",
993 Sigma = SIMP ( statut = "o",
997 fr = "Ecart type de la loi",
998 ang = "Standard deviation",
1001 ), # Fin BLOC MuSigma_Parameters
1003 Gamma = SIMP ( statut = "o",
1006 fr = "Borne inferieure du support de la loi",
1007 ang = "Support lower bound",
1010 ), # Fin BLOC WEIBULL
1012 ), #fin du block Load Level
1015 b_charge_avail = BLOC (condition = "Type == 'Load Availability'",
1017 Law = SIMP ( statut = "o", typ = "TXM",
1018 into = ( #"Exponential",
1024 "TimeSeries_from_file",
1029 fr = "Choix du type de la loi marginale",
1030 ang = "1D marginal distribution",
1031 defaut = "UserDefined",
1036 # Definition des parametres selon le type de la loi
1039 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1041 FileName = SIMP ( statut = "o",
1042 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1043 fr = "Fichier CSV d'une serie temporelle",
1044 ang = "CSV file of a time series",
1050 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1052 # Il faut definir une collection de couples ( x,p )
1053 Values = SIMP ( statut = 'o',
1056 fr = "Liste de couples : (valeur, probabilite)",
1057 ang = "List of pairs : (value, probability)",
1058 validators=VerifTypeTuple(('R','R')),
1059 defaut=((0,0.0),(1,1.0)),
1062 ), # Fin BLOC USERDEFINED
1065 ), #fin du block Load Avail
1068 ), #fin du bloc charge
1071 b_ligne = BLOC (condition = "ComponentType == 'Line'",
1075 # Type de distribution
1078 Type = SIMP (statut= "o", typ = "TXM",
1079 into = ("Line Availability",),
1080 fr = "La disponibilite de la ligne sera tiree",
1081 ang= "Line availability will be set by the law",
1082 defaut = "Line Availability",
1085 Line = SIMP(statut='o',typ=sd_ligne,max="**", homo="SansOrdreNiDoublon"),
1087 Law = SIMP ( statut = "o", typ = "TXM",
1088 into = ( #"Exponential",
1094 "TimeSeries_from_file",
1099 defaut = "UserDefined",
1100 fr = "Choix du type de la loi marginale",
1101 ang = "1D marginal distribution",
1106 # Definition des parametres selon le type de la loi
1110 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
1112 Lambda = SIMP ( statut = "o",
1116 fr = "Parametre Lambda | Lambda > 0",
1117 ang = "Lambda parameter | Lambda > 0",
1120 Gamma = SIMP ( statut = "o",
1123 fr = "Borne inferieure du support de la loi",
1124 ang = "Support lower bound",
1127 ), # Fin BLOC EXPONENTIAL
1130 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
1132 First = SIMP ( statut = "o",
1135 fr = "Borne inferieure du supoport de la loi",
1136 ang = "Support lower bound",
1139 # Il faut definir une collection de couples ( x,p )
1140 Values = SIMP ( statut = 'o',
1143 fr = "Liste de couples : largeur de classe, hauteur de classe",
1144 ang = "Class bandwidth, class height couple list",
1145 validators=VerifTypeTuple(('R','R')),
1148 ), # Fin BLOC HISTOGRAM
1151 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
1153 Mu = SIMP ( statut = "o",
1156 fr = "Moyenne de la loi",
1160 Sigma = SIMP ( statut = "o",
1164 fr = "Ecart type de la loi",
1165 ang = "Standard deviation",
1168 ), # Fin BLOC NORMAL
1171 RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
1173 Sigma = SIMP ( statut = "o",
1176 fr = "Parametre Sigma de la loi | Sigma > 0",
1177 ang = "Sigma parameter | Sigma > 0",
1180 Gamma = SIMP ( statut = "o",
1183 fr = "Borne inferieure du support de la loi",
1184 ang = "Support lower bound",
1186 ), # Fin BLOC RAYLEIGH
1188 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
1190 FileName = SIMP ( statut = "o",
1191 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1192 fr = "Nom du fichier .csv",
1193 ang = ".csv file name",
1199 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
1201 MuN = SIMP ( statut = "o",
1204 fr = "Moyenne de la loi Normale non tronquée",
1205 ang = "Mean value of the associated non truncated normal distribution",
1208 SigmaN = SIMP ( statut = "o",
1212 fr = "Ecart-type de la loi Normale non tronquée",
1213 ang = "Standard deviation of the associated non truncated normal distribution",
1216 A = SIMP ( statut = "o",
1219 fr = "Borne inferieure de la loi | A < B",
1220 ang = "Lower bound | A < B",
1223 B = SIMP ( statut = "o",
1226 fr = "Borne superieure de la loi | A < B",
1227 ang = "Upper bound | A < B",
1230 ), # Fin BLOC TRUNCATEDNORMAL
1233 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1235 FileName = SIMP ( statut = "o",
1236 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1237 fr = "Fichier CSV d'une serie temporelle",
1238 ang = "CSV file of a time series",
1243 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
1245 A = SIMP ( statut = "o",
1248 fr = "Borne inferieure du support de la loi | A < B",
1249 ang = "Support lower bound | A < B",
1252 B = SIMP ( statut = "o",
1255 fr = "Borne superieure du support de la loi | A < B",
1256 ang = "Support upper bound | A < B",
1259 ), # Fin BLOC UNIFORM
1262 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1264 # Il faut definir une collection de couples ( x,p )
1265 Values = SIMP ( statut = 'o',
1268 fr = "Liste de couples : (valeur, probabilite)",
1269 ang = "List of pairs : (value, probability)",
1270 validators=VerifTypeTuple(('R','R')),
1271 defaut=((0,0.0),(1,1.0)),
1274 ), # Fin BLOC USERDEFINED
1277 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
1279 Settings = SIMP ( statut = "o",
1282 into = ( "AlphaBeta", "MuSigma" ),
1283 defaut = "AlphaBeta",
1284 fr = "Parametrage de la loi weibull",
1285 ang = "Weibull distribution parameter set",
1288 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
1290 Alpha = SIMP ( statut = "o",
1294 fr = "Parametre Alpha de la loi | Alpha > 0",
1295 ang = "Alpha parameter | Alpha > 0",
1298 Beta = SIMP ( statut = "o",
1302 fr = "Parametre Beta de la loi | Beta > 0",
1303 ang = "Beta parameter | Beta > 0",
1306 ), # Fin BLOC AlphaBeta_Parameters
1309 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1311 Mu = SIMP ( statut = "o",
1314 fr = "Moyenne de la loi",
1318 Sigma = SIMP ( statut = "o",
1322 fr = "Ecart type de la loi",
1323 ang = "Standard deviation",
1326 ), # Fin BLOC MuSigma_Parameters
1328 Gamma = SIMP ( statut = "o",
1331 fr = "Borne inferieure du support de la loi",
1332 ang = "Support lower bound",
1335 ), # Fin BLOC WEIBULL
1337 ), #fin du bloc ligne
1339 b_transfo = BLOC (condition = "ComponentType == 'Transformer'",
1343 # Type de distribution
1346 Type = SIMP (statut= "o", typ = "TXM",
1347 into = ("Transformer Availability",),
1348 fr = "La disponibilite du transformateur sera tiree",
1349 ang= "Transformer availability will be set by the law",
1350 defaut = "Transformer Availability"
1353 Transformer = SIMP(statut='o',typ=sd_transfo,max="**", homo="SansOrdreNiDoublon"),
1355 Law = SIMP ( statut = "o", typ = "TXM",
1366 #"NonCentralStudent",
1374 "TimeSeries_from_file",
1379 defaut="UserDefined",
1380 fr = "Choix du type de la loi marginale",
1381 ang = "1D marginal distribution",
1386 # Definition des parametres selon le type de la loi
1389 ## NONPARAM = BLOC ( condition = " Law in ( 'NonParametrique', ) ",
1391 ## FileName = SIMP ( statut = "o",
1392 ## typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1393 ## fr = "Nom du modele physique",
1394 ## ang = "Physical model identifier",
1398 # BETA = BLOC ( condition = " Law in ( 'Beta', ) ",
1400 # Settings = SIMP ( statut = "o",
1403 # into = ( "RT", "MuSigma" ),
1405 # fr = "Parametrage de la loi beta",
1406 # ang = "Beta distribution parameter set",
1409 # RT_Parameters = BLOC ( condition = " Settings in ( 'RT', ) ",
1411 # R = SIMP ( statut = "o",
1415 # fr = "Parametre R de la loi | R > 0",
1416 # ang = "R parameter | R > 0",
1420 # T = SIMP ( statut = "o",
1424 # fr = "Parametre T de la loi | T > R",
1425 # ang = "T parameter | T > R",
1428 # ), # Fin BLOC RT_Parameters
1431 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1433 # Mu = SIMP ( statut = "o",
1436 # fr = "Moyenne de la loi",
1437 # ang = "Mean value",
1440 # Sigma = SIMP ( statut = "o",
1444 # fr = "Ecart type de la loi",
1445 # ang = "Standard deviation",
1448 # ), # Fin BLOC MuSigma_Parameters
1451 # A = SIMP ( statut = "o",
1454 # fr = "Borne inferieure du support de la loi",
1455 # ang = "Support lower bound",
1459 # B = SIMP ( statut = "o",
1462 # fr = "Borne superieure du support de la loi",
1463 # ang = "Support upper bound",
1466 # ), # Fin BLOC BETA
1470 EXPONENTIAL = BLOC ( condition = " Law in ( 'Exponential', ) ",
1472 Lambda = SIMP ( statut = "o",
1476 fr = "Parametre Lambda | Lambda > 0",
1477 ang = "Lambda parameter | Lambda > 0",
1480 Gamma = SIMP ( statut = "o",
1483 fr = "Borne inferieure du support de la loi",
1484 ang = "Support lower bound",
1487 ), # Fin BLOC EXPONENTIAL
1491 # GAMMA = BLOC ( condition = " Law in ( 'Gamma', ) ",
1493 # Settings = SIMP ( statut = "o",
1496 # into = ( "KLambda", "MuSigma" ),
1497 # defaut = "KLambda",
1498 # fr = "Parametrage de la loi gamma",
1499 # ang = "Gamma distribution parameter set",
1502 # KLambda_Parameters = BLOC ( condition = " Settings in ( 'KLambda', ) ",
1504 # K = SIMP ( statut = "o",
1508 # fr = "Parametre K de la loi | K > 0",
1509 # ang = "K parameter | K > 0",
1512 # Lambda = SIMP ( statut = "o",
1516 # fr = "Parametre Lambda de la loi | Lambda > 0",
1517 # ang = "Lambda parameter | Lambda > 0",
1520 # ), # Fin BLOC KLambda_Parameters
1523 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1525 # Mu = SIMP ( statut = "o",
1528 # fr = "Moyenne de la loi",
1529 # ang = "Mean value",
1532 # Sigma = SIMP ( statut = "o",
1536 # fr = "Ecart type de la loi",
1537 # ang = "Standard deviation",
1540 # ), # Fin BLOC MuSigma_Parameters
1542 # Gamma = SIMP ( statut = "o",
1545 # fr = "Borne inferieure du supoport de la loi",
1546 # ang = "Support lower bound",
1550 # ), # Fin BLOC GAMMA
1554 # GEOMETRIC = BLOC ( condition = " Law in ( 'Geometric', ) ",
1556 # P = SIMP ( statut = "o",
1561 # fr = "Parametre P | 0 < P < 1",
1562 # ang = "P parameter | 0 < P < 1",
1565 # ), # Fin BLOC GEOMETRIC
1569 # GUMBEL = BLOC ( condition = " Law in ( 'Gumbel', ) ",
1571 # Settings = SIMP ( statut = "o",
1574 # into = ( "AlphaBeta", "MuSigma" ),
1575 # defaut = "AlphaBeta",
1576 # fr = "Parametrage de la loi gumbel",
1577 # ang = "Gumbel distribution parameter set",
1580 # AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
1582 # Alpha = SIMP ( statut = "o",
1586 # fr = "Parametre Alpha de la loi | Alpha > 0",
1587 # ang = "Alpha parameter | Alpha > 0",
1590 # Beta = SIMP ( statut = "o",
1593 # fr = "Parametre Beta de la loi",
1594 # ang = "Beta parameter",
1597 # ), # Fin BLOC AlphaBeta_Parameters
1600 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1602 # Mu = SIMP ( statut = "o",
1605 # fr = "Moyenne de la loi",
1606 # ang = "Mean value",
1609 # Sigma = SIMP ( statut = "o",
1613 # fr = "Ecart type de la loi",
1614 # ang = "Standard deviation",
1617 # ), # Fin BLOC MuSigma_Parameters
1619 # ), # Fin BLOC GUMBEL
1623 HISTOGRAM = BLOC ( condition = " Law in ( 'Histogram', ) ",
1625 First = SIMP ( statut = "o",
1628 fr = "Borne inferieure du supoport de la loi",
1629 ang = "Support lower bound",
1632 # Il faut definir une collection de couples ( x,p )
1633 Values = SIMP ( statut = 'o',
1636 fr = "Liste de couples : largeur de classe, hauteur de classe",
1637 ang = "Class bandwidth, class height couple list",
1638 validators=VerifTypeTuple(('R','R')),
1641 ), # Fin BLOC HISTOGRAM
1645 # LAPLACE = BLOC ( condition = " Law in ( 'Laplace', ) ",
1647 # Lambda = SIMP ( statut = "o",
1651 # fr = "Parametre Lambda | Lambda > 0",
1652 # ang = "Lambda parameter | Lambda > 0",
1655 # Mu = SIMP ( statut = "o",
1658 # fr = "Moyenne de la loi",
1659 # ang = "Mean value",
1662 # ), # Fin BLOC LAPLACE
1664 # LOGNORMAL = BLOC ( condition = " Law in ( 'LogNormal', ) ",
1666 # Settings = SIMP ( statut = "o",
1669 # into = ( "MuSigmaLog", "MuSigma", "MuSigmaOverMu" ),
1670 # defaut = "MuSigmaLog",
1671 # fr = "Parametrage de la loi lognormale",
1672 # ang = "Lognormal distribution parameter set",
1675 # MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
1677 # Mu = SIMP ( statut = "o",
1680 # fr = "Moyenne de la loi",
1681 # ang = "Mean value",
1684 # Sigma = SIMP ( statut = "o",
1688 # fr = "Ecart type de la loi",
1689 # ang = "Standard deviation",
1692 # ), # Fin BLOC MuSigma_Parameters
1694 # MuSigmaOverMu_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaOverMu', ) ",
1696 # Mu = SIMP ( statut = "o",
1699 # fr = "Moyenne de la loi",
1700 # ang = "Mean value",
1703 # SigmaOverMu = SIMP ( statut = "o",
1707 # fr = "Rapport ecart type / moyenne de la loi",
1708 # ang = "Standard deviation / mean value ratio",
1711 # ), # Fin BLOC MuSigmaOverMu_Parameters
1713 # MuSigmaLog_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaLog', ) ",
1715 # MuLog = SIMP ( statut = "o",
1718 # fr = "Moyenne du log",
1719 # ang = "Log mean value",
1722 # SigmaLog = SIMP ( statut = "o",
1726 # fr = "Ecart type du log",
1727 # ang = "Log standard deviation",
1730 # ), # Fin BLOC MuSigmaLog_Parameters
1732 # Gamma = SIMP ( statut = "o",
1735 # fr = "Borne inferieure du support de la loi",
1736 # ang = "Support lower bound",
1739 # ), # Fin BLOC LOGNORMAL
1743 # LOGISTIC = BLOC ( condition = " Law in ( 'Logistic', ) ",
1745 # Alpha = SIMP ( statut = "o",
1748 # fr = "Borne inferieure du supoport de la loi",
1749 # ang = "Support lower bound",
1752 # Beta = SIMP ( statut = "o",
1756 # fr = "Parametre Beta de la loi | Beta > 0",
1757 # ang = "Beta parameter | Beta > 0",
1760 # ), # Fin BLOC LOGISTIC
1764 # MULTINOMIAL = BLOC ( condition = " Law in ( 'MultiNomial', ) ",
1766 # N = SIMP ( statut = "o",
1769 # fr = "Parametre N de la loi | N > 0",
1770 # ang = "N parameter | N > 0",
1773 # # Il faut definir une collection de couples ( x,p )
1774 # Values = SIMP ( statut = 'o',
1777 # fr = "Liste de probabilités",
1778 # ang = "Probability list",
1779 # validators=VerifTypeTuple(('R','R')),
1782 # ), # Fin BLOC MULTINOMIAL
1785 # NONCENTRALSTUDENT = BLOC ( condition = " Law in ( 'NonCentralStudent', ) ",
1787 # Nu = SIMP ( statut = "o",
1790 # fr = "Parametre Nu de la loi | Nu > 0",
1791 # ang = "Nu parameter | Nu > 0",
1794 # Delta = SIMP ( statut = "o",
1797 # fr = "Parametre Delta de la loi | Delta > 0",
1798 # ang = "Delta parameter | Delta > 0",
1801 # Gamma = SIMP ( statut = "o",
1804 # fr = "Parametre Gamma de centrage de la loi",
1805 # ang = "Gamma parameter",
1808 # ), # Fin BLOC NONCENTRALSTUDENT
1811 NORMAL = BLOC ( condition = " Law in ( 'Normal', ) ",
1813 Mu = SIMP ( statut = "o",
1816 fr = "Moyenne de la loi",
1820 Sigma = SIMP ( statut = "o",
1824 fr = "Ecart type de la loi",
1825 ang = "Standard deviation",
1828 ), # Fin BLOC NORMAL
1832 # POISSON = BLOC ( condition = " Law in ( 'Poisson', ) ",
1834 # Lambda = SIMP ( statut = "o",
1838 # fr = "Parametre Lambda de la loi | Lambda > 0",
1839 # ang = "Lambda parameter | Lambda > 0",
1842 # ), # Fin BLOC POISSON
1846 # RAYLEIGH = BLOC ( condition = " Law in ( 'Rayleigh', ) ",
1848 # Sigma = SIMP ( statut = "o",
1851 # fr = "Parametre Sigma de la loi | Sigma > 0",
1852 # ang = "Sigma parameter | Sigma > 0",
1855 # Gamma = SIMP ( statut = "o",
1858 # fr = "Borne inferieure du support de la loi",
1859 # ang = "Support lower bound",
1861 # ), # Fin BLOC RAYLEIGH
1863 PDF = BLOC ( condition = " Law in ( 'PDF_from_file', ) ",
1865 FileName = SIMP ( statut = "o",
1866 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1867 fr = "Nom du fichier .csv",
1868 ang = ".csv file name",
1872 # STUDENT = BLOC ( condition = " Law in ( 'Student', ) ",
1874 # Mu = SIMP ( statut = "o",
1877 # fr = "Parametre Mu de la loi",
1878 # ang = "Mu parameter",
1881 # Nu = SIMP ( statut = "o",
1885 # fr = "Parametre Nu de la loi | Nu > 2",
1886 # ang = "Nu parameter | Nu > 2",
1889 # Sigma = SIMP ( statut = "o",
1892 # fr = "Parametre Sigma de la loi",
1893 # ang = "Sigma parameter",
1896 # ), # Fin BLOC STUDENT
1900 # TRIANGULAR = BLOC ( condition = " Law in ( 'Triangular', ) ",
1902 # A = SIMP ( statut = "o",
1905 # fr = "Borne inferieure du support de la loi | A < M < B",
1906 # ang = "Support lower bound | A < M < B",
1909 # M = SIMP ( statut = "o",
1912 # fr = "Mode de la loi | A < M < B",
1913 # ang = "Mode | A < M < B",
1916 # B = SIMP ( statut = "o",
1919 # fr = "Borne superieure du support de la loi | A < M < B",
1920 # ang = "Support upper bound | A < M < B",
1923 # ), # Fin BLOC TRIANGULAR
1927 TRUNCATEDNORMAL = BLOC ( condition = " Law in ( 'TruncatedNormal', ) ",
1929 MuN = SIMP ( statut = "o",
1932 fr = "Moyenne de la loi Normale non tronquée",
1933 ang = "Mean value of the associated non truncated normal distribution",
1936 SigmaN = SIMP ( statut = "o",
1940 fr = "Ecart-type de la loi Normale non tronquée",
1941 ang = "Standard deviation of the associated non truncated normal distribution",
1944 A = SIMP ( statut = "o",
1947 fr = "Borne inferieure de la loi | A < B",
1948 ang = "Lower bound | A < B",
1951 B = SIMP ( statut = "o",
1954 fr = "Borne superieure de la loi | A < B",
1955 ang = "Upper bound | A < B",
1958 ), # Fin BLOC TRUNCATEDNORMAL
1961 TimeSeries = BLOC ( condition = " Law in ( 'TimeSeries_from_file', ) ",
1963 FileName = SIMP ( statut = "o",
1964 typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
1965 fr = "Fichier CSV d'une serie temporelle",
1966 ang = "CSV file of a time series",
1971 UNIFORM = BLOC ( condition = " Law in ( 'Uniform', ) ",
1973 A = SIMP ( statut = "o",
1976 fr = "Borne inferieure du support de la loi | A < B",
1977 ang = "Support lower bound | A < B",
1980 B = SIMP ( statut = "o",
1983 fr = "Borne superieure du support de la loi | A < B",
1984 ang = "Support upper bound | A < B",
1987 ), # Fin BLOC UNIFORM
1990 USERDEFINED = BLOC ( condition = " Law in ( 'UserDefined', ) ",
1992 # Il faut definir une collection de couples ( x,p )
1993 Values = SIMP ( statut = 'o',
1996 fr = "Liste de couples : (valeur, probabilite)",
1997 ang = "List of pairs : (value, probability)",
1998 validators=VerifTypeTuple(('R','R')),
1999 defaut=((0,0.0),(1,1.0)),
2002 ), # Fin BLOC USERDEFINED
2005 WEIBULL = BLOC ( condition = " Law in ( 'Weibull', ) ",
2007 Settings = SIMP ( statut = "o",
2010 into = ( "AlphaBeta", "MuSigma" ),
2011 defaut = "AlphaBeta",
2012 fr = "Parametrage de la loi weibull",
2013 ang = "Weibull distribution parameter set",
2016 AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
2018 Alpha = SIMP ( statut = "o",
2022 fr = "Parametre Alpha de la loi | Alpha > 0",
2023 ang = "Alpha parameter | Alpha > 0",
2026 Beta = SIMP ( statut = "o",
2030 fr = "Parametre Beta de la loi | Beta > 0",
2031 ang = "Beta parameter | Beta > 0",
2034 ), # Fin BLOC AlphaBeta_Parameters
2037 MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
2039 Mu = SIMP ( statut = "o",
2042 fr = "Moyenne de la loi",
2046 Sigma = SIMP ( statut = "o",
2050 fr = "Ecart type de la loi",
2051 ang = "Standard deviation",
2054 ), # Fin BLOC MuSigma_Parameters
2056 Gamma = SIMP ( statut = "o",
2059 fr = "Borne inferieure du support de la loi",
2060 ang = "Support lower bound",
2063 ), # Fin BLOC WEIBULL
2067 ), #fin du bloc transformer
2072 Classement_Commandes_Ds_Arbre=('DIRECTORY', 'DISTRIBUTION', 'CORRELATION',)
2074 Ordre_Des_Commandes = ( 'DIRECTORY', 'PSSE_PARAMETERS', 'SIMULATION', 'DISTRIBUTION', 'CORRELATION',
2075 'N_1_GENERATORS', 'N_1_LINES', 'N_1_TRANSFORMERS', 'N_1_LOADS',)