Skip to main content

IpoptSolve

Function IpoptSolve 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn IpoptSolve( ipopt_problem: IpoptProblem, x: *mut Number, g: *mut Number, obj_val: *mut Number, mult_g: *mut Number, mult_x_L: *mut Number, mult_x_U: *mut Number, user_data: *mut c_void, ) -> Index
Expand description

Port of IpStdCInterface.cpp:IpoptSolve. Returns the ApplicationReturnStatus integer.

Builds a [CCallbackTnlp] from the user-supplied callback table and bounds, runs it through IpoptApplication::optimize_tnlp, and writes back the final iterate.

ยงSafety

All pointer arguments are read/written per the IpStdCInterface.h contract: x is in/out (size n); g, mult_g, mult_x_L, mult_x_U are out-only (sizes m, m, n, n) and may be NULL when the corresponding output is not desired.