# Merge Simulation Models

Because multiple plug-ins may be used to obtain different parts of simulation-relevant information, it is desirable to merge these parts into one model (to create a simulation model that contains all the information at once).

## Invoking the plug-in

You can either choose Analysis → More Analysis.. from the menu, or press the second-most toolbar button. The result screen is shown in Figure 1. First, the 'Merge Simulation Models' plug-in must be selected, and then the desired input simulation models can be chosen from the simulation models available at the framework. In order to create a third input item, click on the + button at the upper right of the window. In order to proceed, press the Next » button.

Figure 1. Choosing the input simulation models

As a next step, you need to choose one of the given input simulation models to be the reference model (that is, a template model) for the output model (cf. Figure 2). This means that the underlying process model of the output model will be the same as the underlying process model of the chosen reference model.

Note: only if the baseline model (i.e., the reference point for integration) is a Petri-net based simulation model, the result can be directly passed to the CPN Export plug-in.

Figure 2. Choosing the reference model

Then, you need to map the activities from the remaining simulation models to the activities in the reference model. This is necessary in order to ensure that the correct aggregate information is accessed for each activity. If the activities have exactly the same name, the suggested default mapping can be simply accepted. Otherwise, you need to choose the right activity to be mapped on each of the reference model's activities.

## Merge Simulation Models Settings

After carrying out the previous-mentioned steps, the plug-in already merges the different models together based on the type of information they provide. Usually, this is sufficient and the merged model can be directly used further.

However, if for example two models provide the same kind of information, one might want to change the way the merging is done per default.

Figure 3. For each type information the simulation model that should provide this information can be selected

For this, you can choose for each type of information which of the merged simulation models should be used as the source. Figure 3 shows a screenshot of the “Timing” information view.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8611071,"math_prob":0.93004936,"size":2358,"snap":"2019-26-2019-30","text_gpt3_token_len":469,"char_repetition_ratio":0.17544605,"word_repetition_ratio":0.010256411,"special_character_ratio":0.19847329,"punctuation_ratio":0.101123594,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9605014,"pos_list":[0,1,2],"im_url_duplicate_count":[null,8,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-24T04:27:51Z\",\"WARC-Record-ID\":\"<urn:uuid:6bcc369e-cd78-4090-9a16-cb4e80a51e2c>\",\"Content-Length\":\"12600\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ca475754-6563-411d-816c-8a99232a47b5>\",\"WARC-Concurrent-To\":\"<urn:uuid:1491ea10-19e0-4a68-b465-ae5320d6fc01>\",\"WARC-IP-Address\":\"37.128.148.44\",\"WARC-Target-URI\":\"http://www.processmining.org/prom/mergesimmodels\",\"WARC-Payload-Digest\":\"sha1:QPXIQ5TY4CILTIZKDROEIUX5QIW7JGEW\",\"WARC-Block-Digest\":\"sha1:CNQJ74TMJIPIVZI73F3EGXLVH2A64U4D\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195530385.82_warc_CC-MAIN-20190724041048-20190724063048-00278.warc.gz\"}"}