pub struct InteriorPointSolver { /* private fields */ }Expand description
Interior point solver for linear programming.
Solves LP in standard form: minimize c^T x subject to Ax = b x >= 0
Implementations§
Source§impl InteriorPointSolver
impl InteriorPointSolver
Sourcepub fn new(c: Vector, a: Matrix, b: Vector) -> Self
pub fn new(c: Vector, a: Matrix, b: Vector) -> Self
Create a new interior point solver.
§Arguments
c- Objective function coefficients (n-vector)a- Constraint matrix (m×n)b- Right-hand side (m-vector)
Sourcepub fn set_tolerance(&mut self, tol: Rational64)
pub fn set_tolerance(&mut self, tol: Rational64)
Set the convergence tolerance.
Sourcepub fn set_max_iterations(&mut self, max_iter: usize)
pub fn set_max_iterations(&mut self, max_iter: usize)
Set the maximum number of iterations.
Auto Trait Implementations§
impl Freeze for InteriorPointSolver
impl RefUnwindSafe for InteriorPointSolver
impl Send for InteriorPointSolver
impl Sync for InteriorPointSolver
impl Unpin for InteriorPointSolver
impl UnsafeUnpin for InteriorPointSolver
impl UnwindSafe for InteriorPointSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more