Skip to content

Commit 575bab1

Browse files
committed
[UPD] Update runtests.jl with JuMP v0.13
1 parent 69ee991 commit 575bab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ facts("SDDP algorithm: 1D case") do
183183
# Test definition of final cost with a JuMP.Model:
184184
context("Final cost") do
185185
function fcost(model, m)
186-
alpha = getVar(m, :alpha)
187-
@addConstraint(m, alpha == 0.)
186+
alpha = getvariable(m, :alpha)
187+
@constraint(m, alpha == 0.)
188188
end
189189
# Store final cost in model:
190190
model.finalCost = fcost

0 commit comments

Comments
 (0)