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

Only constrain TR if it is not already set to a number

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