{"id":31766127,"url":"https://github.com/ibmdecisionoptimization/cplex-java-worker","last_synced_at":"2025-10-10T00:29:27.791Z","repository":{"id":113738590,"uuid":"593997385","full_name":"IBMDecisionOptimization/cplex-java-worker","owner":"IBMDecisionOptimization","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-20T14:34:02.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-06-21T07:47:01.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IBMDecisionOptimization.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":"2023-01-27T10:55:35.000Z","updated_at":"2024-06-20T14:34:06.000Z","dependencies_parsed_at":"2023-11-29T18:28:54.330Z","dependency_job_id":"959997a2-eb1f-43d0-9ba1-0d534bd56c9a","html_url":"https://github.com/IBMDecisionOptimization/cplex-java-worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IBMDecisionOptimization/cplex-java-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMDecisionOptimization%2Fcplex-java-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMDecisionOptimization%2Fcplex-java-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMDecisionOptimization%2Fcplex-java-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMDecisionOptimization%2Fcplex-java-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IBMDecisionOptimization","download_url":"https://codeload.github.com/IBMDecisionOptimization/cplex-java-worker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBMDecisionOptimization%2Fcplex-java-worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002359,"owners_count":26083356,"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-09T02:00:07.460Z","response_time":59,"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-10-10T00:29:06.357Z","updated_at":"2025-10-10T00:29:27.787Z","avatar_url":"https://github.com/IBMDecisionOptimization.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cplex-java-worker\n\nThis project demonstrates the development, testing, deployment and verification of a Decision Optimization Java worker in Watson Machine Learning in the following products:\n* Cloud Pak for Data as a Service,\n* Watsonx.ai,\n* Cloud Pak for Data 4.8.x or later.\n\n## 1. Install the development environment:\n  - [Install JAVA 17 JDK](https://developer.ibm.com/languages/java/semeru-runtimes/downloads).\n  - [Install Apache Maven](https://maven.apache.org/install.html) for mvn command.\n  - [Install Conda or any Python](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html) and add the Python executable file name to your PATH.\n  - [Install IBM watsonx.ai Python client](https://ibm.github.io/watsonx-ai-python-sdk/install.html) with `pip install ibm-watsonx-ai`.\n  - [Install IBM ILOG CPLEX Optimization Studio](https://www.ibm.com/products/ilog-cplex-optimization-studio) (The compilation and modeling can be done with the [Community Edition of CPLEX](https://www.ibm.com/account/reg/us-en/signup?formid=urx-20028) that is freely available.)\n\n## 2. Set up the development environment:\nThis section describes how you will configure your maven pom.xml and settings.\n-  Set up the cplex_version property that you target in the pom.xml file and install the corresponding CPLEX or CP jar in your local maven repository. For example, if you target `cplex_version=22.1`, to install the cplex-jar in your maven local repository, use the following command: \n```\nmvn install:install-file \"-Dfile=%CPLEX_STUDIO_DIR%\\cplex\\lib\\cplex.jar\" -DgroupId=com.ibm.ilog.optim -DartifactId=cplex-jar -Dversion=22.1 -Dpackaging=jar\n```\nand to install the cpo-jar in your maven local repository:\n```\nmvn install:install-file \"-Dfile=%CPLEX_STUDIO_DIR%\\cpoptimizer\\lib\\ILOG.CP.jar\" -DgroupId=com.ibm.ilog.optim -DartifactId=cpo-jar -Dversion=22.1 -Dpackaging=jar\n```\n  - Accordingly, set up the cplex_library_path property to target the CPLEX or CPO native library for your OS.\n  - Now you can execute the commands `mvn compile` or `mvn test` in your project directory.\n\n## 3. Set up your integration test environment:\nIf you want to verify the deployment to a Watson Machine Learning cluster, you must specify the Watson Machine Learning environment that you want to target during your tests.\n  - Update the profiles in your pom.xml or settings.xml file for your needs ([environment authentication details](https://ibm.github.io/watsonx-ai-python-sdk/setup.html)):\n```\n\t\u003cprofiles\u003e\n\t\t\u003cprofile\u003e\n\t\t\t\u003cid\u003ewml_test_environment_cloud\u003c/id\u003e\n\t\t\t\u003cproperties\u003e\n\t\t\t\t\u003cwml_location\u003eCLOUD_WML_CLUSTER\u003c/wml_location\u003e\n\t\t\t\t\u003cwml_api_key\u003eMY_APY_KEY\u003c/wml_api_key\u003e\n\t\t\t\t\u003cwml_space_id\u003eMY_SPACE_ID\u003c/wml_space_id\u003e\n\t\t\t\t\u003cwml_deployment_size\u003eS\u003c/wml_deployment_size\u003e\n\t\t\t\u003c/properties\u003e\n\t\t\u003c/profile\u003e\n\t\t\u003cprofile\u003e\n\t\t\t\u003cid\u003ewml_test_environment_cp4d\u003c/id\u003e\n\t\t\t\u003cproperties\u003e\n\t\t\t\t\u003cwml_location\u003eCP4D_WML_CLUSTER\u003c/wml_location\u003e\n\t\t\t\t\u003cwml_username\u003eMY_USERNAME\u003c/wml_username\u003e\n\t\t\t\t\u003cwml_password\u003eMY_PASSOWRD\u003c/wml_password\u003e\n\t\t\t\t\u003cwml_space_id\u003eMY_SPACE_ID\u003c/wml_space_id\u003e\n\t\t\t\t\u003cwml_deployment_size\u003eS\u003c/wml_deployment_size\u003e\n\t\t\t\u003c/properties\u003e\n\t\t\u003c/profile\u003e\n\t\u003c/profiles\u003e\n ```\n  - Now you can execute the commands `mvn -P \u003cprofile_name\u003e verify` or `mvn -P \u003cprofile_name\u003e install` in your project, where `\u003cprofile_name\u003e` is `wml_test_environment_cloud` or `wml_test_environment_cp4d`.\n \n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibmdecisionoptimization%2Fcplex-java-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibmdecisionoptimization%2Fcplex-java-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibmdecisionoptimization%2Fcplex-java-worker/lists"}