{"id":935,"date":"2024-10-18T17:17:24","date_gmt":"2024-10-18T17:17:24","guid":{"rendered":"https:\/\/doublelayer.eu\/vilab\/?p=935"},"modified":"2024-10-18T18:03:45","modified_gmt":"2024-10-18T18:03:45","slug":"optimizers-in-ase","status":"publish","type":"post","link":"https:\/\/doublelayer.eu\/vilab\/2024\/10\/18\/optimizers-in-ase\/","title":{"rendered":"Optimizers in ASE"},"content":{"rendered":"\n<p>Optimising even simple intermediate on metal surfaces might be tricky. They tend change the adsorption site. OOH also very flexible in changing geometry. Thus, some optimizers get stuck (like BFGSLineSearch) while others just crush (like GPMin).<\/p>\n\n\n\n<p>Here is my test with OCPCalculator and EquiformerV2-31M-S2EF-OC20-All+MD (on 1 CPU in Google Colab). Optimisation of OH on Pt(111) is simple.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"344\" src=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-1.png\" alt=\"\" class=\"wp-image-936\" srcset=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-1.png 438w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-1-300x236.png 300w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-1-220x173.png 220w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/figure><\/div>\n\n\n<p>Here SciPyFminBFGS failed and other optimizers ended up with the same structure, shown below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"196\" height=\"295\" src=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-2.png\" alt=\"\" class=\"wp-image-937\" srcset=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-2.png 196w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-2-146x220.png 146w\" sizes=\"auto, (max-width: 196px) 100vw, 196px\" \/><\/figure><\/div>\n\n\n<p>Optimisation of OOH on Pt(111) is challenging. GoodOldQuasiNewton, FIRE, FIRE2, MDMin, and BFGSLineSearch (QuasiNewton) do not converge in 95 cycles (which I set as a maximum number of cycles). GPMin, SciPyFminBFGS, SciPyFminCG, and LBFGSLineSearch failed. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"254\" src=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-3.png\" alt=\"\" class=\"wp-image-944\" srcset=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-3.png 441w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-3-300x173.png 300w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-3-220x127.png 220w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"176\" height=\"267\" src=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-7.png\" alt=\"\" class=\"wp-image-949\" srcset=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-7.png 176w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-7-145x220.png 145w\" sizes=\"auto, (max-width: 176px) 100vw, 176px\" \/><figcaption class=\"wp-element-caption\">Geometry obtained with FIRE2 (similar to BFGS and FIRE)<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"167\" height=\"269\" src=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-8.png\" alt=\"\" class=\"wp-image-950\" style=\"width:165px;height:auto\" srcset=\"https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-8.png 167w, https:\/\/doublelayer.eu\/vilab\/wp-content\/uploads\/2024\/10\/image-8-137x220.png 137w\" sizes=\"auto, (max-width: 167px) 100vw, 167px\" \/><figcaption class=\"wp-element-caption\">Geometry obtained with LBFGS. It is clearly far from the optimum.<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>Optimising even simple intermediate on metal surfaces might be tricky. They tend change the adsorption site. OOH also very flexible in changing geometry. Thus, some optimizers get stuck (like BFGSLineSearch) while others just crush (like GPMin). Here is my test with OCPCalculator and EquiformerV2-31M-S2EF-OC20-All+MD (on 1 CPU in Google Colab). Optimisation of OH on Pt(111)&hellip; <a class=\"read-more\" href=\"https:\/\/doublelayer.eu\/vilab\/2024\/10\/18\/optimizers-in-ase\/\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,41],"tags":[48,53],"class_list":["post-935","post","type-post","status-publish","format-standard","hentry","category-know-how","category-teaching","tag-ase","tag-gpaw"],"_links":{"self":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/comments?post=935"}],"version-history":[{"count":7,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/935\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/935\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/media?parent=935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/categories?post=935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/tags?post=935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}