UndefVarError in JuMP constraint

By the way, while your PR fixes the problems in my original post, but there still seems to be a similar error from the following line:

@objective(model,Max,pH * tH + pL * sum(sigL[i]*tL[i] for i in 1:length(sigL)))

Appending this line to the code in my original post gives the following error message:

ERROR: UndefVarError: ##385 not defined
Stacktrace:
 [1] macro expansion at /Users/chisquared/.julia/packages/JuMP/ETBj9/src/parseexpr.jl:354 [inlined]
 [2] top-level scope at /Users/chisquared/.julia/packages/JuMP/ETBj9/src/macros.jl:876