Skip to content
Snippets Groups Projects
Verified Commit 849f479e authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix function name of global_model

parent a2d0d535
No related branches found
No related tags found
No related merge requests found
module WaitBlocks module WaitBlocks
import JuMP: @constraint import JuMP: @constraint
import ...BuildSequences: get_global_model import ...BuildSequences: global_model
import ...Variables: get_free_variable, VariableType, duration import ...Variables: get_free_variable, VariableType, duration
import ...Components: NoGradient import ...Components: NoGradient
import ..BaseBuildingBlocks: BaseBuildingBlock import ..BaseBuildingBlocks: BaseBuildingBlock
...@@ -10,7 +10,7 @@ struct Wait <: BaseBuildingBlock ...@@ -10,7 +10,7 @@ struct Wait <: BaseBuildingBlock
function Wait(var) function Wait(var)
res = new(get_free_variable(var)) res = new(get_free_variable(var))
if !(res.duration isa Number) if !(res.duration isa Number)
@constraint get_global_model() res.duration >= 0 @constraint global_model() res.duration >= 0
end end
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment