pub type optimfn = Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut f64, arg3: *mut c_void) -> f64>;
main/optim.c