Initial version of PQN optimization with constraint projection.