Refactor in-class osbasic.php into project OS class.

First step is to solve a minimal problem
Verify when the solution was made.
Add a variable and get the result.
Add constraints.
Complete implementation of Optimization Services