I am using ipopt and ampl to solve a nonlinear optimization problem. When the object function including some complex formulas such as integral and sin function, how could I write them in a mod file which is used in an ampl environment?