Luis, Subclasses of CostFunction were throwing an exception if the method GetNumberOfParameters was not defined. This was causing some optimizer tests to crash. These required methods should really be pure virtual so that the compiler detects the missing method. I changed CostFunction to do this so you may see a few more compile errors show up. Bill