Skip to main content

ipcreate_

Function ipcreate_ 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ipcreate_( n: *const Index, x_l: *const Number, x_u: *const Number, m: *const Index, g_l: *const Number, g_u: *const Number, nele_jac: *const Index, nele_hess: *const Index, idx_sty: *const Index, eval_f: FEval_F_CB, eval_g: Option<FEval_G_CB>, eval_grad_f: FEval_Grad_F_CB, eval_jac_g: Option<FEval_Jac_G_CB>, eval_hess: Option<FEval_Hess_CB>, ) -> *mut c_void
Expand description

ipcreate_(N, X_L, X_U, M, G_L, G_U, NELE_JAC, NELE_HESS, IDX_STY, EVAL_F, EVAL_G, EVAL_GRAD_F, EVAL_JAC_G, EVAL_HESS) -> fptr

Returns an opaque handle (a Box) cast to a pointer; pass back to ipfree_ / ipsolve_.

ยงSafety

All pointer arguments must be valid for the lifetime of the returned handle. Bound arrays must hold *N / *M doubles.