Finished OptimizeWithJointUtility.m