{"id":5484,"date":"2023-08-16T00:13:34","date_gmt":"2023-08-15T23:13:34","guid":{"rendered":"http:\/\/mosaic-modeling.de\/?page_id=5484"},"modified":"2023-09-10T12:58:04","modified_gmt":"2023-09-10T11:58:04","slug":"examples-user-defined-language-specifications","status":"publish","type":"page","link":"https:\/\/mosaic-modeling.de\/?page_id=5484","title":{"rendered":"Examples: User-defined language specifications"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">On this page<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Goal\" >Goal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Workflow-for-setting-up-a-UDLS\" >Workflow for setting up a UDLS<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Global-language-settings\" >Global language settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Operations\" >Operations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Variable-namings\" >Variable namings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Code-generation-properties\" >Code generation properties<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Code-elements\" >Code elements<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Help-header\" >Help header<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Optimization-layer\" >Optimization layer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Simulation-layer\" >Simulation layer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Model-equations\" >Model equations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\/#Display-results\" >Display results<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p>In this section, we provide examples for user-defined language specifications (UDLS). The examples are visible to all users and the examples always note the ID of the respective element. Therefore, you can always consult this solution if you do not know how to proceed.<\/p>\n<ul>\n<li><strong>\u201cUse of User-defined Language Specifications I \u2013 Nonlinear Equation System with Matlab\u201d<\/strong> explains how to set up a UDLS to solve nonlinear equation systems within Matlab<\/li>\n<li><strong>\u201cUse of User-defined Language Specifications II \u2013 Dynamic Optimization via Single Shooting\u201d<\/strong> shows how a UDLS for sequential optimization can be set up and applied on an available optimization<\/li>\n<\/ul>\n<div id=\"ccchildpages-1\" class=\"ccchildpages ccflex threecol ccblue ccclearfix\"><div class=\"ccchildpage  ccfirst ccodd ccpage-count-1 ccpage-id-5645 ccpage-use-of-user-defined-language-specifications-i-nonlinear-equation-system-with-matlab ccpage-has-parent ccpage-pid-5484 ccpage-parent-examples-user-defined-language-specifications\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of User-defined Language Specifications I \u2013 Nonlinear equation system with Matlab\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5645\" title=\"Use of User-defined Language Specifications I \u2013 Nonlinear equation system with Matlab\">Use of User-defined Language Specifications I \u2013 Nonlinear equation system with Matlab<\/a><\/h3><div class=\"ccpages_excerpt\">Goal In this example, we will set up a UDLS...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=5645\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><div class=\"ccchildpage  cceven ccpage-count-2 ccpage-id-5833 ccpage-use-of-user-defined-language-specifications-ii-parameter-estimation-with-single-shooting ccpage-has-parent ccpage-pid-5484 ccpage-parent-examples-user-defined-language-specifications\"><h3 class=\"ccpage_title ccpage_linked_title\" title=\"Use of User-defined Language Specifications II \u2013 Dynamic Optimization via Single Shooting\"><a class=\"ccpage_title_link\" href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\" title=\"Use of User-defined Language Specifications II \u2013 Dynamic Optimization via Single Shooting\">Use of User-defined Language Specifications II \u2013 Dynamic Optimization via Single Shooting<\/a><\/h3><div class=\"ccpages_excerpt\">Goal In this example, we will set up a UDLS...<\/div><p class=\"ccpages_more\"><a href=\"https:\/\/mosaic-modeling.de\/?page_id=5833\"  title=\"Read more ...\">Read more ...<\/a><\/p><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this section, we provide examples for user-defined language specifications (UDLS). The examples are visible to all users and the examples always note the ID of the respective element. Therefore, you can always consult this solution if you do not know how to proceed. \u201cUse of User-defined Language Specifications I \u2013 Nonlinear Equation System with [&hellip;]<\/p>\n","protected":false},"author":252,"featured_media":0,"parent":4731,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5484","page","type-page","status-publish","czr-hentry"],"_links":{"self":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/5484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/users\/252"}],"replies":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5484"}],"version-history":[{"count":5,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/5484\/revisions"}],"predecessor-version":[{"id":5916,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/5484\/revisions\/5916"}],"up":[{"embeddable":true,"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=\/wp\/v2\/pages\/4731"}],"wp:attachment":[{"href":"https:\/\/mosaic-modeling.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}