Apache License 2.0

项目介绍

oxfordcontrol/Clarabel.rs 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前获得 622 个 Star、59 次 Fork。

仓库全名
oxfordcontrol/Clarabel.rs
开源许可证
Apache License 2.0
Star 数
622
Fork 数
59
未关闭 Issue
51

README 摘要

Interior Point Conic Optimization for Rust and Python Features • Installation • License • Documentation Clarabel.rs is a Rust implementation of an interior point numerical solver for convex optimization problems using a novel homogeneous embedding. Clarabel.rs solves the following problem: $$ \begin{array}{r} \text{minimize} & \frac{1}{2}x^T P x + q^T x\\\\[2ex] \text{subject to} & Ax + s = b \\\\[1ex] & s \in…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Clarabel.rs 用什么语言开发?

主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前有 622 个 Star。

Clarabel.rs 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Clarabel.rs 的源码?

可以直接克隆仓库:git clone https://github.com/oxfordcontrol/Clarabel.rs.git,默认分支为 main;安装与运行步骤见仓库 README。

Clarabel.rs 最近还在维护吗?

仓库最近一次更新为 4月13日,当前有 51 个未关闭 Issue;Star 数为 622,可作为社区活跃度的参考。

关于

Clarabel.rs: Interior-point solver for convex conic optimisation problems in Rust.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

HTML
Julia
Python
Rust

Release

README

Clarabel.jl logo

Interior Point Conic Optimization for Rust and Python

Features • Installation • License • Documentation

Clarabel.rs is a Rust implementation of an interior point numerical solver for convex optimization problems using a novel homogeneous embedding. Clarabel.rs solves the following problem:

$$ \begin{array}{r} \text{minimize} & \frac{1}{2}x^T P x + q^T x\\[2ex] \text{subject to} & Ax + s = b \\[1ex] & s \in \mathcal{K} \end{array} $$

with decision variables $x \in \mathbb{R}^n$, $s \in \mathbb{R}^m$ and data matrices $P=P^\top \succeq 0$, $q \in \mathbb{R}^n$, $A \in \mathbb{R}^{m \times n}$, and $b \in \mathbb{R}^m$. The convex set $\mathcal{K}$ is a composition of convex cones.

For more information see the Clarabel Documentation (stable | dev).

Clarabel is also available in a Julia implementation. See here.

Features

  • Versatile: Clarabel.rs solves linear programs (LPs), quadratic programs (QPs), second-order cone programs (SOCPs) and semidefinite programs (SDPs). It also solves problems with exponential, power cone and generalized power cone constraints.
  • Quadratic objectives: Unlike interior point solvers based on the standard homogeneous self-dual embedding (HSDE), Clarabel.rs handles quadratic objectives without requiring any epigraphical reformulation of the objective. It can therefore be significantly faster than other HSDE-based solvers for problems with quadratic objective functions.
  • Infeasibility detection: Infeasible problems are detected using a homogeneous embedding technique.
  • Open Source: Our code is available on GitHub and distributed under the Apache 2.0 License

Installation

Clarabel can be imported to Cargo based Rust projects by adding

[dependencies]
clarabel = "0"  

to the project’s Cargo.toml file. To install from source, see the Rust Installation Documentation.

To use the Python interface to the solver:

pip install clarabel

To install the Python interface from source, see the Python Installation Documentation.

Citing

@misc{Clarabel_2024,
      title={Clarabel: An interior-point solver for conic programs with quadratic objectives}, 
      author={Paul J. Goulart and Yuwen Chen},
      year={2024},
      eprint={2405.12762},
      archivePrefix={arXiv},
      primaryClass={math.OC}
}

License 🔍

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details.

评论

暂无评论