{"id":26124739,"url":"https://github.com/ampl/ampls-api","last_synced_at":"2025-10-13T17:40:58.841Z","repository":{"id":46082259,"uuid":"220265248","full_name":"ampl/ampls-api","owner":"ampl","description":"AMPL Solver APIs","archived":false,"fork":false,"pushed_at":"2025-02-27T17:55:56.000Z","size":8787,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-25T12:34:48.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ampls.readthedocs.io","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ampl.png","metadata":{"files":{"readme":"README.md","changelog":"changes.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/cmake/CopyListOfFiles.cmake","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-07T15:13:21.000Z","updated_at":"2025-06-16T08:56:08.000Z","dependencies_parsed_at":"2024-11-07T15:27:06.582Z","dependency_job_id":"c1bbb074-90c6-4481-9f04-3547e441f08b","html_url":"https://github.com/ampl/ampls-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ampl/ampls-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampl%2Fampls-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampl%2Fampls-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampl%2Fampls-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampl%2Fampls-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ampl","download_url":"https://codeload.github.com/ampl/ampls-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampl%2Fampls-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016370,"owners_count":26085828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-10T16:50:01.117Z","updated_at":"2025-10-13T17:40:58.808Z","avatar_url":"https://github.com/ampl.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AMPLS-API\n\n[![Build Status](https://dev.azure.com/ampldev/ampls-api/_apis/build/status/ampl.ampls-api?branchName=master)](https://dev.azure.com/ampldev/ampls-api/_build/latest?definitionId=9\u0026branchName=master)\n\nAMPLS-API is an open source set of lightweight interfaces between AMPL and solvers, which allow:\n\n- Read in an AMPL model instance from an `NL` file\n- Write out the solution as a `sol` file, ready to be imported by AMPL\n- A choice between:\n   - Use of all the solver's capabilities, using its own C API functionalities\n   - Use of a (provided) generic interface, that encapsulates the most common \n     functionalities of the solver interfaces, permitting hassle-free solver swap\n- Usage of existing AMPL licenses, when used together with the AMPL drivers\n\nThe interfaces are available for multiple languages; the core is written in C++ and it is wrapped using\n[swig](https://www.swig.org) to other target languages. \n\n## Documentation\n\n- https://ampls.readthedocs.io/\n\n## Solvers\n\n- Gurobi\n- CPLEX\n- XPRESS \n- Copt\n\n## Languages\n\n### Python\n\n#### Examples\n\n- Example: [Jupyter Notebook with TSP Example](python/examples/notebooks/tsp_simple_cuts_generic.ipynb)\n\n- More examples:\n  - [python/examples/](python/examples/)\n  - [python/examples/notebooks/](python/examples/notebooks/)\n\n#### Repositories\n\n- PyPI Repository for amplpy-gurobi: https://pypi.python.org/pypi/amplpy-gurobi\n- PyPI Repository for amplpy-cplex: https://pypi.python.org/pypi/amplpy-cplex\n\n#### Setup\n\n##### PyPI\n\nInstall from the PyPI repositories:\n```\n$ python -m pip install amplpy-gurobi amplpy-cplex\n```\n\nNote: For Windows, Linux, and macOS, the python packages come with binary wheels for many Python versions and platforms. Please make sure that you are using the latest version of `pip` before installing them (upgrade using `pip install pip --upgrade` or `python -m pip install pip --upgrade`). If a binary wheel for your platform or python version is not available, a C++ compiler and python development libraries will be required.\n\n## License\n\nBSD-3\n\n***\nCopyright © 2020-2021 AMPL Optimization inc. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampl%2Fampls-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampl%2Fampls-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampl%2Fampls-api/lists"}