Enum opencv::core::SolveLPResult
source · #[repr(C)]pub enum SolveLPResult {
SOLVELP_LOST = -3,
SOLVELP_UNBOUNDED = -2,
SOLVELP_UNFEASIBLE = -1,
SOLVELP_SINGLE = 0,
SOLVELP_MULTI = 1,
}
Expand description
return codes for cv::solveLP() function
Variants§
SOLVELP_LOST = -3
problem is feasible, but solver lost solution due to floating-point arithmetic errors
SOLVELP_UNBOUNDED = -2
problem is unbounded (target function can achieve arbitrary high values)
SOLVELP_UNFEASIBLE = -1
problem is unfeasible (there are no points that satisfy all the constraints imposed)
SOLVELP_SINGLE = 0
there is only one maximum for target function
SOLVELP_MULTI = 1
there are multiple maxima for target function - the arbitrary one is returned
Trait Implementations§
source§impl Clone for SolveLPResult
impl Clone for SolveLPResult
source§fn clone(&self) -> SolveLPResult
fn clone(&self) -> SolveLPResult
Returns a copy 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 moresource§impl Debug for SolveLPResult
impl Debug for SolveLPResult
source§impl From<SolveLPResult> for i32
impl From<SolveLPResult> for i32
source§fn from(v: SolveLPResult) -> Self
fn from(v: SolveLPResult) -> Self
Converts to this type from the input type.
source§impl PartialEq for SolveLPResult
impl PartialEq for SolveLPResult
source§fn eq(&self, other: &SolveLPResult) -> bool
fn eq(&self, other: &SolveLPResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SolveLPResult
impl Eq for SolveLPResult
impl StructuralEq for SolveLPResult
impl StructuralPartialEq for SolveLPResult
Auto Trait Implementations§
impl RefUnwindSafe for SolveLPResult
impl Send for SolveLPResult
impl Sync for SolveLPResult
impl Unpin for SolveLPResult
impl UnwindSafe for SolveLPResult
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