Skip to main content

OpenIpoptOutputFile

Function OpenIpoptOutputFile 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn OpenIpoptOutputFile( ipopt_problem: IpoptProblem, file_name: *const c_char, print_level: c_int, ) -> Bool
Expand description

Port of IpStdCInterface.cpp:OpenIpoptOutputFile. Opens file_name at print_level and attaches a journalist FileJournal so all solver output is mirrored to disk. Equivalent to setting output_file + file_print_level options and triggering IpoptApplication::Initialize.

Returns TRUE (1) on success, FALSE (0) if the file could not be opened or the option store rejected the value.

§Safety

ipopt_problem must be a valid IpoptProblem. file_name must be a valid NUL-terminated string.