Skip to content

Commit

Permalink
remove uncovered Reformulation constructor (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarqu authored Oct 9, 2023
1 parent 1509927 commit 2863910
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions src/MathProg/reformulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,18 @@ end
`Reformulation` is a representation of a formulation which is solved by Coluna
using a decomposition approach.
Reformulation(env)
Construct an empty `Reformulation`.
Reformulation(env, parent, master, dw_pricing_subprs, benders_sep_subprs)
Constructs a `Reformulation` where:
- `env` is the Coluna environment;
- `parent` is the parent formulation (a `Formulation` or a `Reformulation`) (original
formulation for the classic decomposition);
- `master` is the formulation of the master problem;
- `dw_pricing_subprs` is a `Dict{FormId, Formulation}` containing all Dantzig-Wolfe pricing
subproblems of the reformulation;
- `benders_sep_subprs` is a `Dict{FormId, Formulation}` containing all Benders separation
subproblems of the reformulation.
"""
function Reformulation(env)
uid = env.form_counter += 1
reform = Reformulation(
uid,
nothing,
nothing,
Dict{FormId, Formulation{DwSp}}(),
Dict{FormId, Formulation{BendersSp}}(),
nothing
)
reform.storage = Storage(reform)
return reform
end

function Reformulation(env, parent, master, dw_pricing_subprs, benders_sep_subprs)
uid = env.form_counter += 1
reform = Reformulation(
Expand Down

0 comments on commit 2863910

Please sign in to comment.