Replaced Singular by (options.)MATH_PROGRAM.
Replaced .m2 by .mathProgramInstance.