<mxfile host="drawio"><diagram id="seq-fit" name="Sequence: fit"><mxGraphModel dx="620" dy="480" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="620" pageHeight="480" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="seq-fit-2" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="90" as="sourcePoint"/><mxPoint x="85" y="430" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-3" value="User" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-fit-4" value="User" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10.0" y="430" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-fit-5" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="90" as="sourcePoint"/><mxPoint x="265" y="430" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-6" value="EM-like" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="190.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-fit-7" value="EM-like" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="190.0" y="430" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-fit-8" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="445" y="205" as="sourcePoint"/><mxPoint x="445" y="430" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-9" value="Pipeline" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="370.0" y="165" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-fit-10" value="Pipeline" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="370.0" y="430" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-fit-16" value="ref" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="370.0" y="250" width="150.0" height="50" as="geometry"/></mxCell><mxCell id="seq-fit-1" value="Sequence: EM-like fit" style="text;html=1;align=left;verticalAlign=top;whiteSpace=wrap;spacing=0;fontSize=18;fontStyle=1;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10" y="10" width="600" height="26" as="geometry"/></mxCell><mxCell id="seq-fit-11" value="fit(X, mixture)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="115" as="sourcePoint"/><mxPoint x="265" y="115" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-12" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="132" as="sourcePoint"/><mxPoint x="265" y="150" as="targetPoint"/><Array as="points"><mxPoint x="293" y="132"/><mxPoint x="293" y="150"/></Array></mxGeometry></mxCell><mxCell id="seq-fit-13" value="create OptimizationBlocks" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="299" y="132.0" width="163" height="18" as="geometry"/></mxCell><mxCell id="seq-fit-14" value="«create»" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="185" as="sourcePoint"/><mxPoint x="370.0" y="185" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-15" value="fit(X, mixture)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="235" as="sourcePoint"/><mxPoint x="445" y="235" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-17" value="Sequence: iteration" style="text;html=1;align=center;verticalAlign=middle;spacing=0;fontSize=12;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="374.0" y="274" width="142.0" height="22" as="geometry"/></mxCell><mxCell id="seq-fit-18" value="mixture" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="445" y="325" as="sourcePoint"/><mxPoint x="265" y="325" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-19" value="history" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="355" as="sourcePoint"/><mxPoint x="445" y="355" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-20" value="IterationsHistory" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="445" y="380" as="sourcePoint"/><mxPoint x="265" y="380" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-fit-21" value="mixture" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="410" as="sourcePoint"/><mxPoint x="85" y="410" as="targetPoint"/></mxGeometry></mxCell></root></mxGraphModel></diagram><diagram id="seq-iteration" name="Sequence: iteration"><mxGraphModel dx="890" dy="615" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="890" pageHeight="615" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="seq-iteration-2" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="90" as="sourcePoint"/><mxPoint x="85" y="565" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-3" value="Pipeline" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-4" value="Pipeline" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10.0" y="565" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-5" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="90" as="sourcePoint"/><mxPoint x="265" y="565" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-6" value="step: PipelineStep" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="190.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-7" value="step: PipelineStep" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="190.0" y="565" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-8" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="445" y="90" as="sourcePoint"/><mxPoint x="445" y="565" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-9" value="pruner: Pruner" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="370.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-10" value="pruner: Pruner" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="370.0" y="565" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-11" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="625" y="90" as="sourcePoint"/><mxPoint x="625" y="565" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-12" value="IterationsHistory" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="550.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-13" value="IterationsHistory" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="550.0" y="565" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-14" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="805" y="90" as="sourcePoint"/><mxPoint x="805" y="565" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-15" value="breakpointer: Breakpointer" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="730.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-16" value="breakpointer: Breakpointer" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="730.0" y="565" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-iteration-19" value="loop" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="150" width="860" height="400" as="geometry"/></mxCell><mxCell id="seq-iteration-21" value="loop" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="30" y="172" width="400" height="131" as="geometry"/></mxCell><mxCell id="seq-iteration-25" value="opt" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="40" y="245" width="380" height="50" as="geometry"/></mxCell><mxCell id="seq-iteration-29" value="loop" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="30" y="315" width="580" height="135" as="geometry"/></mxCell><mxCell id="seq-iteration-33" value="opt" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="40" y="387" width="560" height="53" as="geometry"/></mxCell><mxCell id="seq-iteration-1" value="Sequence: Pipeline.fit" style="text;html=1;align=left;verticalAlign=top;whiteSpace=wrap;spacing=0;fontSize=18;fontStyle=1;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10" y="10" width="600" height="26" as="geometry"/></mxCell><mxCell id="seq-iteration-17" value="reset()" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry x="0.085" relative="1" as="geometry"><mxPoint x="85" y="112" as="sourcePoint"/><mxPoint x="805" y="112" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-18" value="reset()" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="135" as="sourcePoint"/><mxPoint x="265" y="135" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-20" value="[until any breakpointer stops]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="66" y="151" width="194" height="18" as="geometry"/></mxCell><mxCell id="seq-iteration-22" value="[for step in steps]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="76" y="173" width="126" height="18" as="geometry"/></mxCell><mxCell id="seq-iteration-23" value="run(state)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="208" as="sourcePoint"/><mxPoint x="265" y="208" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-24" value="state" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="265" y="232" as="sourcePoint"/><mxPoint x="85" y="232" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-26" value="[state.error]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="86" y="246" width="89" height="18" as="geometry"/></mxCell><mxCell id="seq-iteration-27" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="267" as="sourcePoint"/><mxPoint x="85" y="285" as="targetPoint"/><Array as="points"><mxPoint x="113" y="267"/><mxPoint x="113" y="285"/></Array></mxGeometry></mxCell><mxCell id="seq-iteration-28" value="save error, warn, return curr_mixture" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="119" y="267.0" width="237" height="18" as="geometry"/></mxCell><mxCell id="seq-iteration-30" value="[for pruner in pruners]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="76" y="316" width="151" height="18" as="geometry"/></mxCell><mxCell id="seq-iteration-31" value="prune(state)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry x="0.257" relative="1" as="geometry"><mxPoint x="85" y="350" as="sourcePoint"/><mxPoint x="445" y="350" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-32" value="(state, removed)" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry x="0.326" relative="1" as="geometry"><mxPoint x="445" y="375" as="sourcePoint"/><mxPoint x="85" y="375" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-34" value="[removed is not empty]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="86" y="388" width="144" height="18" as="geometry"/></mxCell><mxCell id="seq-iteration-35" value="clear_after_prune(removed)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="428" as="sourcePoint"/><mxPoint x="265" y="428" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-36" value="save_record(IterationRecord)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="85" y="480" as="sourcePoint"/><mxPoint x="625" y="480" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-37" value="check(state)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry x="0.128" relative="1" as="geometry"><mxPoint x="85" y="510" as="sourcePoint"/><mxPoint x="805" y="510" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-iteration-38" value="stop: bool" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry x="-0.111" relative="1" as="geometry"><mxPoint x="805" y="535" as="sourcePoint"/><mxPoint x="85" y="535" as="targetPoint"/></mxGeometry></mxCell></root></mxGraphModel></diagram><diagram id="seq-maximization" name="Sequence: maximization"><mxGraphModel dx="885" dy="625" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="885" pageHeight="625" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="seq-maximization-2" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="80" y="90" as="sourcePoint"/><mxPoint x="80" y="575" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-3" value="Pipeline" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="5.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-4" value="Pipeline" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="5.0" y="575" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-5" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="90" as="sourcePoint"/><mxPoint x="250" y="575" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-6" value="MaximizationStep" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="175.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-7" value="MaximizationStep" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="175.0" y="575" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-8" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="560" y="90" as="sourcePoint"/><mxPoint x="560" y="575" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-9" value="strategy" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="485.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-10" value="strategy" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="485.0" y="575" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-11" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="790" y="90" as="sourcePoint"/><mxPoint x="790" y="575" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-12" value="optimizer: Optimizer" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="715.0" y="50" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-13" value="optimizer: Optimizer" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1.5;fontSize=12;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="715.0" y="575" width="150" height="40" as="geometry"/></mxCell><mxCell id="seq-maximization-15" value="alt" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="20" y="122" width="855" height="438" as="geometry"/></mxCell><mxCell id="seq-maximization-22" value="loop" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="30" y="218" width="835" height="275" as="geometry"/></mxCell><mxCell id="seq-maximization-26" value="loop" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="40" y="272" width="815" height="213" as="geometry"/></mxCell><mxCell id="seq-maximization-29" value="alt" style="shape=umlFrame;whiteSpace=wrap;html=1;pointerEvents=0;fillColor=none;strokeColor=#000000;strokeWidth=1.2;fontSize=11;fontStyle=1;width=40;height=20;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="470" y="315" width="375" height="107" as="geometry"/></mxCell><mxCell id="seq-maximization-1" value="Sequence: MaximizationStep.run" style="text;html=1;align=left;verticalAlign=top;whiteSpace=wrap;spacing=0;fontSize=18;fontStyle=1;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="10" y="10" width="600" height="26" as="geometry"/></mxCell><mxCell id="seq-maximization-14" value="run(state)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="80" y="110" as="sourcePoint"/><mxPoint x="250" y="110" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-16" value="[state.H is None]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="66" y="123" width="113" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-17" value="state (error = ValueError)" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="158" as="sourcePoint"/><mxPoint x="80" y="158" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-18" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="20" y="170" as="sourcePoint"/><mxPoint x="875" y="170" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-19" value="[else]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="26" y="172" width="45" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-20" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="190" as="sourcePoint"/><mxPoint x="250" y="208" as="targetPoint"/><Array as="points"><mxPoint x="278" y="190"/><mxPoint x="278" y="208"/></Array></mxGeometry></mxCell><mxCell id="seq-maximization-21" value="waves = plan_waves(blocks)" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="190.0" width="169" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-23" value="[for wave in waves]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="76" y="219" width="126" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-24" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="243" as="sourcePoint"/><mxPoint x="250" y="261" as="targetPoint"/><Array as="points"><mxPoint x="278" y="243"/><mxPoint x="278" y="261"/></Array></mxGeometry></mxCell><mxCell id="seq-maximization-25" value="snapshot = with_components(components)" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="243.0" width="244" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-27" value="[for block in wave]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="86" y="273" width="126" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-28" value="strategy(component, wave_state, block, optimizer)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="303" as="sourcePoint"/><mxPoint x="560" y="303" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-30" value="[closed form registered]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="516" y="316" width="157" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-31" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="560" y="340" as="sourcePoint"/><mxPoint x="560" y="358" as="targetPoint"/><Array as="points"><mxPoint x="588" y="340"/><mxPoint x="588" y="358"/></Array></mxGeometry></mxCell><mxCell id="seq-maximization-32" value="closed-form update" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="594" y="340.0" width="120" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-33" value="" style="html=1;rounded=0;dashed=1;endArrow=none;strokeColor=#000000;strokeWidth=1.2;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="470" y="368" as="sourcePoint"/><mxPoint x="845" y="368" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-34" value="[else]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="476" y="370" width="45" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-35" value="minimize(target, params)" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="560" y="395" as="sourcePoint"/><mxPoint x="790" y="395" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-36" value="params" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="790" y="415" as="sourcePoint"/><mxPoint x="560" y="415" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-37" value="(component_id, new_params)" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="560" y="445" as="sourcePoint"/><mxPoint x="250" y="445" as="targetPoint"/></mxGeometry></mxCell><mxCell id="seq-maximization-38" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="458" as="sourcePoint"/><mxPoint x="250" y="476" as="targetPoint"/><Array as="points"><mxPoint x="278" y="458"/><mxPoint x="278" y="476"/></Array></mxGeometry></mxCell><mxCell id="seq-maximization-39" value="update components[component_id]" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="458.0" width="200" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-40" value="" style="endArrow=block;endFill=1;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="505" as="sourcePoint"/><mxPoint x="250" y="523" as="targetPoint"/><Array as="points"><mxPoint x="278" y="505"/><mxPoint x="278" y="523"/></Array></mxGeometry></mxCell><mxCell id="seq-maximization-41" value="curr_mixture = with_components(components)" style="text;html=1;align=left;verticalAlign=middle;spacing=0;spacingLeft=2;spacingRight=2;fontSize=11;fillColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="284" y="505.0" width="268" height="18" as="geometry"/></mxCell><mxCell id="seq-maximization-42" value="state" style="dashed=1;endArrow=open;endFill=0;html=1;rounded=0;endSize=8;strokeColor=#000000;strokeWidth=1.5;fontSize=11;verticalAlign=bottom;labelBackgroundColor=#ffffff;fontFamily=Helvetica;fontColor=#000000;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="250" y="548" as="sourcePoint"/><mxPoint x="80" y="548" as="targetPoint"/></mxGeometry></mxCell></root></mxGraphModel></diagram></mxfile>
