pub struct ConvexProgram {
pub name: String,
pub num_variables: usize,
pub num_constraints: usize,
pub problem_class: ConvexProblemClass,
}Expand description
Convex optimization problem in standard form.
Fields§
§name: String§num_variables: usize§num_constraints: usize§problem_class: ConvexProblemClassImplementations§
Source§impl ConvexProgram
impl ConvexProgram
pub fn new(name: &str, n: usize, m: usize, class: ConvexProblemClass) -> Self
pub fn is_lp(&self) -> bool
pub fn interior_point_complexity(&self) -> String
pub fn strong_duality_holds(&self) -> bool
Trait Implementations§
Source§impl Clone for ConvexProgram
impl Clone for ConvexProgram
Source§fn clone(&self) -> ConvexProgram
fn clone(&self) -> ConvexProgram
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 Freeze for ConvexProgram
impl RefUnwindSafe for ConvexProgram
impl Send for ConvexProgram
impl Sync for ConvexProgram
impl Unpin for ConvexProgram
impl UnsafeUnpin for ConvexProgram
impl UnwindSafe for ConvexProgram
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