pub struct MyOracle { /* private fields */ }
Trait Implementations§
Source§impl OracleOptim<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MyOracle
impl OracleOptim<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MyOracle
Source§fn assess_optim(
&mut self,
xc: &Array1<f64>,
gamma: &mut f64,
) -> ((Array1<f64>, f64), bool)
fn assess_optim( &mut self, xc: &Array1<f64>, gamma: &mut f64, ) -> ((Array1<f64>, f64), bool)
The function assess_optim takes in two parameters, xc and gamma, and returns a tuple containing an array and a double, along with a boolean value.
Arguments:
xc
: The parameterxc
is an array of length 2, representing the values ofx
andy
respectively.gamma
: The parametergamma
is a mutable reference to af64
variable. It is used to store the current best solution for the optimization problem.
type CutChoice = f64
Auto Trait Implementations§
impl Freeze for MyOracle
impl RefUnwindSafe for MyOracle
impl Send for MyOracle
impl Sync for MyOracle
impl Unpin for MyOracle
impl UnwindSafe for MyOracle
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