pub struct TropicalOptimizer<T: Float> { /* private fields */ }Expand description
Tropical optimization solver
Implementations§
Source§impl<T: Float> TropicalOptimizer<T>
impl<T: Float> TropicalOptimizer<T>
Sourcepub fn new(config: TropicalConfig<T>) -> Self
pub fn new(config: TropicalConfig<T>) -> Self
Create a new tropical optimizer
Sourcepub fn with_default_config() -> Self
pub fn with_default_config() -> Self
Create optimizer with default configuration
Sourcepub fn solve_tropical_linear_program(
&self,
objective: &[TropicalNumber<T>],
_constraint_matrix: &TropicalMatrix<T>,
_constraint_rhs: &[TropicalNumber<T>],
) -> OptimizationResult<TropicalResult<T>>
pub fn solve_tropical_linear_program( &self, objective: &[TropicalNumber<T>], _constraint_matrix: &TropicalMatrix<T>, _constraint_rhs: &[TropicalNumber<T>], ) -> OptimizationResult<TropicalResult<T>>
Solve tropical linear programming problem: minimize cᵀx subject to Ax ⊕ b = 0
Sourcepub fn solve_tropical_eigenvalue(
&self,
matrix: &TropicalMatrix<T>,
) -> OptimizationResult<TropicalResult<T>>
pub fn solve_tropical_eigenvalue( &self, matrix: &TropicalMatrix<T>, ) -> OptimizationResult<TropicalResult<T>>
Solve tropical eigenvalue problem: Ax = λx in tropical algebra
Sourcepub fn solve_tropical_convex(
&self,
objective: &impl TropicalObjective<T>,
initial_point: Vec<TropicalNumber<T>>,
) -> OptimizationResult<TropicalResult<T>>
pub fn solve_tropical_convex( &self, objective: &impl TropicalObjective<T>, initial_point: Vec<TropicalNumber<T>>, ) -> OptimizationResult<TropicalResult<T>>
Solve tropical convex optimization problem
Sourcepub fn solve_shortest_path(
&self,
distance_matrix: &TropicalMatrix<T>,
source: usize,
target: usize,
) -> OptimizationResult<TropicalResult<T>>
pub fn solve_shortest_path( &self, distance_matrix: &TropicalMatrix<T>, source: usize, target: usize, ) -> OptimizationResult<TropicalResult<T>>
Solve shortest path problem using tropical optimization
Trait Implementations§
Source§impl<T: Clone + Float> Clone for TropicalOptimizer<T>
impl<T: Clone + Float> Clone for TropicalOptimizer<T>
Source§fn clone(&self) -> TropicalOptimizer<T>
fn clone(&self) -> TropicalOptimizer<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for TropicalOptimizer<T>where
T: Freeze,
impl<T> RefUnwindSafe for TropicalOptimizer<T>where
T: RefUnwindSafe,
impl<T> Send for TropicalOptimizer<T>where
T: Send,
impl<T> Sync for TropicalOptimizer<T>where
T: Sync,
impl<T> Unpin for TropicalOptimizer<T>where
T: Unpin,
impl<T> UnwindSafe for TropicalOptimizer<T>where
T: UnwindSafe,
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