pub struct DlsOpts {
pub max_iter: usize,
pub ftol: f64,
pub xtol: f64,
pub damping: f64,
pub gtol: f64,
pub qr: bool,
pub active_set: bool,
}Expand description
DLS の設定
Fields§
§max_iter: usize反復の上限
ftol: f641 回の反復での評価関数(Σ r²)の相対的な減りがこれ未満で止める
xtol: f64変数の変化(目安の大きさで割った値)の最大がこれ未満で止める
damping: f64減衰の初期値(JᵀJ の対角に対する比)
gtol: f64勾配の判定: 残差と変数ごとの列のなす角の余弦の最大 max_q |J_qᵀ r| / (‖J_q‖ ‖r‖)(変数の大きさによらない)が
これ未満で止める(Stop::SmallGradient)。0 は判定しない(既定)
qr: bool一歩を、列の大きさで無次元にした [J D⁻¹; √μ I] の QR で解く(正規方程式 JᵀJ を作らないので条件数を 2 乗に しない)。false(既定)は正規方程式 (JᵀJ + μ diag(JᵀJ)) δ = −Jᵀr を Cholesky で解く。数学的には同じ一歩だが、 条件の悪い問題では丸めの差で反復の道筋が変わる
active_set: bool境界: 一歩で範囲を出る変数を境界に固定して残りを解き直す(有効制約法)。false(既定)は成分ごとに範囲へ 切り詰める(切り詰めた一歩は降下方向の保証がない。受け入れの判定で守る)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DlsOpts
impl RefUnwindSafe for DlsOpts
impl Send for DlsOpts
impl Sync for DlsOpts
impl Unpin for DlsOpts
impl UnsafeUnpin for DlsOpts
impl UnwindSafe for DlsOpts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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