This example is the most general (but also rarest) case: all connected sub elements use notations different from the super notation.

### Model description

In this example, we want to solve the following equation system:

This is the same equation system as in example I on connectors, but with a third notation.

### Workflow

We now present the workflow for formulating an equation system with a new super notation in the case in which all sub-elements have their own notation.

#### Super notation

Set up the new super notation with the following base names and indices:

##### Base names

- , parameter 1
- , parameter 2
- , parameter 3
- , parameter 4
- , variable

##### Indices

- , index 1…NK

The resulting notation has ID 182746.

#### Equations

Use the same equations as in example I for connectors. These equations have the IDs 182732 and 182733.

#### Connectors

Now it is necessary to create two connectors. Go to the Connector tab and proceed as follows:

- Add a helpful description for the connector
- Activate the tab Edit Matching. You see two sections: one for the Sub Notation and one for the Super Notation. Both sections contain a field to import the notation
- In the section for the Sub Notation, press the Import button and select the notation of the colleague, then confirm. Alternatively, you can select Import Notation from Connected Element and select the equation of the colleague. This automatically adds all variables used in this equation
- Add the new super notation as Super Notation. As there is no analogous equation available, you need to select Import Notation directly
- Generate the missing variables for the Sub Notation and the Super Notation, i.e.,
- Sub Notation: , ,
- Super Notation: , ,

- Select the analogous variables and click on Match to achieve the following matching:
- Make sure by clicking on the pair to check whether the Index Matching was successful. The Sub index should have been matched with the Super index
- Save the connector
- Repeat these steps for a new connector that connects the user notation and the new super notation. The variables in this case are:
- Sub Notation: , ,
- Super Notation: , ,

- The resultung match must be:
- Verify the correct setup of the connector and save it

The connectors are available with IDs 182744 and 182745. Figure 1 illustrates how both equations are combined to one equation system.

Figure 1: Graph of the variable interpretation.

#### Equation system

To construct the equation system, go to the Equation System tab and take the following steps.

- Load the user equation from example I with the connector user notation super notation
- Load the colleague’s equation from example I with the connector colleague notation super notation
- Save the equation system; should a warning appear because the notation of the equation is different from the equation system’s notation, acknowledge it. If you did everything as described, there will be no problem as you used a connector

The equation system has ID 182746.

#### Evaluation / Simulation

Go to the “Simulation” section and do the following:

- Load your equation system in the tab Equation System
- Set the maximum Value NK to 2 in the tab Indexing
- Go to the tab Specifications
- Assign the variables , , , and as design values
- Assign the variables and as iteration values

### Initialization and results

To initialize and specify the model, take the following steps:

- Initialize this example with the design values and initial guesses given in Table 1
- Save the variable specification
- Save the simulation
- Go to the Evaluation tab and generate the code for your preferred environment
- Solve the system using the generated code

This simulation is available with ID 182748 with variable specification 182749. The solution for all iteration variables is also given in Table 1.

Name | Description | Value / Initial guess | Solution |
---|---|---|---|

Parameter 1 | 3 | ||

Parameter 2 | 3 | ||

Parameter 3 | 2 | ||

Parameter 4 | 2 | ||

Variable 1 | 1 | 2.158 | |

Variable 2 | 1 | 0.281 |