fix optimization test, change inequality to equality constraints, things then work