Works for Sellar and simple Scalable in fpi mode