Skip to content

Example does not work #42

@noahrhodes

Description

@noahrhodes

The code example in the documentation does not work.

First, 'run_' needs to be changes to 'solve_'. Second calling the fault study returns an error:

using PowerModels, PowerModelsProtection, Ipopt
file_path = joinpath(dirname(pathof(PowerModelsProtection)), "..", "test","data","trans","case5.raw")
net = PowerModels.parse_file(file_path, import_all=true)
solver = Ipopt.Optimizer

net["fault"] = Dict()
net["fault"]["1"] = Dict("bus"=>2, "r"=>0.0001)

results = PowerModelsProtection.solve_fault_study(net, solver ) #error key "status" not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions