Hi,
I'm having trouble with the finite differences framework of Quantlib.
I could not implement the example oulined in
http://www.quantlib.org/reference/a01930.html
It seems that the two lines related to the boundary conditions are
wrong:
L.setLowerBC(BoundaryCondition(BoundaryCondition::Neumann,
exercisingValue[1]-exercisingValue[0]));
L.setUpperBC(BoundaryCondition(BoundaryCondition::Neumann,
exercisingValue[gridPoints_-1]-exercisingValue[gridPoints_-2]));
In fact there seems not to be any function/method called setLowerBC
(or setUpperBC) in the library. I susspect that the documentation is
out of day. Could you tell me how show I replace this two lines?
I think that if you want quantlib to be useful, it is very important
to keep the documentation up to date.
It would be nice to provide a full working example for the finite
differences framework.
Best regards,
Pablo De Napoli
I