solve function

Solve mathematical models