{"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/computation-of-optimal-transport-and-related","title":"Computation of optimal transport and related hedging problems via penalization and neural networks","arxiv_id":"1802.08539","date":"2018-02-23","proceeding":null,"authors":["Stephan Eckstein","Michael Kupper"],"abstract":"This paper presents a widely applicable approach to solving (multi-marginal,\nmartingale) optimal transport and related problems via neural networks. The\ncore idea is to penalize the optimization problem in its dual formulation and\nreduce it to a finite dimensional one which corresponds to optimizing a neural\nnetwork with smooth objective function. We present numerical examples from\noptimal transport, martingale optimal transport, portfolio optimization under\nuncertainty and generative adversarial networks that showcase the generality\nand effectiveness of the approach.","url_abs":"http://arxiv.org/abs/1802.08539v2","url_pdf":"http://arxiv.org/pdf/1802.08539v2.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":"computation-of-optimal-transport-and-related","repo_url":"https://github.com/stephaneckstein/transport-and-related","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"portfolio-optimization","task_name":"Portfolio Optimization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1802.08539","atlas_url":"https://app.syntology.ai/?focus=1802.08539","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1802.08539"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/stephaneckstein/transport-and-related","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"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":"cc6f3096cfcd3dd1","entry":"build_graph","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"FrechetHoeffding/Figure1.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/FrechetHoeffding/Figure1.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":"cc6f3096cfcd3dd1"}},{"code_sha256_prefix":"e732376ac85a07a3","entry":"build_graph","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"FrechetHoeffding/Table2.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/FrechetHoeffding/Table2.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":"e732376ac85a07a3"}},{"code_sha256_prefix":"d8655afa4ef8ef3f","entry":"build_graph","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"MartingaleOT/Figure2Program.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/MartingaleOT/Figure2Program.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":"d8655afa4ef8ef3f"}},{"code_sha256_prefix":"2c56d76ac1ac9531","entry":"get_inception_score","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"GAN_Toy/tflib/inception_score.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/GAN_Toy/tflib/inception_score.py","link_basis":"harvester_set","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":"2c56d76ac1ac9531"}},{"code_sha256_prefix":"1a0e58d55a9c7df2","entry":"load","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"GAN_Toy/tflib/small_imagenet.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/GAN_Toy/tflib/small_imagenet.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":"1a0e58d55a9c7df2"}},{"code_sha256_prefix":"9e376b4951c6e38c","entry":"make_generator","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"GAN_Toy/tflib/small_imagenet.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/GAN_Toy/tflib/small_imagenet.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":"9e376b4951c6e38c"}},{"code_sha256_prefix":"3e20c78c36a491fb","entry":"mnist_generator","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"GAN_Toy/tflib/mnist.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/GAN_Toy/tflib/mnist.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":"3e20c78c36a491fb"}},{"code_sha256_prefix":"71fc580ec2a0a968","entry":"running_mean","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"FrechetHoeffding/Figure1.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/FrechetHoeffding/Figure1.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":"71fc580ec2a0a968"}},{"code_sha256_prefix":"b6c74db4d8efbff1","entry":"univ_approx","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"FrechetHoeffding/Figure1.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/FrechetHoeffding/Figure1.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":"b6c74db4d8efbff1"}},{"code_sha256_prefix":"07502cb7a311861a","entry":"univ_approx","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"FrechetHoeffding/Table2.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/FrechetHoeffding/Table2.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":"07502cb7a311861a"}},{"code_sha256_prefix":"38cede2489079595","entry":"univ_approx","repo":"stephaneckstein/transport-and-related","repo_kind":"official","path":"MartingaleOT/Figure2Program.py","file_url":"https://github.com/stephaneckstein/transport-and-related/blob/HEAD/MartingaleOT/Figure2Program.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":"38cede2489079595"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}