{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-comparison-of-mesh-free-differentiable","title":"A Comparison of Mesh-Free Differentiable Programming and Data-Driven Strategies for Optimal Control under PDE Constraints","arxiv_id":"2310.02286","date":"2023-10-02","proceeding":null,"authors":["Roussel Desmond Nzoyem","David A. W. Barton","Tom Deakin"],"abstract":"The field of Optimal Control under Partial Differential Equations (PDE) constraints is rapidly changing under the influence of Deep Learning and the accompanying automatic differentiation libraries. Novel techniques like Physics-Informed Neural Networks (PINNs) and Differentiable Programming (DP) are to be contrasted with established numerical schemes like Direct-Adjoint Looping (DAL). We present a comprehensive comparison of DAL, PINN, and DP using a general-purpose mesh-free differentiable PDE solver based on Radial Basis Functions. Under Laplace and Navier-Stokes equations, we found DP to be extremely effective as it produces the most accurate gradients; thriving even when DAL fails and PINNs struggle. Additionally, we provide a detailed benchmark highlighting the limited conditions under which any of those methods can be efficiently used. Our work provides a guide to Optimal Control practitioners and connects them further to the Deep Learning community.","url_abs":"https://arxiv.org/abs/2310.02286v1","url_pdf":"https://arxiv.org/pdf/2310.02286v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"a-comparison-of-mesh-free-differentiable","repo_url":"https://github.com/ddrous/updec","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"jax","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"deep-learning","task_name":"Deep Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2310.02286","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.02286"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ddrous/updec","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":8,"unverified":7},"by_repo_kind":{"official":{"samples":15,"ran":8,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"3e0e6097206ec105","entry":"core_gradient_mon","repo":"ddrous/updec","repo_kind":"official","path":"updes/operators.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/updes/operators.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3e0e6097206ec105"}},{"code_sha256_prefix":"a49c08e0c394d223","entry":"core_gradient_rbf","repo":"ddrous/updec","repo_kind":"official","path":"updes/operators.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/updes/operators.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a49c08e0c394d223"}},{"code_sha256_prefix":"bc6b70282da387be","entry":"distance","repo":"ddrous/updec","repo_kind":"official","path":"updes/utils.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/updes/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bc6b70282da387be"}},{"code_sha256_prefix":"f54ec2d913dae494","entry":"gaussian","repo":"ddrous/updec","repo_kind":"official","path":"demos/Advection/01_adv_diff_periodic.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Advection/01_adv_diff_periodic.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f54ec2d913dae494"}},{"code_sha256_prefix":"9a0dcd1859911c66","entry":"multiquadric","repo":"ddrous/updec","repo_kind":"official","path":"updes/utils.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/updes/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9a0dcd1859911c66"}},{"code_sha256_prefix":"14f30ab501763a84","entry":"multiquadric_func","repo":"ddrous/updec","repo_kind":"official","path":"updes/utils.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/updes/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"14f30ab501763a84"}},{"code_sha256_prefix":"8fab7325e3325a81","entry":"nodal_value","repo":"ddrous/updec","repo_kind":"official","path":"updes/operators.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/updes/operators.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8fab7325e3325a81"}},{"code_sha256_prefix":"bc6c4810e9496baf","entry":"perm_func","repo":"ddrous/updec","repo_kind":"official","path":"demos/Darcy/00_darcy_flow.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Darcy/00_darcy_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bc6c4810e9496baf"}},{"code_sha256_prefix":"68386e6c41154f34","entry":"my_diff_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Advection/00_advection_with_rbf.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Advection/00_advection_with_rbf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"68386e6c41154f34"}},{"code_sha256_prefix":"504d161e6bec8fa2","entry":"my_diff_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Advection/01_adv_diff_periodic.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Advection/01_adv_diff_periodic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"504d161e6bec8fa2"}},{"code_sha256_prefix":"77210568a447f9c6","entry":"my_diff_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Advection/02_adv_diff_periodic_with_sink.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Advection/02_adv_diff_periodic_with_sink.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"77210568a447f9c6"}},{"code_sha256_prefix":"7409a8363e077d6a","entry":"my_rhs_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Advection/01_adv_diff_periodic.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Advection/01_adv_diff_periodic.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7409a8363e077d6a"}},{"code_sha256_prefix":"f2f203dacedca920","entry":"my_rhs_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Advection/02_adv_diff_periodic_with_sink.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Advection/02_adv_diff_periodic_with_sink.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f2f203dacedca920"}},{"code_sha256_prefix":"ae772b3f88be6dd9","entry":"perm_diff_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Darcy/00_darcy_flow.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Darcy/00_darcy_flow.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ae772b3f88be6dd9"}},{"code_sha256_prefix":"491543b6d442e8e0","entry":"perm_rhs_operator","repo":"ddrous/updec","repo_kind":"official","path":"demos/Darcy/00_darcy_flow.py","file_url":"https://github.com/ddrous/updec/blob/HEAD/demos/Darcy/00_darcy_flow.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"491543b6d442e8e0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}