Added linear restraints. They compile. Now I need to test them.
Fixed virtual constructor problem