Skip to content

Fix parser from SDDP #7

Description

@andrewrosemberg

Currently, the parser (a series of code scripts) only grabs the first problem from the sddp.jl graph.

How I currently bring problems from sddp.jl:

  • I first save the file related to the first problem:

    # ## Save subproblem
    # results = HydroPowerModels.simulate(m, 2);
    # model = m.forward_graph[1].subproblem
    # delete(model, all_variables(model)[findfirst(x -> x == "", name.(all_variables(model)))])
    # JuMP.write_to_file(model, joinpath(case_dir, string(formulation)) * ".mof.json")

  • Then, by knowing the name of the variables that my sddp.jl builder creates and how sddp.jl names incoming and outgoing stages, I transform the variables that represent parameters to the choice of parameter representation:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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