{"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/mpax-mathematical-programming-in-jax","title":"MPAX: Mathematical Programming in JAX","arxiv_id":"2412.09734","date":"2024-12-12","proceeding":null,"authors":["Haihao Lu","Zedong Peng","Jinwen Yang"],"abstract":"This paper presents MPAX (Mathematical Programming in JAX), a versatile and efficient toolbox for integrating linear programming (LP) into machine learning workflows. MPAX implemented the state-of-the-art first-order methods, restarted average primal-dual hybrid gradient and reflected restarted Halpern primal-dual hybrid gradient, to solve LPs in JAX. This provides native support for hardware accelerations along with features like batch solving, auto-differentiation, and device parallelism. Extensive numerical experiments demonstrate the advantages of MPAX over existing solvers. The solver is available at https://github.com/MIT-Lu-Lab/MPAX.","url_abs":"https://arxiv.org/abs/2412.09734v2","url_pdf":"https://arxiv.org/pdf/2412.09734v2.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":"mpax-mathematical-programming-in-jax","repo_url":"https://github.com/mit-lu-lab/mpax","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2412.09734","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2412.09734"}},"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/mit-lu-lab/mpax","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"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":"58f58ab6a4e2cb01","entry":"compute_dual_objective","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/iteration_stats_utils.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/iteration_stats_utils.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":"58f58ab6a4e2cb01"}},{"code_sha256_prefix":"da1956a72830acc8","entry":"compute_primal_residual_constraint","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/iteration_stats_utils.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/iteration_stats_utils.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":"da1956a72830acc8"}},{"code_sha256_prefix":"dd0b2c0fc9d868a6","entry":"compute_reduced_costs_from_primal_gradient","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/iteration_stats_utils.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/iteration_stats_utils.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":"dd0b2c0fc9d868a6"}},{"code_sha256_prefix":"72a164ccb4b124a2","entry":"get_col_l2_norms","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/solver_log.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/solver_log.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":"72a164ccb4b124a2"}},{"code_sha256_prefix":"f3fdb36f75a5cec8","entry":"get_row_l2_norms","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/solver_log.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/solver_log.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":"f3fdb36f75a5cec8"}},{"code_sha256_prefix":"0cfab9977cda6fb9","entry":"get_row_l_inf_norms","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/solver_log.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/solver_log.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":"0cfab9977cda6fb9"}},{"code_sha256_prefix":"6af3de844b47c59d","entry":"primal_infeasibility_criteria_met","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/termination.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/termination.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":"6af3de844b47c59d"}},{"code_sha256_prefix":"a9589aec08506834","entry":"set_dual_solution_to_zero","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/feasibility_polishing.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/feasibility_polishing.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":"a9589aec08506834"}},{"code_sha256_prefix":"0a7d7bc78139975c","entry":"transform_to_bcoo","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/mp_io.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/mp_io.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":"0a7d7bc78139975c"}},{"code_sha256_prefix":"d8610b208af06287","entry":"transform_to_jnp_array","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/mp_io.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/mp_io.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":"d8610b208af06287"}},{"code_sha256_prefix":"f0f48991b8dae33e","entry":"weighted_norm","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/restart.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/restart.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":"f0f48991b8dae33e"}},{"code_sha256_prefix":"77406568f0545873","entry":"while_loop","repo":"mit-lu-lab/mpax","repo_kind":"official","path":"mpax/loop_utils.py","file_url":"https://github.com/mit-lu-lab/mpax/blob/HEAD/mpax/loop_utils.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":"77406568f0545873"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}