Inversion of parameter given forward simulation function

Thank you very much. I have solved the problem with your suggestions.