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

Also, do not set constraint if both TR and duration are numbers

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