Events allow you to define a condition and an event that will occur under those conditions. For example, IF B <= 1 THEN a =10 will set the value of A to 10 whenever B's value becomes less that 1. An assignment rule lets you define a function, such as a A.f = 1 + sin(time) * B, or something else like that. You can then use the name A.f in other parts of the model.
Important: you can specify that A = 1 + sim(time). This will make A itself into a boundary variable rather than a regular variable.
No comments:
Post a Comment