Engee documentation
Notebook

Solving the SLOUGH in the model

The example concerns the use of the Algebraic Constraint block (AlgebraicConstraint) and its application to solving systems of linear algebraic equations.

In the example, we solve the equation:

To solve this equation using a model, you need to represent it as follows:

In [ ]:
engee.open("$(@__DIR__)/SolveALinearSystemOfAlgebraicEquationsExample.engee");
data = engee.run("SolveALinearSystemOfAlgebraicEquationsExample")
Out[0]:
SimulationResult(
    run_id => 5,
    "z" => WorkspaceArray{Vector{Float64}}("SolveALinearSystemOfAlgebraicEquationsExample/z")

)
image.png

Conclusion

The Algebraic Constraint block receives signals of the following type:

The block is configured to find conditions for compliance with the restriction . Search for a system solution to achieve the condition provides a solution and .