(* analog stoichiometric computation of max ( min (A, B) , A/2 + C) *) directive sample 100.0 1000 rate k1 = 1.0; rate k2 = 1.0; rate k3 = 1.0; rate k4 = 1.0; rate k5 = 1.0; rate k6 = 1.0; rate k7 = 1.0; rate k8 = 1.0; init A 1 | init B 1 | init C 1 | init X 0 | init Y 0 | init P 0 | init Q 0 | init R 0 | init S 0 | init T 0 | init Z 0 | A ->{k1} X+Y | X+X ->{k2} P | C ->{k3} P | Y+B ->{k4} Q | P ->{k5} Z+R | Q ->{k6} Z+S | R+S ->{k7} T | T+Z ->{k8}