Skip to content

Commit

Permalink
Use :InvalidateSolver by default #5
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Apr 7, 2017
1 parent 0b8d229 commit 0bc7d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ $(SIGNATURES)
Transforms a [StructJuMP](https://github.com/StructJuMP/StructJuMP.jl) model `m` into a lattice that can be used by the SDDP algorithm.
"""
function model2lattice(m::Model, num_stages, solver, pruningalgo::AbstractCutPruningAlgo, cutmode::Symbol=:MultiCut, newcut::Symbol=:AddImmediately)
function model2lattice(m::Model, num_stages, solver, pruningalgo::AbstractCutPruningAlgo, cutmode::Symbol=:MultiCut, newcut::Symbol=:InvalidateSolver)
nodes = Vector{Vector{SDDPNode}}(num_stages)
for i in 1:num_stages
nodes[i] = SDDPNode[]
Expand Down

0 comments on commit 0bc7d32

Please sign in to comment.