Adding more api functions. Providing a way to get back the optimal variables. Finished one row-wise test case.