Dear Frank and Stefan
With immense thanks to you both. I have now got it working well, and a stable fit.
To summarise: I wanted to mimic the loss of H2 from a catalytic reaction that produced H2, and in which H2 also acted in an inhibitory manner. As the reaction was run under eudiometric conditions there is a rapid establishment of a constant H2 pressure above the reaction solution (which s THF). This would-be about 1 atm. So using Henry's Constant for H2/THF I can estimate the max. steady state of H2 available in solution. Normally under conditions where H2 is lost to the atmosphere (or removed by a flow of N2) removing H2 in COPSAI is easy (I use H2 -> Z, and set the rate constant appropriately high). However I needed a set of condition where H2 built up then equilibrated at a certain conc. I used EVENTS to do this, and it works well in looping round.
Events
Trigger = [H2]>0.05
Target = [H2]
Expression = 0.045 <here I found that if I made the expression too close to the target the simulation ran very slowly and also sometimes did not work, I am sure this can be refined>
Method: Genetic Algorithm SR worked well (as does Evolutionary Programming).
The fits (over 8 separate experiments refined holistically) with the added constraint of the [H2] work out well (see attached). Still room for improvement but the model now reflects far more accurately the actual system.
Thanks again for your speedy replies and help.
Andy