Prepared routines for easy debugging of compecon and inner_opt functions