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

Allow setting of fully defined sequence outside of build_sequence

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