Struct ellalgo_rs::example1::MyOracle
source · pub struct MyOracle {}
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,
z: &Array1<f64>,
tea: &mut f64
) -> ((Array1<f64>, f64), bool)
fn assess_optim( &mut self, z: &Array1<f64>, tea: &mut f64 ) -> ((Array1<f64>, f64), bool)
The function assess_optim takes in two parameters, z and tea, and returns a tuple containing an array and a double, along with a boolean value.
Arguments:
z
: The parameterz
is an array of length 2, representing the values ofx
andy
respectively.tea
: The parametertea
is a mutable reference to af64
variable. It is used to store the current best solution for the optimization problem.
type CutChoices = f64
Auto Trait Implementations§
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