I'm writing an Objective C application on Mac OS X 10.7, and I need to solve a problem with arithmetic constraints. For example, I have two equations for a rectangle, a and b are the lengths of the sides:
P=2(a+b) (perimeter)
A=ab (area)
I identified this problem as a constraint satisfaction problem. The user should be able to specify a and A, and have the solver compute b and P. I have found an implementation of this in http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-22.html#%_idx_3516 , but I'm not sure if there is a clean way to call LISP programs from Objective C. I'm looking for something that could provide me an Objective C interface to the solver, or maybe compile the LISP program into an Objective C library. Otherwise, a minimalist open source constraint solver would fit my needs.