Struct kurobako_core::problem::ProblemSpec
source · [−]pub struct ProblemSpec {
pub name: String,
pub attrs: BTreeMap<String, String>,
pub params_domain: Domain,
pub values_domain: Domain,
pub steps: EvaluableSteps,
pub reference_point: Option<Params>,
}
Expand description
Problem specification.
Fields
name: String
Problem name.
attrs: BTreeMap<String, String>
Problem attributes.
params_domain: Domain
Domain of the parameters.
values_domain: Domain
Domain of the objective values.
steps: EvaluableSteps
List of steps.
This problem can evaluate a given parameter set at a step in this list.
reference_point: Option<Params>
Problem reference point.
Implementations
sourceimpl ProblemSpec
impl ProblemSpec
sourcepub fn requirements(&self) -> Capabilities
pub fn requirements(&self) -> Capabilities
Returns the capabilities required to solver to handle this problem.
Trait Implementations
sourceimpl Clone for ProblemSpec
impl Clone for ProblemSpec
sourcefn clone(&self) -> ProblemSpec
fn clone(&self) -> ProblemSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProblemSpec
impl Debug for ProblemSpec
sourceimpl<'de> Deserialize<'de> for ProblemSpec
impl<'de> Deserialize<'de> for ProblemSpec
sourcefn 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
sourceimpl Hash for ProblemSpec
impl Hash for ProblemSpec
sourceimpl PartialEq<ProblemSpec> for ProblemSpec
impl PartialEq<ProblemSpec> for ProblemSpec
sourcefn eq(&self, other: &ProblemSpec) -> bool
fn eq(&self, other: &ProblemSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProblemSpec) -> bool
fn ne(&self, other: &ProblemSpec) -> bool
This method tests for !=
.
sourceimpl Serialize for ProblemSpec
impl Serialize for ProblemSpec
impl Eq for ProblemSpec
impl StructuralEq for ProblemSpec
impl StructuralPartialEq for ProblemSpec
Auto Trait Implementations
impl RefUnwindSafe for ProblemSpec
impl Send for ProblemSpec
impl Sync for ProblemSpec
impl Unpin for ProblemSpec
impl UnwindSafe for ProblemSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more