{"id":35205558,"url":"https://github.com/atraplet/clarabel4j","last_synced_at":"2026-04-07T19:31:17.748Z","repository":{"id":249396001,"uuid":"831404268","full_name":"atraplet/clarabel4j","owner":"atraplet","description":"Clarabel Solver for Java","archived":false,"fork":false,"pushed_at":"2026-03-15T12:22:01.000Z","size":207,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-15T23:55:50.133Z","etag":null,"topics":["conic-optimization","conic-programs","convex-optimization","interior-point-method","java","linear-programming","operations-research","optimization","optimization-algorithms","quadratic-programming","semidefinite-programming"],"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-07-20T13:00:50.000Z","updated_at":"2026-03-15T12:22:04.000Z","dependencies_parsed_at":"2024-10-27T12:23:35.366Z","dependency_job_id":"942604c4-c2a4-4e7f-809f-157b566bc39a","html_url":"https://github.com/atraplet/clarabel4j","commit_stats":null,"previous_names":["atraplet/clarabel4j"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/atraplet/clarabel4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fclarabel4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fclarabel4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fclarabel4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fclarabel4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atraplet","download_url":"https://codeload.github.com/atraplet/clarabel4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atraplet%2Fclarabel4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31526665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["conic-optimization","conic-programs","convex-optimization","interior-point-method","java","linear-programming","operations-research","optimization","optimization-algorithms","quadratic-programming","semidefinite-programming"],"created_at":"2025-12-29T13:43:48.353Z","updated_at":"2026-04-07T19:31:17.742Z","avatar_url":"https://github.com/atraplet.png","language":"Java","readme":"# Clarabel Solver for Java\n\n[![Build](https://github.com/atraplet/clarabel4j/actions/workflows/build.yml/badge.svg)](https://github.com/atraplet/clarabel4j/actions/workflows/build.yml)\n[![Codecov](https://codecov.io/github/atraplet/clarabel4j/graph/badge.svg?token=S8TXRQ4UAZ)](https://codecov.io/github/atraplet/clarabel4j)\n[![Maven Central](https://img.shields.io/maven-central/v/com.ustermetrics/clarabel4j)](https://central.sonatype.com/artifact/com.ustermetrics/clarabel4j)\n[![Apache License, Version 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/atraplet/clarabel4j/blob/master/LICENSE)\n\n*This library requires JDK 25 or later.*\n\nclarabel4j (Clarabel Solver for Java) is a Java library that provides an interface from the Java programming language to\nthe native open source mathematical programming solver [Clarabel](https://clarabel.org). It invokes the solver through\nJava's [Foreign Function and Memory (FFM) API](https://docs.oracle.com/en/java/javase/25/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/clarabel4j) to\nyour `pom.xml`\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ustermetrics\u003c/groupId\u003e\n    \u003cartifactId\u003eclarabel4j\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 [clarabel4j-native](https://github.com/atraplet/clarabel4j-native)\nfrom [Maven Central](https://central.sonatype.com/artifact/com.ustermetrics/clarabel4j-native) to your `pom.xml`\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ustermetrics\u003c/groupId\u003e\n    \u003cartifactId\u003eclarabel4j-native\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n    \u003cclassifier\u003eplatform\u003c/classifier\u003e\n    \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nwhere `x.y.z` is the version of the library and `platform` is one of `linux_64`, `windows_64`, or `osx_arm64`. If no\n`classifier` is specified, binaries for all platforms are included.\n\nOr alternatively install the native solver on the machine and add the location to the `java.library.path`. clarabel4j\ndynamically loads the native solver.\n\n### Run Code\n\nSince clarabel4j invokes some restricted methods of the FFM API,\nuse `--enable-native-access=com.ustermetrics.clarabel4j --enable-native-access=org.scijava.nativelib` or\n`--enable-native-access=ALL-UNNAMED` (if you are not using the Java Platform Module System) to avoid warnings from the\nJava runtime.\n\n## Build\n\n### Java bindings\n\nThe directory `./bindings` contains the Bash script `generate.sh` needed to generate the Java bindings. The actual\nbindings are under `./src/main/java` in the package `com.ustermetrics.clarabel4j.bindings`.\n\nThe script depends on the [jextract](https://jdk.java.net/jextract/) tool, which mechanically generates the bindings\nfrom native library headers.\n\nThe bindings are generated in two steps: First, `./bindings/generate.sh --dump-includes` generates the dump of the\nincluded symbols in the `includes.txt` file. Second, `./bindings/generate.sh` generates the actual bindings. After\ngenerating the bindings, update the code to load the native library using `NativeLoader.loadLibrary` and remove any\nplatform-specific binding code.\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/clarabel4j/releases) and update the\nrelease.\n\n## Credits\n\nThis project is based on the native open source mathematical programming\nsolver [Clarabel](https://clarabel.org), which is developed and maintained by Paul Goulart (main development, maths and\nalgorithms) and Yuwen Chen (maths and algorithms) from the [Oxford Control Group](http://www.eng.ox.ac.uk/control) of\nthe Department of Engineering Science at the University of Oxford, and other contributors. For details\nsee https://clarabel.org, https://github.com/oxfordcontrol/Clarabel.rs,\nand https://github.com/oxfordcontrol/Clarabel.cpp.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatraplet%2Fclarabel4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatraplet%2Fclarabel4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatraplet%2Fclarabel4j/lists"}