{"id":42180955,"url":"https://github.com/atraplet/highs4j","last_synced_at":"2026-01-26T22:04:22.805Z","repository":{"id":266846906,"uuid":"899504073","full_name":"atraplet/highs4j","owner":"atraplet","description":"HiGHS Solver for Java","archived":false,"fork":false,"pushed_at":"2025-12-24T11:35:48.000Z","size":231,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T02:09:04.583Z","etag":null,"topics":["convex-optimization","interior-point-method","java","linear-programming","mixed-integer-programming","operations-research","optimization","optimization-algorithms","quadratic-programming","simplex-algorithm"],"latest_commit_sha":null,"homepage":"","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/atraplet.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,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-06T12:02:08.000Z","updated_at":"2025-12-15T18:08:05.000Z","dependencies_parsed_at":"2025-01-02T17:30:50.977Z","dependency_job_id":"2d052312-4470-4dd9-a0dd-f929770e2e5a","html_url":"https://github.com/atraplet/highs4j","commit_stats":null,"previous_names":["atraplet/highs4j"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atraplet/highs4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fhighs4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fhighs4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fhighs4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fhighs4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atraplet","download_url":"https://codeload.github.com/atraplet/highs4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fhighs4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28789721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["convex-optimization","interior-point-method","java","linear-programming","mixed-integer-programming","operations-research","optimization","optimization-algorithms","quadratic-programming","simplex-algorithm"],"created_at":"2026-01-26T22:03:35.119Z","updated_at":"2026-01-26T22:04:22.766Z","avatar_url":"https://github.com/atraplet.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HiGHS Solver for Java\n\n*Work in progress*\n\n[![Build](https://github.com/atraplet/highs4j/actions/workflows/build.yml/badge.svg)](https://github.com/atraplet/highs4j/actions/workflows/build.yml)\n[![Codecov](https://codecov.io/github/atraplet/highs4j/graph/badge.svg?token=H3EN61962F)](https://codecov.io/github/atraplet/highs4j)\n[![Maven Central](https://img.shields.io/maven-central/v/com.ustermetrics/highs4j)](https://central.sonatype.com/artifact/com.ustermetrics/highs4j)\n[![Apache License, Version 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/atraplet/highs4j/blob/master/LICENSE)\n\n*This library requires JDK 23 as it depends on\nJava's [Foreign Function and Memory (FFM) API](https://docs.oracle.com/en/java/javase/23/core/foreign-function-and-memory-api.html).*\n\nhighs4j (HiGHS Solver for Java) is a Java library that provides an interface from the Java programming language to\nthe native open source mathematical programming solver [HiGHS](https://ergo-code.github.io/HiGHS). It invokes the solver\nthrough\nJava's [Foreign Function and Memory (FFM) API](https://docs.oracle.com/en/java/javase/23/core/foreign-function-and-memory-api.html).\n\n## Usage\n\n### Dependency\n\nAdd the latest version from [Maven Central](https://central.sonatype.com/artifact/com.ustermetrics/highs4j) to\nyour `pom.xml`\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ustermetrics\u003c/groupId\u003e\n    \u003cartifactId\u003ehighs4j\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Native Library\n\nEither add the latest version of [highs4j-native](https://github.com/atraplet/highs4j-native)\nfrom [Maven Central](https://central.sonatype.com/artifact/com.ustermetrics/highs4j-native) to\nyour `pom.xml`\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ustermetrics\u003c/groupId\u003e\n    \u003cartifactId\u003ehighs4j-native\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nor install the native solver on the machine and add the location to the `java.library.path`. highs4j dynamically\nloads the native solver.\n\n### Run Code\n\nSince highs4j invokes some restricted methods of the FFM API,\nuse `--enable-native-access=com.ustermetrics.highs4j` or `--enable-native-access=ALL-UNNAMED` (if you are not using\nthe Java Platform Module System) to avoid warnings from the Java runtime.\n\n## Build\n\n### Java bindings\n\nThe directory `./bindings` contains the files and scripts needed to generate the Java bindings. The actual bindings are\nunder `./src/main/java` in the package `com.ustermetrics.highs4j.bindings`.\n\nThe scripts depend on the [jextract](https://jdk.java.net/jextract/) tool, which mechanically generates Java bindings\nfrom native library headers.\n\nThe bindings are generated in two steps: First, `./bindings/generate_includes.sh` generates the dumps of the included\nsymbols in the `includes.txt` file. Replace absolute platform dependent path with relative platform independent path in\nthe comments. Remove unused includes. Second, `./bindings/generate_bindings.sh` generates the actual Java bindings.\nAdd `NativeLoader.loadLibrary.` Remove platform dependent layout constants and make the code platform independent.\n\n## Release\n\nUpdate the version in the `pom.xml`, create a tag, and push it by running\n\n```\nexport VERSION=X.Y.Z\ngit checkout --detach HEAD\nsed -i -E \"s/\u003cversion\u003e[0-9]+\\-SNAPSHOT\u003c\\/version\u003e/\u003cversion\u003e$VERSION\u003c\\/version\u003e/g\" pom.xml\ngit commit -m \"v$VERSION\" pom.xml\ngit tag v$VERSION\ngit push origin v$VERSION\n```\n\nThis will trigger the upload of the package to Maven Central via GitHub Actions.\n\nThen, go to the GitHub repository [releases page](https://github.com/atraplet/highs4j/releases) and update the\nrelease.\n\n## Credits\n\nThis project is based on the native open source mathematical programming\nsolver [HiGHS](https://ergo-code.github.io/HiGHS), which is developed and maintained by Julian Hall, Ivet Galabova, Qi\nHuangfu, Leona Gottwald, Michael Feldmeier, and other contributors. For details see https://ergo-code.github.io/HiGHS\nand https://github.com/ERGO-Code/HiGHS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatraplet%2Fhighs4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatraplet%2Fhighs4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatraplet%2Fhighs4j/lists"}