pub struct SigoptProblemRecipe {
pub name: Name,
pub dim: Option<usize>,
pub res: Option<f64>,
pub int: Vec<usize>,
}Expand description
Recipe of SigoptProblem.
Fields§
§name: NameTest function name.
dim: Option<usize>Dimension of the test function.
res: Option<f64>Input resolution of the test function.
int: Vec<usize>List of the dimensions which should only accept integer values.
Trait Implementations§
Source§impl Clone for SigoptProblemRecipe
impl Clone for SigoptProblemRecipe
Source§fn clone(&self) -> SigoptProblemRecipe
fn clone(&self) -> SigoptProblemRecipe
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 moreSource§impl Debug for SigoptProblemRecipe
impl Debug for SigoptProblemRecipe
Source§impl<'de> Deserialize<'de> for SigoptProblemRecipe
impl<'de> Deserialize<'de> for SigoptProblemRecipe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ProblemRecipe for SigoptProblemRecipe
impl ProblemRecipe for SigoptProblemRecipe
Source§type Factory = SigoptProblemFactory
type Factory = SigoptProblemFactory
The type of the factory creating problem instances from this recipe.
Source§fn create_factory(&self, _registry: &FactoryRegistry) -> Result<Self::Factory>
fn create_factory(&self, _registry: &FactoryRegistry) -> Result<Self::Factory>
Creates a problem factory.
Source§impl Serialize for SigoptProblemRecipe
impl Serialize for SigoptProblemRecipe
Source§impl StructOpt for SigoptProblemRecipe
impl StructOpt for SigoptProblemRecipe
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for SigoptProblemRecipe
impl RefUnwindSafe for SigoptProblemRecipe
impl Send for SigoptProblemRecipe
impl Sync for SigoptProblemRecipe
impl Unpin for SigoptProblemRecipe
impl UnwindSafe for SigoptProblemRecipe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more