So a couple of quick questions:
1/ Do states only defined via algebraic equations need to be written as variables in the model (i.e. in states only odes can be defined)?
2/ Can you only define on a conditional basis via events?
For instance if we have something like:
if (STATE1<parameter1) then
variable1 = function1 (states,parameters)
variable1 = function2 (states,parameters)
Would you define it as follows??
********** MODEL VARIABLES
********** MODEL EVENTS
Event1 = gt(
variable1, function2 (states,parameters)
Would that work in the correect way?