Models

In ASCMO-MOCA, you can work with models provided as a set of formulas, or you can import models created with ASCET, FMU, Simulink, ASCMO-STATIC or ASCMO-DYNAMIC. These models can then be used as function nodes in the ASCMO-MOCA project.

Importing and connecting external models is done in the Models Step.

  • ASCET models

    If you want to use an ASCET model in ASCMO-MOCA, you have to create a *.dll file with ASCET and ASCET-PSL first. This *.dll file is then added to the ASCMO-MOCA project; see also Adding ASCET, FMU, Simulink Models, TSim Plugin.

    ASCET models are used as black boxes by ASCMO-MOCA. You cannot change the models, and no link to the ASCET model or to ASCET is created during import.

  • FMU models

    If you want to use an FMU model in ASCMO-MOCA, you have to create an FMI *.fmu file first. This *.fmu file is then added to the ASCMO-MOCA project; see also Adding ASCET, FMU, Simulink Models, TSim Plugin.

    Note  

    FMU models that use FMI 2.x or FMI 3.x are supported by ASCMO-MOCA. FMU models that use FMI 1 cannot be used.

    Only the FMU file name is added to the ASCMO-MOCA project. You cannot open the model itself. During optimization, the FMU model is used as a black box: ASCMO-MOCA passes the inputs to the model, and receives the outputs from the model. The way the model computes the output values remains unknown to ASCMO-MOCA.

    The execution of Linux FMUs (i.e. no Win32 or Win64 binaries included in the FMU) is supported, an appropriate Linux image must exist. An FMU with Linux binaries can be run, if WSL2 (Windows Subsystem Linux) is installed. The virtual machine needs ZeroC Ice and libgomp.

    For example on Debian this can be installed by

    sudo apt install libgomp1

    sudo apt install libzeroc-ice3.7 libzeroc-ice zeroc-ice-compilers zeroc-ice-slice

    Take care that at least Ice version 3.7.6 is installed.

  • Simulink® models

    Using Simulink® models in ASCMO-MOCA is described in detail in the tutorial, see Step 4: Models.

  • ASCMO-STATIC and ASCMO-DYNAMIC models

    These models are used as black boxes. After import of the models, the ASCMO project isn't linked anymore and the models become part of the ASCMO-MOCA project.

    During import, you can select one, several or all outputs for import. Each output is added as a separate model. See also Importing ASCMO-STATIC/ASCMO-DYNAMIC Models.

  • TSiM Plugin

    If you want to use a TSiM Plugin in ASCMO-MOCA, you need a *.mexw64 file. This proprietary file format of Bosch is similar to FMU and typically represents control unit functions in a compiled form (DLL).

    This format can be used in ASCMO-MOCA for simulations and optimization of parameters.

See also

Models Step

Adding ASCET, FMU, Simulink Models, TSim Plugin

Step 4: Models (tutorial; Simulink models only)

Importing ASCMO-STATIC/ASCMO-DYNAMIC Models