Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Apr 4, 2024
1 parent 63eb4fd commit d8389d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! .with(a + 2. << b) // or (a + 2).leq(b)
//! .with(1 + a >> 4. - b)
//! .solve()?;
//!
//!
//! # use float_eq::assert_float_eq;
//! assert_float_eq!(solution.value(a), 1., abs <= 1e-8);
//! assert_float_eq!(solution.value(b), 3., abs <= 1e-8);
Expand Down Expand Up @@ -69,6 +69,18 @@ pub use affine_expression_trait::IntoAffineExpression;
pub use cardinality_constraint_solver_trait::CardinalityConstraintSolver;
pub use constraint::Constraint;
pub use expression::Expression;
#[cfg(not(any(
feature = "coin_cbc",
feature = "minilp",
feature = "lpsolve",
feature = "highs",
feature = "scip",
feature = "cplex-rs",
)))]
#[cfg(feature = "clarabel")]
pub use solvers::clarabel::clarabel as default_solver;
#[cfg(feature = "clarabel")]
pub use solvers::clarabel::clarabel;
#[cfg_attr(docsrs, doc(cfg(feature = "coin_cbc")))]
#[cfg(feature = "coin_cbc")]
pub use solvers::coin_cbc::coin_cbc;
Expand Down Expand Up @@ -118,18 +130,6 @@ pub use solvers::scip::scip;
)))]
#[cfg(feature = "scip")]
pub use solvers::scip::scip as default_solver;
#[cfg(not(any(
feature = "coin_cbc",
feature = "minilp",
feature = "lpsolve",
feature = "highs",
feature = "scip",
feature = "cplex-rs",
)))]
#[cfg(feature = "clarabel")]
pub use solvers::clarabel::clarabel as default_solver;
#[cfg(feature = "clarabel")]
pub use solvers::clarabel::clarabel;

pub use solvers::{
solver_name, DualValues, ModelWithSOS1, ResolutionError, Solution, SolutionWithDual, Solver,
Expand Down
2 changes: 1 addition & 1 deletion src/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl ProblemVariables {
/// let solution = problem.optimise(sense, x).using(default_solver).solve().unwrap();
/// solution.value(x)
/// }
///
///
/// # use float_eq::assert_float_eq;
/// assert_float_eq!(solve(ObjectiveDirection::Minimisation), 2., abs<=1e-8);
/// assert_float_eq!(solve(ObjectiveDirection::Maximisation), 3., abs<=1e-8);
Expand Down

0 comments on commit d8389d6

Please sign in to comment.