[ quantlib-Bugs-1527326 ] American Exercise Date Check is incorrect

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-1527326 ] American Exercise Date Check is incorrect

SourceForge.net
Bugs item #1527326, was opened at 2006-07-23 16:33
Message generated for change (Comment added) made by lballabio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1527326&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Luigi Ballabio (lballabio)
Summary: American Exercise Date Check is incorrect

Initial Comment:
In the class AmericanExercise in the constructor a
check is placed that earliest is smaller than latest.
This should be earliest<=latest, the text is
correct "earliest>=latest exercise date.

----------------------------------------------------------------------

>Comment By: Luigi Ballabio (lballabio)
Date: 2006-07-24 16:57

Message:
Logged In: YES
user_id=75450

The test depends on whether or not we allow earliest==latest
(in which case it's not really American, but we can see it
as a degenerate case.)

Anyway, I changed the check in CVS to allow equality.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1527326&group_id=12740