pub fn format_result(result: &OptimizationResult, format: OutputFormat)
Format and print optimization result.