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

if TR is infinite, there is no constraint on duration

parent a31ad1e3
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,9 @@ struct Sequence <: ContainerBlock
to_block.(blocks),
get_free_variable(model, TR),
)
@constraint model seq.TR >= duration(seq)
if !(TR isa Number && isinf(TR))
@constraint model seq.TR >= duration(seq)
end
if !isnothing(scanner)
scanner_constraints!(model, seq, scanner)
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