Let solver and prior phenotype be input.
Refacter JADE/eig optimization codes