Skip to content

Add Rust bindings #559

@calcmogul

Description

@calcmogul

This would make it possible for Choreo to call the solver directly in Tauri.

Use Jormungandr as a reference for what to bind. Instead of NumPy, use nalgebra.

We need to be able to overload the math operators (see https://doc.rust-lang.org/core/ops/) for various combinations of:

  • double
  • int
  • Variable
  • VariableMatrix
  • VariableBlock

We also need to overload the equality operator to return a constraint object instead of bool; and overload the comparison operators to return a constraint object instead of Ordering. If that's not possible, provide the following:

  • Constraints::eq(lhs, rhs)
  • Constraints::lt(lhs, rhs)
  • Constraints::le(lhs, rhs)
  • Constraints::gt(lhs, rhs)
  • Constraints::ge(lhs, rhs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions