oximo 0.6.0

A Rust algebraic modeling library for solving optimization problems
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "oximo"
version = "0.6.0"
authors = ["Germán Martín Heim <german.martin.heim@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust algebraic modeling library for solving optimization problems"
readme = "README.md"
keywords = [
    "optimization",
    "math",
    "science",
]
categories = [
    "mathematics",
    "science",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/oximo-rs/oximo"

[package.metadata.docs.rs]
features = [
    "highs",
    "gams",
    "baron",
    "clarabel",
    "clarabel-faer",
    "pounce",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
_benchmark-enzyme = [
    "_benchmark-support",
    "dep:oximo-autodiff",
    "oximo-autodiff/benchmark-support",
    "oximo-autodiff/enzyme",
]
_benchmark-proprietary = [
    "_benchmark-support",
    "gurobi",
    "mosek",
    "oximo-gurobi/benchmark-support",
    "oximo-mosek/benchmark-support",
]
_benchmark-support = [
    "dep:criterion",
    "dep:rayon",
    "highs",
    "io",
    "gams",
    "baron",
    "clarabel",
    "pounce",
    "oximo-core/benchmark-support",
    "oximo-highs/benchmark-support",
    "oximo-io/benchmark-support",
    "oximo-gams/benchmark-support",
    "oximo-baron/benchmark-support",
    "oximo-clarabel/benchmark-support",
    "oximo-pounce/benchmark-support",
]
baron = ["dep:oximo-baron"]
clarabel = ["dep:oximo-clarabel"]
clarabel-faer = [
    "clarabel",
    "oximo-clarabel/faer",
]
default = ["io"]
gams = ["dep:oximo-gams"]
gurobi = ["dep:oximo-gurobi"]
highs = ["dep:oximo-highs"]
io = ["dep:oximo-io"]
mosek = ["dep:oximo-mosek"]
pounce = ["dep:oximo-pounce"]
pounce-enzyme = [
    "pounce",
    "oximo-pounce/enzyme",
]

[lib]
name = "oximo"
path = "src/lib.rs"

[[example]]
name = "baron_robot"
path = "examples/baron_robot.rs"
doc-scrape-examples = false

[[example]]
name = "gradostat_multiperiod_socp"
path = "examples/gradostat_multiperiod_socp.rs"

[[example]]
name = "lot_sizing"
path = "examples/lot_sizing.rs"

[[example]]
name = "parametric_pricing"
path = "examples/parametric_pricing.rs"
required-features = ["highs"]

[[example]]
name = "pounce_alkylation"
path = "examples/pounce_alkylation.rs"

[[example]]
name = "process_selection"
path = "examples/process_selection.rs"

[[example]]
name = "reaction_path"
path = "examples/reaction_path.rs"

[[example]]
name = "resource_investment_scheduling"
path = "examples/resource_investment_scheduling.rs"
required-features = ["highs"]

[[example]]
name = "transport"
path = "examples/transport.rs"
required-features = ["highs"]

[[test]]
name = "display"
path = "tests/display.rs"

[[test]]
name = "solve"
path = "tests/solve.rs"
required-features = ["highs"]

[[test]]
name = "solve_baron"
path = "tests/solve_baron.rs"

[[test]]
name = "solve_clarabel"
path = "tests/solve_clarabel.rs"

[[test]]
name = "solve_gams"
path = "tests/solve_gams.rs"

[[test]]
name = "solve_gurobi"
path = "tests/solve_gurobi.rs"

[[test]]
name = "solve_mosek"
path = "tests/solve_mosek.rs"

[[test]]
name = "solve_pounce"
path = "tests/solve_pounce.rs"

[[bench]]
name = "preprocessing"
path = "benches/preprocessing.rs"
harness = false
required-features = ["_benchmark-support"]

[dependencies.criterion]
version = "0.8"
optional = true

[dependencies.oximo-autodiff]
version = "0.6.0"
optional = true

[dependencies.oximo-baron]
version = "0.6.0"
optional = true

[dependencies.oximo-clarabel]
version = "0.6.0"
optional = true

[dependencies.oximo-core]
version = "0.6.0"

[dependencies.oximo-expr]
version = "0.6.0"

[dependencies.oximo-gams]
version = "0.6.0"
optional = true

[dependencies.oximo-gurobi]
version = "0.6.0"
optional = true

[dependencies.oximo-highs]
version = "0.6.0"
optional = true

[dependencies.oximo-io]
version = "0.6.0"
optional = true

[dependencies.oximo-mosek]
version = "0.6.0"
optional = true

[dependencies.oximo-pounce]
version = "0.6.0"
optional = true

[dependencies.oximo-solver]
version = "0.6.0"

[dependencies.rayon]
version = "1.12"
optional = true

[lints.clippy]
doc_markdown = "allow"
elidable_lifetime_names = "allow"
items_after_statements = "allow"
missing_fields_in_debug = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_lifetimes = "allow"
needless_pass_by_value = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
unnecessary_literal_bound = "allow"
upper_case_acronyms = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "deny"