implement the test for mtl optimization using iteractive method.