Unstable commit devising a projected gradient calculation