


{"id":284752,"date":"2023-05-18T17:40:38","date_gmt":"2023-05-18T17:40:38","guid":{"rendered":"\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/"},"modified":"2023-05-18T17:46:52","modified_gmt":"2023-05-18T17:46:52","slug":"running-an-optimization-through-scripting-in-lumerical","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/","title":{"rendered":"Running an optimization through scripting in Lumerical"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can find a way around this. Here are my problems:<\/p>\n<p>1)&nbsp; I have four monitors and I want to get the output of these four monitors and combine them in another analysis box. Then, I want to minimize the output of this analysis box, using the optimizer. First problem is that the output of the analysis boxes cannot be fed to each other. So, I cannot basically feed the output of the four into the other and then minimize that one. There might be a way around this and that is to take the output of four monitors in the Figure of Merit section of the optimizer. This, however, leads to the second problem that I have, detailed below.<\/p>\n<p>2) I want to optimize the sum of p and S polarizations. So, if I do the approach above, I cannot do the sum. In fact, I do not know how to do it. I saw that there was an example in Lumerical that used a polarization sweep inside the optimizer and then used a sum command to presumably sum the results, but I am not sure how this works in my case that have to sum the four monitors and then the polarizations. It gets confusing.<\/p>\n<p>3) Now, let us assume that we want to optimize the structure by changing a few parameters. But I have some monitors the positions of which are dependent on the parameters that we want to optimize. I created my structure using the structure group, but I cannot define my monitors within the structure group. So, when parameters are changed within the structure group through the optimization toolbox, monitors will not be affected at all. Thus, basically, the optimizer results will be inaccurate. What can we do here to have an interconnect between the monitors and the structure group?<\/p>\n<p>By the way, I created all of these using scripting, so it would be nice if we could actually do the whole scripting in Lumerical without having to rely on the GUI.<\/p>\n<p>Thank you very much for the help,<\/p>\n<p>&nbsp;<\/p>\n<p>Ya<\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-284752","topic","type-topic","status-closed","hentry","topic-tag-lumerical","topic-tag-optimization"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Running an optimization through scripting in Lumerical | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-05-18T17:40:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-05-18T17:46:52+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Running an optimization through scripting in Lumerical | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/running-an-optimization-through-scripting-in-lumerical\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/#listItem\",\"name\":\"optimization\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/#listItem\",\"position\":3,\"name\":\"optimization\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/running-an-optimization-through-scripting-in-lumerical\\\/#listItem\",\"name\":\"Running an optimization through scripting in Lumerical\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/running-an-optimization-through-scripting-in-lumerical\\\/#listItem\",\"position\":4,\"name\":\"Running an optimization through scripting in Lumerical\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/optimization\\\/#listItem\",\"name\":\"optimization\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/running-an-optimization-through-scripting-in-lumerical\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/running-an-optimization-through-scripting-in-lumerical\\\/\",\"name\":\"Running an optimization through scripting in Lumerical | Ansys Learning Forum\",\"description\":\"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/running-an-optimization-through-scripting-in-lumerical\\\/#breadcrumblist\"},\"datePublished\":\"2023-05-18T17:40:38+00:00\",\"dateModified\":\"2023-05-18T17:46:52+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Running an optimization through scripting in Lumerical | Ansys Learning Forum","description":"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/#listItem","name":"optimization"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/#listItem","position":3,"name":"optimization","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/#listItem","name":"Running an optimization through scripting in Lumerical"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/#listItem","position":4,"name":"Running an optimization through scripting in Lumerical","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/#listItem","name":"optimization"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/","name":"Running an optimization through scripting in Lumerical | Ansys Learning Forum","description":"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/#breadcrumblist"},"datePublished":"2023-05-18T17:40:38+00:00","dateModified":"2023-05-18T17:46:52+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Running an optimization through scripting in Lumerical | Ansys Learning Forum","og:description":"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/","article:published_time":"2023-05-18T17:40:38+00:00","article:modified_time":"2023-05-18T17:46:52+00:00","twitter:card":"summary_large_image","twitter:title":"Running an optimization through scripting in Lumerical | Ansys Learning Forum","twitter:description":"Hello,I am trying to run an extensive optimization through Lumerical but have failed multiple times due to separate issues. I have been trying to find my way through this with no success. I can send a file over if you think this can be done in Lumerical and that would be appreciated if we can"},"aioseo_meta_data":{"post_id":"284752","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 18:08:09","updated":"2024-10-28 18:08:09","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/\" title=\"optimization\">optimization<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRunning an optimization through scripting in Lumerical\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"optimization","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/optimization\/"},{"label":"Running an optimization through scripting in Lumerical","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/running-an-optimization-through-scripting-in-lumerical\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["285154","4274","2592"],"_bbp_author_ip":["96.7.74.173"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["865"],"_edit_lock":["1684431992:218328"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["284752"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","4274","285154"],"_bbp_voice_count":["3"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["285334"],"_bbp_last_active_id":["285334"],"_bbp_last_active_time":["2023-05-23 15:56:21"]},"test":"yahya-mohtashamiovt-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/284752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/284752\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=284752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}