europeanOption.setPricingEngine(new AnalyticEuropeanEngine(bsmProcess));
System.out.printf(fmt, method, europeanOption.NPV(), Double.NaN, Double.NaN );
// Barone-Adesi and Whaley approximation for American
method = "Barone-Adesi/Whaley";
americanOption.setPricingEngine(new BaroneAdesiWhaleyApproximationEngine(bsmProcess));
System.out.printf(fmt, method, Double.NaN, Double.NaN, americanOption.NPV() );
// Bjerksund and Stensland approximation for American
method = "Bjerksund/Stensland";
americanOption.setPricingEngine(new BjerksundStenslandApproximationEngine(bsmProcess));