example code for use of Linear Programming on iOS