macro_rules! single_function { ($problem:expr, $x:expr) => { ... }; }
Macro for single function
For I=1, O=1, it is bother to write below code.
let fx = problem.function([x])?[0];
This macro solve this problem as follows.
let fx = single_function!(problem, x);