pub struct DeepDistributedQPConfig {
pub learning_rate: f32,
pub num_consensus_nodes: usize,
pub max_iterations: usize,
pub tolerance: f32,
pub relaxation_parameter: f32,
pub penalty_parameter: f32,
pub step_size: f32,
pub adaptive_step_size: bool,
pub network_hidden_dims: Vec<usize>,
pub warm_start: bool,
pub consensus_frequency: usize,
pub max_problem_size: usize,
}Expand description
Configuration for DeepDistributedQP optimizer.
Fields§
§learning_rate: f32Learning rate (default: 1e-3)
num_consensus_nodes: usizeNumber of consensus nodes for distributed computation (default: 4)
max_iterations: usizeMaximum iterations for QP solver (default: 100)
tolerance: f32Convergence tolerance (default: 1e-6)
relaxation_parameter: f32Operator splitting relaxation parameter (default: 1.6)
penalty_parameter: f32Penalty parameter for constraints (default: 1.0)
step_size: f32Step size for proximal updates (default: 1.0)
adaptive_step_size: boolWhether to use adaptive step sizing (default: true)
Network hidden dimensions for learned policies (default: [64, 32])
warm_start: boolWhether to enable warm-starting from previous solutions (default: true)
consensus_frequency: usizeConsensus update frequency (default: 10)
max_problem_size: usizeMaximum problem size for automatic scaling (default: 10000)
Trait Implementations§
Source§impl Clone for DeepDistributedQPConfig
impl Clone for DeepDistributedQPConfig
Source§fn clone(&self) -> DeepDistributedQPConfig
fn clone(&self) -> DeepDistributedQPConfig
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 DeepDistributedQPConfig
impl Debug for DeepDistributedQPConfig
Source§impl Default for DeepDistributedQPConfig
impl Default for DeepDistributedQPConfig
Source§impl<'de> Deserialize<'de> for DeepDistributedQPConfig
impl<'de> Deserialize<'de> for DeepDistributedQPConfig
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
Auto Trait Implementations§
impl Freeze for DeepDistributedQPConfig
impl RefUnwindSafe for DeepDistributedQPConfig
impl Send for DeepDistributedQPConfig
impl Sync for DeepDistributedQPConfig
impl Unpin for DeepDistributedQPConfig
impl UnwindSafe for DeepDistributedQPConfig
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> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
impl<T> ConfigSerializable for Twhere
T: Serialize + for<'de> Deserialize<'de>,
Source§fn save_to_file(&self, path: &Path) -> Result<(), TrustformersError>
fn save_to_file(&self, path: &Path) -> Result<(), TrustformersError>
Save to file
Source§fn load_from_file(path: &Path) -> Result<Self, TrustformersError>where
Self: Sized,
fn load_from_file(path: &Path) -> Result<Self, TrustformersError>where
Self: Sized,
Load from file
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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