This tutorial section covers how to inert the equation of a colleague that uses another notation into your equation system.

### Model description

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

However, your colleague has already used the first equation before – unfortunately with another notation:

Hence, you cannot simply include it in your equation system. To solve this problem, we will set up a connector.

### Workflow

In the following, we demonstrate the workflow. Besides the equation “of the user”, we will also set up the equation “of the colleage”.

#### Notation of the user

Set up a notation with the following base names and indices:

##### Base names

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

##### Indices

- , index 1…NJ

The resulting notation has ID 182730.

#### Notation of the colleague

Set up the notation “of they colleague” with the following base names and indices:

##### Base names

- , parameter 1
- , parameter 2
- , variable

##### Indices

- , index 1…NI

This notation has ID 182731.

#### Equation of the user

Go to the Equation tab and perform the following steps:

- Load the notation of the user
- Enter the second equation of the user’s equation system
- Save the equation

The user equation has ID 182732.

#### Equation of the colleague

Go to the Equation tab and perform the following steps:

- Load the notation of the colleague
- Enter the equation as defined by the “colleague”
- Save the equation

The colleague’s equation has ID 182733.

#### Connector

Now it is necessary to create a connector, which is basically a list of synonyms for variable names. 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 user 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

The connector is available with ID 182734. Figure 1 illustrates how both equations are combined to one equation system.

#### Equation system

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

- Load the user equation
- Click on “Add EQU/EQS”
- Add the user equation as usual
- Select and load the colleague’s equation, but do not confirm to close this popup window
- Make sure that the Naming policy is integrate
- Turn on the option Use connector und load your saved connector
- Confirm
- Your equation system should now contain the colleague’s equation, but with your connector in the Connector column
- Add the user equation in the usual way without specifying any connector
- 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 182735.

#### Evaluation / Simulation

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

- Load your equation system in the tab Equation System
- Set the maximum Value NJ to 2 in the tab Indexing
- Go to the tab Specifications; you will notice that the variables , , and are not part of the variable specification as a result of the included connector
- Assign the variables , , , and as design values
- Assign the variables and as iteration values

Additional comments:

- If you go to the Equation System tab in the “Simulation” section, you see the original notation of the equations without connector
- In the Instantiated System tab, both equations are presented in the symbols corresponding to the Super Notation

### 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 182739 with variable specification 182741. 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 |