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

Explain new cost function

parent cf321613
No related branches found
No related tags found
1 merge request!6Robust optimisation
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
......@@ -62,6 +62,7 @@ function DiffusionSpinEcho(; delay=0., excitation=(), gradient=(), refocus=(), r
add_cost_function!((variables.duration(seq[2]) - variables.duration(seq[4]))^2)
add_cost_function!((variables.duration(seq[6]) - variables.duration(seq[8]))^2)
else
# Minimise sequence duration with less emphasis on waiting block between second gradient and readout
add_cost_function!(variables.duration(seq) - 0.5 * variables.duration(seq[8]), 2)
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