Solving Implicit Equations

When a system contains an implicit equation, that is, an equation defined in terms of itself, you use unknown and constraint blocks to solve it. There may be one or more or no solutions for the system.

The key steps to setting and solving implicit equations follows:

1.    Define the variable that needs to be determined as an unknown using the unknown block. The order is very important: an unknown must be defined first and then given a variable name.

2.    Isolate zero on the right-hand side of the equation by moving all terms to the left-hand side.

3.    Construct the left side of the equation and equate the right side by using the constraint block to denote zero.

In the case of connections backward to earlier blocks already evaluated (often called feedback), Embed checks to see that such feedback loops contain at least one integrator, transferFunction, unitDelay, or timeDelay block. If there is no such block in the feedback, the result is numerically ill-defined and is referred to as an algebraic loop. Embed detects such algebraic loops and produces a warning message.