Oracle9i OLAP Developer's Guide to the OLAP DML Release 2 (9.2) Part Number A9529801 

Working with Models, 5 of 8
When you finish writing the commands in a model, you can use the COMPILE
command to compile the model. During compilation, COMPILE
checks for format errors, so you can use COMPILE
to help debug your code before running a model. If you do not use the COMPILE
command before you run the model, then the model will be compiled automatically before it is solved.
When you compile a model, either by using the COMPILE
command or by running the model, the model compiler examines each equation to determine whether the assignment target and each data source is a variable or a dimension value.
To resolve each name reference, the following procedure is used.
DIMENSION
commands are searched, in the order they are listed, to determine whether the name matches a dimension value of a listed dimension. The search concludes as soon as a match is found.After resolving each name reference, the model compiler analyzes dependencies between the equations in the model. A dependence exists when the expression on the righthand side of the equal sign in one equation refers to the assignment target of another equation. If an =
command indirectly depends on itself as the result of the dependencies among equations, then a cyclic dependence exists between the equations.
The model compiler structures the equations into blocks and orders the equations within each block, and the blocks themselves, to reflect dependencies. The compiler can produce three types of solution blocks: simple blocks, step blocks, and simultaneous blocks.
Simple blocks include equations that are independent of each other and equations that have dependencies on each other that are noncyclic.
If a block contains equations that solve for values A, B, and C, then a noncyclic dependence can be illustrated as shown below where the arrows indicate that A depends on B, and B depends on C.
Step blocks include equations that have a cyclic dependence that is a oneway dimensional dependence. A dimensional dependence occurs when the data for the current dimension value depends on data from previous or later dimension values. The dimensional dependence is one way when the data depends on previous values only or later values only, but not both.
Dimensional dependence typically occurs over a time dimension. For example, it is common for a line item value to depend on the value of the same line item or a different line item in a previous time period. If a block contains equations that solve for values A and B, then a oneway dimensional dependence can be illustrated as shown in the figure below where arrows indicate that A depends on B, and B depends on the value of A from a previous time period.
Simultaneous blocks include equations that have a cyclic dependence that is other than oneway dimensional. The cyclic dependence may be twoway dimensional, or it may involve no dimensional qualifiers at all.
An example of a cyclic dependence that is twoway dimensional can be illustrated as shown below where the arrows indicate that A depends on the value of B from a future period, while B depends on the value of A from a previous period.
An example of a cyclic dependence that does not depend on any dimensional qualifiers can be illustrated as shown below where the arrows indicate that A depends on B and B depends on A.

Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. 
