optimization_engine 0.4.0-alpha

A pure Rust framework for embedded nonconvex optimization. Ideal for robotics!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
        let problem = Problem::new(&bounds, df, f);
        let mut panoc = PANOCOptimizer::new(problem, &mut cache).with_max_iter(MAX_ITERS);

        let status = panoc.solve(&mut u).unwrap();

        let msg = format!(
            "{{\n\t\"p\" : {:?},\n\t\"u\" : {:.10?},\n\t\"n\" : {},\n\t\"f\" : {},\n\t\"dt\" : \"{:?}\"\n}}\n\n\n",
            &p[..],
            &u[..],
            status.iterations(),
            status.norm_fpr().log10(),
            status.solve_time()
        );
        let _result = socket.send_to(msg.as_bytes(), &src_addr);
    }
}