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

Also set constraint if duration is a variable and TR is a number

parent f25cf562
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ struct Sequence <: ContainerBlock
to_block.(blocks),
get_free_variable(TR),
)
if !(TR isa Number)
if !(TR isa Number && isinf(TR))
@constraint global_model() seq.TR >= duration(seq)
end
return seq
......
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