{"id":22432111,"url":"https://github.com/normalhuman01/cplex-implementation","last_synced_at":"2025-03-27T07:41:28.559Z","repository":{"id":217542994,"uuid":"744168457","full_name":"normalhuman01/cplex-implementation","owner":"normalhuman01","description":"a simple solving a tsp with cplex c++ api ","archived":false,"fork":false,"pushed_at":"2024-01-16T19:56:44.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:45:25.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/normalhuman01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-16T18:53:33.000Z","updated_at":"2024-01-16T19:07:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e135c49-2bbd-425d-85f2-cf0ef742b720","html_url":"https://github.com/normalhuman01/cplex-implementation","commit_stats":null,"previous_names":["normalhuman01/cplex-implementation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fcplex-implementation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fcplex-implementation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fcplex-implementation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fcplex-implementation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/normalhuman01","download_url":"https://codeload.github.com/normalhuman01/cplex-implementation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245805986,"owners_count":20675291,"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","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":"2024-12-05T22:10:37.870Z","updated_at":"2025-03-27T07:41:28.552Z","avatar_url":"https://github.com/normalhuman01.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Small CPLEX C++ API tutorial\n\n## Prerequisites\n\n* CPLEX must be installed, of course. Academics can obtain it via the [IBM Academic Initiative](https://developer.ibm.com/academic/).\n* You also need a modern version of GCC, that supports at least [C++14](https://en.wikipedia.org/wiki/C++14).\n\n## Compile and run\n\n* Get the code: `git clone https://github.com/normalhuman01/cplex-implementation.git`.\n* Move to the new directory: `cd cplex-implementation`.\n* Create a build directory: `mkdir build`.\n* Move to the build directory: `cd build`.\n* Run cmake: `cmake -DCPLEX_ROOT_DIR=\u003c/path/to/ilog\u003e -DCMAKE_BUILD_TYPE=Debug ..`.\n  * The path to your CPLEX installation must be such that `\u003c/path/to/ilog\u003e/cplex/include/ilcplex/cplex.h` exists.\n  * If your compiler is in a non-standard location, you can use `-DCMAKE_CXX_COMPILER=\u003c/path/to/compiler\u003e`.\n  * Change `Debug` into `Release` if you want to compile in release mode.\n* Run make: `make`.\n* Run the executable: `./cplex_implementation`.\n\n## Structure\n\nThe `Graph` class (`src/graph.h`) is a minimal description of a graph; it only stores the number of nodes and the distance matrix. The graph is created randomly, with nodes lying on a plane and euclidean distances. The `Solver` class (`src/solver.h`) does all the CPLEX magic: it builds the model, it solves it, and it prints the solution.\n\n## License\n\nThe present work is distributed under the terms of ghe GNU General Public License v3 (see the `LICENSE` file).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Fcplex-implementation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormalhuman01%2Fcplex-implementation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Fcplex-implementation/lists"}