psr-factory 4.1.0b4__py3-none-win_amd64.whl → 4.1.0b9__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
psr/cloud/cloud.py CHANGED
@@ -68,12 +68,8 @@ def _check_for_errors(
68
68
 
69
69
 
70
70
  def _hide_password(params: str) -> str:
71
- # Define a expressão regular para encontrar o parâmetro senha com atributos adicionais
72
71
  pattern = r'(<Parametro nome="senha"[^>]*>)(.*?)(</Parametro>)'
73
-
74
- # Substitui o conteúdo da senha por ********
75
72
  result = re.sub(pattern, r"\1********\3", params)
76
-
77
73
  return result
78
74
 
79
75
 
@@ -882,10 +878,21 @@ class Client:
882
878
  portal_ws = zeep.Client(self.cluster["url"] + "?WSDL")
883
879
  section = str(id(self))
884
880
  password_md5 = _md5sum(self.username + self.__password + section).upper()
881
+ password_md5 = (
882
+ password_md5
883
+ if self.cluster["name"] == "PSR-US"
884
+ or self.cluster["name"] == "PSR-HOTFIX"
885
+ or self.cluster["name"] == "PSR-US_OHIO"
886
+ else self.__password.upper()
887
+ )
885
888
  additional_arguments = kwargs.get("additional_arguments", None)
886
889
  parameters = {
887
890
  "sessao_id": section,
888
- "tipo_autenticacao": "portal",
891
+ "tipo_autenticacao": "portal"
892
+ if self.cluster["name"] == "PSR-US"
893
+ or self.cluster["name"] == "PSR-HOTFIX"
894
+ or self.cluster["name"] == "PSR-US_OHIO"
895
+ else "bcrypt",
889
896
  "idioma": "3",
890
897
  }
891
898
  if additional_arguments:
psr/cloud/version.py CHANGED
@@ -2,4 +2,4 @@
2
2
  # Unauthorized copying of this file, via any medium is strictly prohibited
3
3
  # Proprietary and confidential
4
4
 
5
- __version__ = "0.3.1"
5
+ __version__ = "0.3.3"
psr/factory/__init__.py CHANGED
@@ -2,6 +2,6 @@
2
2
  # Unauthorized copying of this file, via any medium is strictly prohibited
3
3
  # Proprietary and confidential
4
4
 
5
- __version__ = "4.1.0b4"
5
+ __version__ = "4.1.0b9"
6
6
 
7
7
  from .api import *
psr/factory/api.py CHANGED
@@ -5,6 +5,7 @@
5
5
  import locale
6
6
  from typing import Dict, List, Optional, Tuple, Union
7
7
  from types import ModuleType
8
+ import copy
8
9
  import ctypes
9
10
  import datetime as dt
10
11
  import enum
@@ -945,6 +946,9 @@ class DataObject(_BaseObject):
945
946
  def help(self) -> str:
946
947
  return help(self.type)
947
948
 
949
+ def clone(self) -> "DataObject":
950
+ return copy.copy(self)
951
+
948
952
  @property
949
953
  def context(self) -> "Context":
950
954
  _check_initialized()
@@ -1234,7 +1238,6 @@ class Context(DataObject):
1234
1238
  class Study(_BaseObject):
1235
1239
  def __init__(self):
1236
1240
  super().__init__()
1237
- self.find_by_name = self.find
1238
1241
 
1239
1242
  def __del__(self):
1240
1243
  if self._hdr is not None:
@@ -1269,10 +1272,18 @@ class Study(_BaseObject):
1269
1272
  dest._hdr = ref
1270
1273
  return dest
1271
1274
 
1275
+ def create(self, object_type: str) -> DataObject:
1276
+ _check_initialized()
1277
+ return create(object_type, self.context)
1278
+
1279
+
1272
1280
  @staticmethod
1273
1281
  def help():
1274
1282
  return help("Study")
1275
1283
 
1284
+ def clone(self) -> "Study":
1285
+ return copy.deepcopy(self)
1286
+
1276
1287
  @staticmethod
1277
1288
  def create_object(profile_or_context: Union[str, Context, dict, None],
1278
1289
  blocks: Optional[int] = None):
@@ -1288,6 +1299,7 @@ class Study(_BaseObject):
1288
1299
 
1289
1300
  @staticmethod
1290
1301
  def load(study_path: Union[str, pathlib.Path], profile_or_context: Union[str, Context, None],
1302
+ settings_only: bool = False,
1291
1303
  options: Optional[Union[dict, "Value", "DataObject"]] = None):
1292
1304
  if not isinstance(options, (DataObject, type(None))):
1293
1305
  raise TypeError("options must be a DataObject or None.")
@@ -1297,28 +1309,41 @@ class Study(_BaseObject):
1297
1309
  err = Error()
1298
1310
  options_value = _get_arg_object(options)
1299
1311
  study = Study()
1300
- study._hdr = factorylib.lib.psrd_study_load(_c_str(study_path),
1301
- _bytes(study_path),
1302
- options_value.handler(),
1303
- context.handler(),
1304
- err.handler())
1312
+ if not settings_only:
1313
+ load_fn = factorylib.lib.psrd_study_load
1314
+ else:
1315
+ load_fn = factorylib.lib.psrd_study_load_settings
1316
+ study._hdr = load_fn(_c_str(study_path), _bytes(study_path),
1317
+ options_value.handler(), context.handler(),
1318
+ err.handler())
1305
1319
  if err.code != 0:
1306
1320
  raise FactoryException(err.what)
1307
1321
  return study
1308
1322
 
1309
- def save(self, output_path: Union[str, pathlib.Path], options: Optional[Union[dict, Value, DataObject]] = None):
1310
- if not isinstance(options, (DataObject, type(None))):
1311
- raise TypeError("options must be a DataObject or None.")
1323
+ def save(self, output_path: Union[str, pathlib.Path],
1324
+ options: Optional[Union[dict, Value, DataObject]] = None):
1312
1325
  output_path = str(output_path)
1313
1326
  _err = Error()
1314
1327
  options_value = _get_arg_object(options)
1315
- factorylib.lib.psrd_study_save(self._hdr, _c_str(output_path),
1316
- _bytes(output_path),
1328
+ factorylib.lib.psrd_study_save(self._hdr,
1329
+ _c_str(output_path), _bytes(output_path),
1317
1330
  options_value.handler(),
1318
1331
  _err.handler())
1319
1332
  if _err.code != 0:
1320
1333
  raise FactoryException(_err.what)
1321
1334
 
1335
+ def save_settings(self, output_path: Union[str, pathlib.Path],
1336
+ options: Optional[Union[dict, Value, DataObject]] = None):
1337
+ output_path = str(output_path)
1338
+ _err = Error()
1339
+ options_value = _get_arg_object(options)
1340
+ factorylib.lib.psrd_study_save_settings(self._hdr, _c_str(output_path),
1341
+ _bytes(output_path),
1342
+ options_value.handler(),
1343
+ _err.handler())
1344
+ if _err.code != 0:
1345
+ raise FactoryException(_err.what)
1346
+
1322
1347
  @property
1323
1348
  def context(self) -> "Context":
1324
1349
  _check_initialized()
@@ -1396,6 +1421,16 @@ class Study(_BaseObject):
1396
1421
  if _err.code != 0:
1397
1422
  raise FactoryException(_err.what)
1398
1423
 
1424
+ def get_all_objects(self) -> List[DataObject]:
1425
+ object_list = ValueList(False)
1426
+ error = Error()
1427
+ ref = factorylib.lib.psrd_study_get_all_objects(self._hdr,
1428
+ error.handler())
1429
+ if error.code != 0 or ref is None:
1430
+ raise FactoryException(error.what)
1431
+ object_list._hdr = ref
1432
+ return object_list.to_list()
1433
+
1399
1434
  def find(self, expression: str) -> List[DataObject]:
1400
1435
  object_list = ValueList(False)
1401
1436
  _err = Error()
@@ -1407,6 +1442,27 @@ class Study(_BaseObject):
1407
1442
  object_list._hdr = ref
1408
1443
  return object_list.to_list()
1409
1444
 
1445
+ def find_by_name(self, type_name: str, name: Optional[str] = None) -> List[DataObject]:
1446
+ if name is None:
1447
+ warnings.warn(DeprecationWarning("Starting from Factory 4.0.28 "
1448
+ "the second argument 'name' must be provided.\n"
1449
+ "Use find_by_name(type_name, name)"))
1450
+
1451
+ type_name, name_str = type_name.split(".", 1)
1452
+ name = name_str
1453
+ object_list = ValueList(False)
1454
+ _err = Error()
1455
+ if name.strip() == "":
1456
+ name = "*"
1457
+ expression = f"{type_name}.{name}"
1458
+ ref = factorylib.lib.psrd_study_find(self._hdr,
1459
+ _c_str(expression),
1460
+ _err.handler())
1461
+ if _err.code != 0 or ref is None:
1462
+ raise FactoryException(_err.what)
1463
+ object_list._hdr = ref
1464
+ return object_list.to_list()
1465
+
1410
1466
  def find_by_code(self, type_name: str, code: Optional[int] = None) -> List[DataObject]:
1411
1467
  if code is None:
1412
1468
  warnings.warn(DeprecationWarning("Starting from Factory 4.0.9 "
@@ -1727,7 +1783,7 @@ class _DataFrameBuilder:
1727
1783
  if self._err.code != 0:
1728
1784
  raise FactoryException(self._err.what)
1729
1785
  # convert array values to python datetime
1730
- self.indices[index].values = [dt.datetime.utcfromtimestamp(value - _date_transform) for value in array_values]
1786
+ self.indices[index].values = [dt.datetime.fromtimestamp(value - _date_transform, dt.UTC) for value in array_values]
1731
1787
  else:
1732
1788
  array_values = (ctypes.c_int * rows_count)()
1733
1789
  factorylib.lib.psrd_table_index_get_int32_values(df.handler(),
@@ -2254,7 +2310,15 @@ def create_study(*args, **kwargs) -> Study:
2254
2310
  def load_study(study_path: Union[str, pathlib.Path],
2255
2311
  profile_or_context: Union[str, Context, None] = None,
2256
2312
  options: Optional[DataObject] = None) -> Study:
2257
- return Study.load(study_path, profile_or_context, options)
2313
+ settings_only = False
2314
+ return Study.load(study_path, profile_or_context, settings_only, options)
2315
+
2316
+
2317
+ def load_study_settings(study_path: Union[str, pathlib.Path],
2318
+ profile_or_context: Union[str, Context, None] = None,
2319
+ options: Optional[DataObject] = None) -> Study:
2320
+ settings_only = True
2321
+ return Study.load(study_path, profile_or_context, settings_only, options)
2258
2322
 
2259
2323
 
2260
2324
  def create(class_name: str,
psr/factory/factory.dll CHANGED
Binary file
psr/factory/factory.pmd CHANGED
@@ -2494,6 +2494,7 @@ DEFINE_MODEL MODL:Optgen_RestricaoCapacidade
2494
2494
  PARM INTEGER PenaltyFlag
2495
2495
  PARM INTEGER SystemCodePu
2496
2496
  PARM REFERENCE SystemElement PSRSystem
2497
+ VECTOR REFERENCE AgentElement PSRElement
2497
2498
  END_MODEL
2498
2499
  //--------------------------------------------------------------------------------------------------
2499
2500
  // Modelo para Restricao de Precedencia
@@ -2515,11 +2516,12 @@ DEFINE_MODEL MODL:Optgen_RestricaoGenerica
2515
2516
  PARM DATE DataMin
2516
2517
  PARM DATE DataMax
2517
2518
  PARM REAL RHS
2518
- PARM STRING Type
2519
2519
  VECTOR REAL Coefficients
2520
2520
  PARM INTEGER LimitType
2521
2521
  PARM REAL Penalty
2522
2522
  PARM INTEGER Selected
2523
+ PARM INTEGER FlagIncremental
2524
+ VECTOR REFERENCE AgentElement PSRElement
2523
2525
  END_MODEL
2524
2526
  //--------------------------------------------------------------------------------------------------
2525
2527
  // Modelo para Restricao Generica
@@ -2737,6 +2739,7 @@ DEFINE_MODEL MODL:Optgen_Configuration_Keywords
2737
2739
  PARM INTEGER RXGM
2738
2740
  PARM INTEGER FSCN
2739
2741
  PARM INTEGER RMET
2742
+ PARM REAL MXPF
2740
2743
  END_MODEL
2741
2744
 
2742
2745
 
@@ -2823,7 +2826,7 @@ DEFINE_CLASS PSRMaintenanceSolicitation
2823
2826
  PARM REAL Score
2824
2827
  PARM INTEGER Fix
2825
2828
  PARM INTEGER FixOuter
2826
- PARM REFERENCE Plant
2829
+ PARM REFERENCE Plant PSRPlant
2827
2830
  END_CLASS
2828
2831
 
2829
2832
  //--------------------------------------------------------------------------------------------------
@@ -2831,9 +2834,9 @@ END_CLASS
2831
2834
  //--------------------------------------------------------------------------------------------------
2832
2835
  DEFINE_CLASS PSRMaintenanceExclusive
2833
2836
  PARM STRING SetName @id
2834
- VECTOR REFERENCE PlantsThermal
2835
- VECTOR REFERENCE PlantsHydro
2836
- VECTOR REFERENCE PlantsGnd
2837
+ VECTOR REFERENCE PlantsThermal PSRThermalPlant
2838
+ VECTOR REFERENCE PlantsHydro PSRHydroPlant
2839
+ VECTOR REFERENCE PlantsGnd PSRGndPlant
2837
2840
  END_CLASS
2838
2841
 
2839
2842
  //--------------------------------------------------------------------------------------------------
@@ -2841,9 +2844,9 @@ END_CLASS
2841
2844
  //--------------------------------------------------------------------------------------------------
2842
2845
  DEFINE_CLASS PSRMaintenanceShared
2843
2846
  PARM STRING SetName @id
2844
- VECTOR REFERENCE PlantsThermal
2845
- VECTOR REFERENCE PlantsHydro
2846
- VECTOR REFERENCE PlantsGnd
2847
+ VECTOR REFERENCE PlantsThermal PSRThermalPlant
2848
+ VECTOR REFERENCE PlantsHydro PSRHydroPlant
2849
+ VECTOR REFERENCE PlantsGnd PSRGndPlant
2847
2850
  END_CLASS
2848
2851
 
2849
2852
  //--------------------------------------------------------------------------------------------------
@@ -2882,7 +2885,8 @@ END_CLASS
2882
2885
  // Modelo para Demanda Instantanea
2883
2886
  //--------------------------------------------------------------------------------------------------
2884
2887
  MERGE_CLASS PSRSystem InstDem
2885
- VECTOR REAL InstantDemand
2888
+ VECTOR DATE InstantDemandDate
2889
+ VECTOR REAL InstantDemand INDEX InstantDemandDate
2886
2890
  END_CLASS
2887
2891
 
2888
2892
  //--------------------------------------------------------------------------------------------------
@@ -2926,7 +2930,7 @@ DEFINE_CLASS PSRMaintenancePrecedence
2926
2930
  PARM STRING PrecName @id
2927
2931
  VECTOR INTEGER DelayMin
2928
2932
  VECTOR INTEGER DelayMax
2929
- VECTOR REFERENCE Solicitations
2933
+ VECTOR REFERENCE Solicitations PSRMaintenanceSolicitation
2930
2934
  END_CLASS
2931
2935
 
2932
2936
  //--------------------------------------------------------------------------------------------------
@@ -3685,6 +3689,9 @@ DEFINE_MODEL MODL:SDDP_V10.2_ConfiguracaoEstudo
3685
3689
  VETOR DATE SubHourlyStage
3686
3690
  VETOR INTEGER SubHourlyScenario INDEX SubHourlyStage
3687
3691
  VETOR INTEGER SubHourlyDays INDEX SubHourlyStage
3692
+ PARM INTEGER DynamicConvergenceNumberSegments
3693
+ VETOR REAL DynamicConvergenceMaxTime
3694
+ VETOR REAL DynamicConvergenceTolerance
3688
3695
 
3689
3696
  //--------------------------------------
3690
3697
  //--- MAXREV ---
@@ -4185,11 +4192,13 @@ DEFINE_MODEL MODL:SDDP_V10.2_Hidro
4185
4192
 
4186
4193
  //--- Net Head x Power ---
4187
4194
  VECTOR DATE HxP_Date
4195
+ VECTOR DATE HxP_EndDate INTERVAL HxP_Date
4188
4196
  VECTOR REAL NetHead DIM(varpoint) INDEX HxP_Date
4189
4197
  VECTOR REAL Power DIM(varpoint) INDEX HxP_Date
4190
4198
 
4191
4199
  //--- Net Head x Production coefficient ---
4192
4200
  VECTOR DATE HxPC_Date
4201
+ VECTOR DATE HxPC_EndDate INTERVAL HxPC_Date
4193
4202
  VECTOR REAL NetH DIM(varpoint) INDEX HxPC_Date
4194
4203
  VECTOR REAL ProdCoef DIM(varpoint) INDEX HxPC_Date
4195
4204
 
@@ -4442,8 +4451,8 @@ END_MODEL
4442
4451
  //--------------------------------------------------------------------------------------------------
4443
4452
  DEFINE_MODEL MODL:SDDP_V10.2_Combustivel
4444
4453
  VETOR DATE Data @addyear_chronological
4445
- PARM STRING UComb
4446
- PARM STRING UE
4454
+ PARM STRING UComb
4455
+ PARM STRING UE
4447
4456
  PARM REAL EmiCO2
4448
4457
  VETOR REAL Custo INDEX Data
4449
4458
 
@@ -4452,7 +4461,7 @@ DEFINE_MODEL MODL:SDDP_V10.2_Combustivel
4452
4461
  VETOR DATE DataAvailability @addyear_chronological
4453
4462
  VETOR REAL Availability INDEX DataAvailability
4454
4463
 
4455
- PARM INTEGER FlagScenario
4464
+ PARM INTEGER FlagScenario
4456
4465
  VETOR REAL ScenarioCost
4457
4466
  END_MODEL
4458
4467
 
@@ -4856,7 +4865,7 @@ END_MODEL
4856
4865
  // Supply chain Node
4857
4866
  //--------------------------------------------------------------------------------------------------
4858
4867
  DEFINE_MODEL MODL:SDDP_ElectrificationNode
4859
- // nada aqui
4868
+ MERGE_MODEL Sddp_Georeference
4860
4869
  END_MODEL
4861
4870
  //--------------------------------------------------------------------------------------------------
4862
4871
  // Supply chain Transport
@@ -5030,7 +5039,6 @@ END_MODEL
5030
5039
  //--------------------------------------------------------------------------------------------------
5031
5040
  DEFINE_CLASS SingleContingency
5032
5041
  @dictionary singlecontingency, singctg
5033
- PARM STRING name @id
5034
5042
  PARM REFERENCE Serie PSRSerie @id
5035
5043
  PARM REFERENCE MonitoringList MonitoringList
5036
5044
  END_CLASS
@@ -5166,7 +5174,7 @@ DEFINE_MODEL MODL:SDDP_Execution_Options
5166
5174
  PARM INTEGER CCTA
5167
5175
  PARM INTEGER CCTL
5168
5176
  PARM INTEGER MAXT
5169
- PARM INTEGER RPK2
5177
+ PARM STRING RPK2
5170
5178
  PARM INTEGER BINF
5171
5179
  PARM INTEGER EXPN
5172
5180
  PARM INTEGER MXAP
@@ -5295,27 +5303,29 @@ DEFINE_MODEL MODL:SDDP_Execution_Options
5295
5303
  PARM INTEGER NCPL_TERF
5296
5304
  PARM INTEGER NCPL_DEBG
5297
5305
  PARM INTEGER NCPL_CCOS
5298
- PARM INTEGER NCPL_SCRT
5299
- PARM INTEGER NCPL_RLOS
5300
- PARM INTEGER NCPL_RSBT
5301
- PARM INTEGER NCPL_HUNI
5302
- PARM INTEGER NCPL_RAMP
5303
- PARM INTEGER NCPL_INCO
5304
- PARM INTEGER NCPL_RTRA
5305
- PARM INTEGER NCPL_INWT
5306
- PARM INTEGER NCPL_BINS
5307
- PARM INTEGER NCPL_BETR
5308
- PARM INTEGER NCPL_NDIS
5309
- PARM INTEGER NCPL_KDIS
5310
- PARM INTEGER NCPL_DETM
5311
- PARM INTEGER NCPL_CKMC
5312
- PARM INTEGER NCPL_TMUP
5313
- PARM INTEGER NCPL_GNPR
5314
- PARM INTEGER NCPL_PRES
5315
- PARM INTEGER NCPL_MEMO
5316
- PARM INTEGER NCPL_GMIN
5317
- PARM INTEGER NCPL_HGEN
5318
- PARM INTEGER NCPL_BMIP
5306
+ PARM INTEGER NCPL_SCRT
5307
+ PARM INTEGER NCPL_RLOS
5308
+ PARM INTEGER NCPL_RSBT
5309
+ PARM INTEGER NCPL_HUNI
5310
+ PARM INTEGER NCPL_RAMP
5311
+ PARM INTEGER NCPL_INCO
5312
+ PARM INTEGER NCPL_RTRA
5313
+ PARM INTEGER NCPL_INWT
5314
+ PARM INTEGER NCPL_BINS
5315
+ PARM INTEGER NCPL_BETR
5316
+ PARM INTEGER NCPL_NDIS
5317
+ PARM INTEGER NCPL_KDIS
5318
+ PARM INTEGER NCPL_DETM
5319
+ PARM INTEGER NCPL_CKMC
5320
+ PARM INTEGER NCPL_TMUP
5321
+ PARM INTEGER NCPL_GNPR
5322
+ PARM INTEGER NCPL_PRES
5323
+ PARM INTEGER NCPL_MEMO
5324
+ PARM INTEGER NCPL_GMIN
5325
+ PARM INTEGER NCPL_HGEN
5326
+ PARM INTEGER NCPL_BMIP
5327
+ PARM INTEGER NCPL_UDNC // use ncplite dynamic convergence
5328
+ PARM INTEGER INFM
5319
5329
  END_MODEL
5320
5330
 
5321
5331
  //--------------------------------------------------------------------------------------------------
@@ -5363,11 +5373,21 @@ END_MODEL
5363
5373
  DEFINE_MODEL MODL:SDDP_Asset
5364
5374
  DIMENSION owner
5365
5375
 
5366
- //--- Proprietários e participações ---
5376
+ //--- Proprietários e participações ---
5367
5377
  PARM REFERENCE Owner DIM(owner) PSROwner
5368
5378
  PARM REAL OwnerShare DIM(owner)
5369
5379
  END_MODEL
5370
5380
 
5381
+ //----------------------------------------------------------------------
5382
+ // Propriedade/Ativo/Asset
5383
+ //----------------------------------------------------------------------
5384
+ DEFINE_MODEL MODL:SDDP_Ownership
5385
+ //--- Relacionamento PSROwner x PSRElement ---
5386
+ PARM REFERENCE Owner PSROwner
5387
+ PARM REFERENCE Element PSRElement
5388
+ PARM REAL Share
5389
+ END_MODEL
5390
+
5371
5391
  //----------------------------------------------------------------------
5372
5392
  // Area
5373
5393
  //----------------------------------------------------------------------
@@ -5456,7 +5476,7 @@ DEFINE_MODEL MODL:SDDP_Line
5456
5476
  VECTOR REAL Re INDEX Data
5457
5477
  VECTOR REAL Prob INDEX Data
5458
5478
 
5459
- VECTOR DATE DateStatus
5479
+ VECTOR DATE DateStatus @addyear_fullmodification
5460
5480
  VECTOR INTEGER Status DIM(block) INDEX DateStatus
5461
5481
 
5462
5482
  MERGE_MODEL MODL:SDDP_Asset
@@ -5500,7 +5520,7 @@ DEFINE_MODEL MODL:SDDP_Transformer
5500
5520
  VECTOR REAL MinPhaseAngle INDEX Data
5501
5521
  VECTOR REAL MaxPhaseAngle INDEX Data
5502
5522
 
5503
- VECTOR DATE DateStatus
5523
+ VECTOR DATE DateStatus @addyear_fullmodification
5504
5524
  VECTOR INTEGER Status DIM(block) INDEX DateStatus
5505
5525
 
5506
5526
  VETOR DATE DateTap
@@ -5579,7 +5599,7 @@ DEFINE_MODEL MODL:SDDP_Transformer3Winding
5579
5599
  VETOR REAL MinPhaseAngle3 INDEX Data
5580
5600
  VETOR REAL MaxPhaseAngle3 INDEX Data
5581
5601
 
5582
- VECTOR DATE DateStatus
5602
+ VECTOR DATE DateStatus @addyear_fullmodification
5583
5603
  VECTOR INTEGER Status DIM(block) INDEX DateStatus
5584
5604
 
5585
5605
  VETOR DATE DateTap
@@ -5708,14 +5728,14 @@ DEFINE_MODEL MODL:SDDP_TCSC
5708
5728
  VETOR REAL Prob INDEX Data
5709
5729
 
5710
5730
  //--- Status do circuito para cada patamar ---
5711
- VETOR DATE DateStatus
5731
+ VETOR DATE DateStatus @addyear_fullmodification
5712
5732
  VETOR INTEGER Status DIM(block) INDEX DateStatus
5713
5733
 
5714
5734
  VETOR DATE DateBypass
5715
5735
  VETOR INTEGER Bypass DIM(block) INDEX DateBypass
5716
5736
 
5717
5737
  VETOR DATE DateSetpoint
5718
- VETOR INTEGER Setpoint DIM(block) INDEX DateSetpoint
5738
+ VETOR REAL Setpoint DIM(block) INDEX DateSetpoint
5719
5739
 
5720
5740
  VETOR DATE DateFlow
5721
5741
  VETOR REAL MaxFlow DIM(block) INDEX DateFlow
@@ -5778,7 +5798,9 @@ DEFINE_MODEL MODL:SDDP_SimpleTwoTerminal_DCLink
5778
5798
  VETOR REAL CapacityEmergencyFromTo INDEX Data
5779
5799
  VETOR REAL CapacityEmergencyToFrom INDEX Data
5780
5800
  VETOR REAL R INDEX Data
5781
- VETOR INTEGER Status INDEX Data
5801
+
5802
+ VETOR DATE DateStatus @addyear_fullmodification
5803
+ VETOR INTEGER Status INDEX DateStatus
5782
5804
 
5783
5805
  // Reactive power model
5784
5806
  VETOR REAL ReactivePowerFactorFrom INDEX Data
@@ -5828,7 +5850,7 @@ DEFINE_MODEL MODL:SDDP_DCLine
5828
5850
  VETOR REAL Re INDEX Data
5829
5851
  VETOR REAL Prob INDEX Data
5830
5852
 
5831
- VETOR DATE DateStatus
5853
+ VETOR DATE DateStatus @addyear_fullmodification
5832
5854
  VETOR INTEGER Status DIM(block) INDEX DateStatus
5833
5855
  END_MODEL
5834
5856
  //----------------------------------------------------------------------
@@ -5866,7 +5888,7 @@ DEFINE_MODEL MODL:SDDP_LCC_Converter
5866
5888
  VETOR DATE DateTap
5867
5889
  VETOR REAL Tap DIM(block) INDEX DateTap
5868
5890
 
5869
- VETOR DATE DateStatus
5891
+ VETOR DATE DateStatus @addyear_fullmodification
5870
5892
  VETOR INTEGER Status DIM(block) INDEX DateStatus
5871
5893
  END_MODEL
5872
5894
  //----------------------------------------------------------------------
@@ -5887,7 +5909,7 @@ DEFINE_MODEL MODL:SDDP_VSC_Converter
5887
5909
 
5888
5910
  MERGE_MODEL MODL:SDDP_GeneratorVoltageRegulator
5889
5911
 
5890
- VETOR DATE DateStatus
5912
+ VETOR DATE DateStatus @addyear_fullmodification
5891
5913
  VETOR INTEGER Status DIM(block) INDEX DateStatus
5892
5914
  END_MODEL
5893
5915
 
@@ -5903,7 +5925,7 @@ DEFINE_MODEL MODL:SDDP_BusShunt
5903
5925
  VECTOR REAL B INDEX Data
5904
5926
  VECTOR INTEGER NumberOfUnits INDEX Data
5905
5927
  VECTOR DATE DateUnitsInService
5906
- VECTOR REAL UnitsInService DIM(block) INDEX DateUnitsInService
5928
+ VECTOR INTEGER UnitsInService DIM(block) INDEX DateUnitsInService
5907
5929
  END_MODEL
5908
5930
  //----------------------------------------------------------------------
5909
5931
  // Non-linear Reactive Power Models - Line Shunt
@@ -5916,7 +5938,7 @@ DEFINE_MODEL MODL:SDDP_LineShunt
5916
5938
  VECTOR REAL Bfrom INDEX Data
5917
5939
  VECTOR REAL Gto INDEX Data
5918
5940
  VECTOR REAL Bto INDEX Data
5919
- VECTOR DATE DateStatus
5941
+ VECTOR DATE DateStatus @addyear_fullmodification
5920
5942
  VECTOR INTEGER Status DIM(block) INDEX DateStatus
5921
5943
  END_MODEL
5922
5944
  //----------------------------------------------------------------------