Skip to content

WIP: Add RAVENS schema#472

Closed
juanjospina wants to merge 99 commits intolanl-ansi:mainfrom
juanjospina:add-ravens-schema
Closed

WIP: Add RAVENS schema#472
juanjospina wants to merge 99 commits intolanl-ansi:mainfrom
juanjospina:add-ravens-schema

Conversation

@juanjospina
Copy link
Copy Markdown
Contributor

This is is still a Work in Progress (WIP) branch.

The parser can be (temporary) tested using the following:

pmd_file = "../file.json"

# parse JSON file
pmd_data = parse_file(pmd_file)

# instantiate model
pmd_model = instantiate_mc_model_ravens(pmd_data, ACPUPowerModel, build_mc_opf)

result = optimize_model!(
        pmd_model,
        relax_integrality=false,
        optimizer=ipopt,
        solution_processors=Function[]
    )

* REF: revise and refactor ravens2math functions to simplify them.

* FIX: issues with dictionary access in ravens funcs.
…es coming from dss-xml-json ravens exporters.
@juanjospina juanjospina marked this pull request as draft October 14, 2024 19:33
* WIP: TransformerTanks support. Adding them individually connected to the same fbus is giving errors.

* WIP: new version of TransformerTank. Plus - Important Fixes to Conductors, Switches, and EnergySource.

* REF: TransformerTanks but as Single-Phase entities.

* REF: TransformerTanks per single phase to avoid extra winding/tank loop.

* FIX: resistance and reactance for Transformers computations - single-phase

* REF: configuration and polarity of transformers based on connections DELTA-WYE, etc.

* REF: PowerTransformerEnd to avoid unnecessary calculations and clean code.

* REF: TransformerTank parsing.

* ADD: feature to combine TransformerTanks into a single transformer mathematical representation.
juanjospina and others added 27 commits May 21, 2025 09:37
…s. Fixed a problem with load forecasts that require actual values.
…s to elements in connected to three-phase transformers with single-phase tanks.
* WIP: math2ravens solution converter. Added Voltages, Statuses, and PowerFlows basic structures.

* WIP: Add support for adding status to transformers coming from MATH model.

* WIP: add operational results switch states and return values for transformation.

* WIP: Add mn support for voltages.

* ADD: multinetwork support for PF/OPF solutions.

* ADD: support for ONM solutions states, status.

* ADD: support for storage power flows and correct timestep values to hours based on time elapsed.

* FIX: check for existence of state and status keys.

* REF: sort the nws in mn solutions, making sure the timesteps are ordered.
…and add new utils function to extract type from name in RAVENS.
… assign status in transform solution to ravens based on bus statuses.
…ed and as the model is parsed the buses type are updated based on the statuses of the elements connected to the respective buses.
@stale
Copy link
Copy Markdown

stale Bot commented Apr 12, 2026

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix This will not be worked on label Apr 12, 2026
@stale stale Bot closed this Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants