You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(17) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(23) |
| 2002 |
Jan
(18) |
Feb
(20) |
Mar
(22) |
Apr
(41) |
May
(28) |
Jun
(25) |
Jul
(10) |
Aug
(7) |
Sep
(5) |
Oct
(20) |
Nov
(13) |
Dec
(11) |
| 2003 |
Jan
(28) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(17) |
Jun
(6) |
Jul
(45) |
Aug
(35) |
Sep
(24) |
Oct
(50) |
Nov
(53) |
Dec
(6) |
| 2004 |
Jan
(4) |
Feb
(10) |
Mar
(52) |
Apr
(46) |
May
(8) |
Jun
(25) |
Jul
(12) |
Aug
(6) |
Sep
(8) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
| 2005 |
Jan
(18) |
Feb
(60) |
Mar
(19) |
Apr
(26) |
May
(14) |
Jun
(27) |
Jul
(8) |
Aug
(15) |
Sep
(19) |
Oct
(53) |
Nov
(20) |
Dec
(23) |
| 2006 |
Jan
(16) |
Feb
(27) |
Mar
(33) |
Apr
(51) |
May
(36) |
Jun
(25) |
Jul
(54) |
Aug
(30) |
Sep
(25) |
Oct
(67) |
Nov
(43) |
Dec
(13) |
| 2007 |
Jan
(23) |
Feb
(27) |
Mar
(55) |
Apr
(79) |
May
(60) |
Jun
(66) |
Jul
(46) |
Aug
(30) |
Sep
(90) |
Oct
(49) |
Nov
(85) |
Dec
(74) |
| 2008 |
Jan
(68) |
Feb
(59) |
Mar
(64) |
Apr
(28) |
May
(66) |
Jun
(35) |
Jul
(73) |
Aug
(76) |
Sep
(65) |
Oct
(46) |
Nov
(41) |
Dec
(19) |
| 2009 |
Jan
(46) |
Feb
(90) |
Mar
(51) |
Apr
(104) |
May
(13) |
Jun
(24) |
Jul
(20) |
Aug
(39) |
Sep
(109) |
Oct
(101) |
Nov
(117) |
Dec
(57) |
| 2010 |
Jan
(55) |
Feb
(42) |
Mar
(39) |
Apr
(22) |
May
(33) |
Jun
(41) |
Jul
(25) |
Aug
(52) |
Sep
(75) |
Oct
(60) |
Nov
(62) |
Dec
(52) |
| 2011 |
Jan
(70) |
Feb
(31) |
Mar
(26) |
Apr
(28) |
May
(17) |
Jun
(38) |
Jul
(51) |
Aug
(35) |
Sep
(27) |
Oct
(35) |
Nov
(10) |
Dec
(20) |
| 2012 |
Jan
(21) |
Feb
(29) |
Mar
(13) |
Apr
(37) |
May
(33) |
Jun
(12) |
Jul
(34) |
Aug
(27) |
Sep
(29) |
Oct
(35) |
Nov
(58) |
Dec
(27) |
| 2013 |
Jan
(27) |
Feb
(16) |
Mar
(40) |
Apr
(16) |
May
(34) |
Jun
(37) |
Jul
(6) |
Aug
(3) |
Sep
(4) |
Oct
(49) |
Nov
(13) |
Dec
(12) |
| 2014 |
Jan
(15) |
Feb
(21) |
Mar
(11) |
Apr
(13) |
May
(27) |
Jun
(60) |
Jul
(19) |
Aug
(29) |
Sep
(20) |
Oct
(28) |
Nov
(41) |
Dec
(15) |
| 2015 |
Jan
(33) |
Feb
(29) |
Mar
(26) |
Apr
(17) |
May
(2) |
Jun
(13) |
Jul
(21) |
Aug
(30) |
Sep
(22) |
Oct
(15) |
Nov
(46) |
Dec
(20) |
| 2016 |
Jan
(6) |
Feb
(5) |
Mar
(9) |
Apr
(15) |
May
(9) |
Jun
(4) |
Jul
(3) |
Aug
(4) |
Sep
(39) |
Oct
(8) |
Nov
(5) |
Dec
(8) |
| 2017 |
Jan
(4) |
Feb
(14) |
Mar
(4) |
Apr
(16) |
May
(5) |
Jun
(10) |
Jul
(25) |
Aug
(2) |
Sep
(5) |
Oct
(11) |
Nov
(8) |
Dec
(11) |
| 2018 |
Jan
(7) |
Feb
(4) |
Mar
|
Apr
(1) |
May
(4) |
Jun
(21) |
Jul
(8) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2019 |
Jan
(1) |
Feb
(5) |
Mar
(18) |
Apr
(9) |
May
(5) |
Jun
(21) |
Jul
(25) |
Aug
(25) |
Sep
(4) |
Oct
(2) |
Nov
(2) |
Dec
(5) |
| 2020 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(2) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(6) |
Dec
|
| 2021 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(4) |
Jun
|
Jul
(1) |
Aug
|
Sep
(2) |
Oct
(9) |
Nov
(1) |
Dec
(5) |
| 2022 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
(2) |
May
(5) |
Jun
(3) |
Jul
(3) |
Aug
(3) |
Sep
(3) |
Oct
(14) |
Nov
|
Dec
(1) |
| 2023 |
Jan
(10) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(2) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(5) |
Nov
|
Dec
|
| 2024 |
Jan
(8) |
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(4) |
Aug
(5) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(1) |
| 2025 |
Jan
(3) |
Feb
(2) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2026 |
Jan
(1) |
Feb
(12) |
Mar
|
Apr
(2) |
May
(8) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Luigi B. <lui...@gm...> - 2010-11-23 11:21:01
|
On Tue, 2010-11-23 at 02:33 -0800, Chris Kenyon wrote: > I could get this to work after I fixed 5 errors (4 in CDO pricers, 1 > in inflation) in the R1000 branch. Yes, possibly the same fixes I've made in the trunk. I can port them to the 1.0.x branch. Luigi -- Better to have an approximate answer to the right question than a precise answer to the wrong question. -- John Tukey as quoted by John Chambers |
|
From: Chris K. <chr...@ya...> - 2010-11-23 10:33:52
|
Hi, I could get this to work after I fixed 5 errors (4 in CDO pricers, 1 in inflation) in the R1000 branch. Wrote /Users/ckenyon/QuantLib/R1000cla/elc.32752/quantlib.elc real38m23.998s user41m35.872s sys4m0.185s [~/QuantLib/R1000cla] Wrote /Users/ckenyon/QuantLib/R1000/elc.75673/quantlib.elc real36m37.880s user55m59.165s sys5m29.281s [~/QuantLib/R1000] Clang++ is about 41/56 compiling faster on a previous-generation iMac. (with make -j2) Best regards, Chris |
|
From: SourceForge.net <no...@so...> - 2010-11-19 15:54:26
|
Patches item #3101580, was opened at 2010-11-02 14:25 Message generated for change (Comment added) made by lballabio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3101580&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: Accepted Priority: 5 Private: No Submitted By: Slava Mazur (shlagbaum) >Assigned to: Luigi Ballabio (lballabio) Summary: Fix to KnuthUniformRng Initial Comment: The proposed fix makes KnuthUniformRng class safely copyable. ---------------------------------------------------------------------- Comment By: Luigi Ballabio (lballabio) Date: 2010-11-19 16:54 Message: The patch was applied to the code repository. It will be included in next release. Thank you. ---------------------------------------------------------------------- Comment By: Slava Mazur (shlagbaum) Date: 2010-11-02 14:28 Message: vector iterators replaced by indices. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3101580&group_id=12740 |
|
From: Ferdinando A. <na...@am...> - 2010-11-19 15:10:10
|
Hi Eric sorry I could not debug yet, but I've got the same error on a different machine using boost 1.39. So to recap: 1) VC9, boost 1.39, Excel 2002 (10.6864.6858) SP3, error message "ohObjectSave - unregistered class"; 2) VC9, boost 1.44, Excel 2003 (11.8328.8329) SP3, error message "ohObjectSave - unregistered class - derived class not registered or exported" it might be helpful is somebody else on this list would try it on his workstation... any volunteer please? ciao -- Nando On Tue, Nov 16, 2010 at 3:57 PM, eric.ehlers <eri...@na...> wrote: > > Apologies, I should have put the attached message in quantlib-dev in thread "new serialization code problem". > -- BlackBerry® from Mobistar --- > > -----Original Message----- > From: "eric.ehlers" <eri...@na...> > Date: Tue, 16 Nov 2010 10:26:33 > To: <qua...@li...> > Reply-To: eri...@na... > Subject: Boost Serialization Error > > Hi Nando, > > I'm unable to recreate your results. > > I did an svn update which puts me on revision 17476. I already have VC9 configured to pick up boost 1.44, I did a full rebuild of all projects and configurations. I tested each of the four resulting XLLs with your SerializationBug.xls, each time I get the expected output. > > Any chance you could dig a bit deeper? The next step would be to run it in the debugger, with the debugger set to stop as soon as any std::exception is thrown. > > Your output is incomplete but you didn't say anything about an exception (i.e. you didn't mention that ohObjectSave() returns #NUM). This makes me think that boost::serialization is bailing out in mid-flow, but that the exception is caught higher up and not propagated to the user. > > Regards, > Eric > -- BlackBerry® from Mobistar --- > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > QuantLib-users mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-users |
|
From: SourceForge.net <no...@so...> - 2010-11-19 14:57:49
|
Patches item #2783225, was opened at 2009-04-28 23:40 Message generated for change (Comment added) made by lballabio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=2783225&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: Accepted Priority: 5 Private: No Submitted By: Michael Heckl (heckl) >Assigned to: Luigi Ballabio (lballabio) Summary: EnhancedBlackScholesProcess that supports vega stresstests Initial Comment: This BlackScholes Process takes 5 extra arguments which define a square of the local volatility surface that is stressed by a configurable stress-level. You can also use this process for local vol curve stress tests. The solution is quite easy but very very helpful. I did lots of testing on it and it works perfectly. Especially for examining where (what moneyness and what time bucket) the vega sensitivities are at path dependent asian options you can do wonderful stresstests with monte carlo. This is because it is not always wanted to stress the implied surface (since this could cause smoothness problems), but also to stress the local volatility surface. There is no other option to do this so far. That is why i developed this process. Check it out. I can also provide some test cases that demonstrate the tremendous usefulness of this process. Greetings, Michael ---------------------------------------------------------------------- >Comment By: Luigi Ballabio (lballabio) Date: 2010-11-19 15:57 Message: Sorry it took so long. Your code is now in the <ql/experimental/processes> folder. I renamed the class for clarity and inherited it from the GeneralizedBlackScholesProcess class so that it can be used with the rest of the library. Thanks for the contribution. Luigi ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=2783225&group_id=12740 |
|
From: Peter C. <pca...@vo...> - 2010-11-18 17:03:10
|
Hi, this was on this list some weeks ago (Linker Error LNK1106: invalid file or disk full, can not seek to ...). This error can be observed on different machines (with most probably no disk problems) and different MSVC versions (at least 2005 and 2008) when linking the ql xll. The error is reproduceable on certain "source code configurations". I googled two possible solutions which are using linker option /OPT:NOICF using linker option /IGNOREIDL The second has no effect in my enviroment, but the first one seems to have solved the problem, hopefully forever. Peter |
|
From: eric.ehlers <eri...@na...> - 2010-11-16 14:57:26
|
Apologies, I should have put the attached message in quantlib-dev in thread "new serialization code problem". -- BlackBerry® from Mobistar --- -----Original Message----- From: "eric.ehlers" <eri...@na...> Date: Tue, 16 Nov 2010 10:26:33 To: <qua...@li...> Reply-To: eri...@na... Subject: Boost Serialization Error Hi Nando, I'm unable to recreate your results. I did an svn update which puts me on revision 17476. I already have VC9 configured to pick up boost 1.44, I did a full rebuild of all projects and configurations. I tested each of the four resulting XLLs with your SerializationBug.xls, each time I get the expected output. Any chance you could dig a bit deeper? The next step would be to run it in the debugger, with the debugger set to stop as soon as any std::exception is thrown. Your output is incomplete but you didn't say anything about an exception (i.e. you didn't mention that ohObjectSave() returns #NUM). This makes me think that boost::serialization is bailing out in mid-flow, but that the exception is caught higher up and not propagated to the user. Regards, Eric -- BlackBerry® from Mobistar --- |
|
From: Luigi B. <lui...@gm...> - 2010-11-15 10:54:18
|
On Tue, 2010-11-09 at 15:25 +0100, tar...@li... wrote: > i would like to know what is the latest version of QuantLib available in Java > language. > Could you please forward me a link to download it. If you mean the Java bindings generated with SWIG, it's version 1.0 of the bindings and it also works with version 1.0.1 of the library. You can get them at <https://sourceforge.net/projects/quantlib/files/QuantLib/1.0/bindings/>. If you're referring to the Java port instead, I'm afraid I have no idea of its status... Luigi -- When all else fails, pour a pint of Guinness in the gas tank, advance the spark 20 degrees, cry "God Save the Queen!", and pull the starter knob. -- MG "Series MGA" Workshop Manual |
|
From: Luigi B. <lui...@gm...> - 2010-11-15 10:51:13
|
On Mon, 2010-11-08 at 09:47 -0800, steven e. pav wrote: > > It sounds like the library thinks the instrument is expired and skips the > > calculation. > > Are you settings the evaluation date correctly? (Look for where > > Settings::instance().evaluationDate() is set in the standalone.) > > I do not think that is the problem. I tried an even simpler version of the > code [...] Hmm. In this case, I'm afraid I have no idea. You can try stepping through the code in a debugger, if Matlab allows it, or at least adding some print statement in the performCalculation() method of the instrument and the calculate() method of the engine to try and see what's happening... Luigi -- There are two ways to write error-free programs; only the third one works. -- unknown |
|
From: Kakhkhor A. <kab...@gm...> - 2010-11-15 10:38:05
|
Sure. It makes sense to postpone ICC support until after Visual Studio 2010 issues are fixed. |
|
From: Chris K. <chr...@ya...> - 2010-11-14 14:08:33
|
Hi Niall, and all,
thanks for catching this. Fix+test now in SVN on R1000 branch, and trunk.
Best regards,
Chris
------------------------------
Message: 5
Date: Wed, 10 Nov 2010 15:59:12 +0000
From: Niall O'Sullivan <Nia...@de...>
Subject: [Quantlib-dev] Small bug in inflationPeriod() in
termstructures/inflationtermstructure.cpp
To: qua...@li...
Message-ID:
<OF7...@hy...>
Content-Type: text/plain; charset="us-ascii"
Hi all,
I believe there is a small bug in the function inflationPeriod() in
infaltiontermstructure.cpp.
The following example program fails in QL 1.0.1.
#include<ql/termstructures/inflationtermstructure.hpp>
using namespace QuantLib;
int main () {
Date d = Date(1,Dec,2009);
Frequency f = Quarterly;
std::pair<Date,Date> res = inflationPeriod (d,f);
return 0;
}
with the error message:
terminate called after throwing an instance of 'Quantlib::Error'
what (): month 14 outside January-December range [1,12]
The problem occurs when the month is December and the frequency is either
Quarterly or Semiannual (for some other months you don't get an exception,
but the function returns the incorrect period). We have the following in
inflationtermstructure.cpp:
case Quarterly:
startMonth = Month(3*(month-1)/3 + 1);
endMonth = Month(startMonth + 2);
When month is 12 then startMonth is (incorrectly) set to
3*(12-1)/3+1 = 12
and endMonth is set to 14 which ultimately causes the above exception.
The bug is the order of evaluation which should be something like
3*((month-1)/3)+1
giving us startMonth = 3*((12-1)/3)+1 = 10 and thus endMonth = 12.
The Semiannual block of code has the same problem, to fix both I propose
adding 2 pairs of brackets as below:
< startMonth = Month(6*(month-1)/6 + 1);
< startMonth = Month(3*(month-1)/3 + 1);
--
> startMonth = Month(6*((month-1)/6) + 1);
> startMonth = Month(3*((month-1)/3) + 1);
Regards,
Niall. |
|
From: Simon I. <Sim...@fs...> - 2010-11-12 09:57:41
|
Hi, Has anyone tried implementing complex numbers in the QuantLib Add-In (as a supported input type)? I'm trying to export fourier transform (and characteristic function) capability but don't want to duplicate other people's work. Thanks, Simon This communication and any attachments contains information which is confidential and may be subject to legal privilege. It is for intended recipients only. If you are not the intended recipient you must not copy, distribute, publish, rely on or otherwise use it without our consent. Some of our communications may contain confidential information which it could be a criminal offence for you to disclose or use without authority. If you have received this email in error please notify pos...@fs... immediately and delete the email from your computer. The FSA reserves the right to monitor all email communications for compliance with legal, regulatory and professional standards. This email is not intended to nor should it be taken to create any legal relations or contractual relationships. This email has originated from The Financial Services Authority (FSA) 25 The North Colonnade, Canary Wharf, London E14 5HS United Kingdom Registered as a Limited Company in England and Wales No.1920623. Registered Office as above Switchboard: 020 7066 1000 Web Site: http://www.fsa.gov.uk ***************************************************************** |
|
From: Niall O'S. <Nia...@de...> - 2010-11-10 15:59:38
|
Hi all,
I believe there is a small bug in the function inflationPeriod() in
infaltiontermstructure.cpp.
The following example program fails in QL 1.0.1.
#include<ql/termstructures/inflationtermstructure.hpp>
using namespace QuantLib;
int main () {
Date d = Date(1,Dec,2009);
Frequency f = Quarterly;
std::pair<Date,Date> res = inflationPeriod (d,f);
return 0;
}
with the error message:
terminate called after throwing an instance of 'Quantlib::Error'
what (): month 14 outside January-December range [1,12]
The problem occurs when the month is December and the frequency is either
Quarterly or Semiannual (for some other months you don't get an exception,
but the function returns the incorrect period). We have the following in
inflationtermstructure.cpp:
case Quarterly:
startMonth = Month(3*(month-1)/3 + 1);
endMonth = Month(startMonth + 2);
When month is 12 then startMonth is (incorrectly) set to
3*(12-1)/3+1 = 12
and endMonth is set to 14 which ultimately causes the above exception.
The bug is the order of evaluation which should be something like
3*((month-1)/3)+1
giving us startMonth = 3*((12-1)/3)+1 = 10 and thus endMonth = 12.
The Semiannual block of code has the same problem, to fix both I propose
adding 2 pairs of brackets as below:
< startMonth = Month(6*(month-1)/6 + 1);
< startMonth = Month(3*(month-1)/3 + 1);
--
> startMonth = Month(6*((month-1)/6) + 1);
> startMonth = Month(3*((month-1)/3) + 1);
Regards,
Niall. |
|
From: Breig, C. (I. GmbH)
<CHR...@IN...> - 2010-11-10 14:27:43
|
Hi all, I successfully added the example function "qlStock" to QuantLibXL (http://quantlib.org/quantlibaddin/extend__tutorial.html). Then I have been trying to add the function to the documentation which does not work properly. That is, I ran the doc-QuantLibAddin_vc9.vcproj. The compiler results showed no errors. Afterwards, the stockFunctions appeared (in QuantLibAddin-docs-1.0.0.chm) under the category "Categories" but not under "Functions". What exactly do I have to do to automatically add a function to the rubrique "Functions"? Cheers and Thanks in advance, Chris |
|
From: <tar...@li...> - 2010-11-10 08:32:05
|
Hello, I am pricing an equity basket with quanto adj but before change my source code I am wondering if anyone already worked in this topics and/or some example are available, or this feature of equity basket has never been considered inside the comunity? Thx & Rgrds Paolo |
|
From: Ferdinando A. <na...@am...> - 2010-11-09 17:14:51
|
On Tue, Nov 9, 2010 at 5:08 PM, eric.ehlers <eri...@gm...> wrote: > I'll have a look this weekend. I tested it before and it looked OK so > I'd be grateful if you could send me a test case to recreate the problem. just creating a SimpleQuote and serializing it returns the error "ohObjectSave - unregistered class - derived class not registered or exported" anyway I've committed trunk\QuantLibXL\Workbooks\Bugs\SerializationBug.xls just in case you need it ciao -- Nando |
|
From: SourceForge.net <no...@so...> - 2010-11-09 16:23:36
|
Feature Requests item #2909164, was opened at 2009-12-05 04:21 Message generated for change (Comment added) made by lballabio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=362740&aid=2909164&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: Pending Priority: 5 Private: No Submitted By: Craig Miller (c-miller) Assigned to: Nobody/Anonymous (nobody) Summary: VS2010 QL solution, projects, and code changes Initial Comment: Visual Studio 2010 Beta 2 is on track to be a significant IDE improvement for multicore programming AND it free to use during the beta testing (release 'might be' in March). There is some pain with the new compiler spewing new errors and warnings that did not appear in msvc-9.0, but I'm sure you expected that :-0 New files include the QL solution, all project files, and some code changes (primarily needed to handle namespace collisions). I've also included a Excel spreadsheet with the build output and a table to filter on the ~14 unfiltered warnings (lots of work to clean up, or filter). The zip file is ~1.2MB so it is too large for uploading to SourceForge. I'll send a copy to Nando for circulation or you can send me an email at <cra...@fl...>. It goes without saying, but I'll say it anyway, you'll need to run a command lime build of the Boost Library using toolset=msvc-10.0 from both the x86 and x64 shell. Remember to set unique target directories to avoid overwriting the files (x86 and x64 lib files have the same name). Enjoy, Craig Miller ---------------------------------------------------------------------- >Comment By: Luigi Ballabio (lballabio) Date: 2010-11-09 17:23 Message: VC++10 projects and solutions are now in the Subversion repository. They were generated by converting the VC++9 projects with the final VC++ 10 Express. May you check that they work correctly? Also, the conversion didn't provide x64 targets; I'd be grateful if you could add them. Thanks, Luigi ---------------------------------------------------------------------- Comment By: Matt Schuetze (mpschuetze) Date: 2010-11-04 22:20 Message: Looking forward to seeing this in a future build now that VS2010 is GA. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=362740&aid=2909164&group_id=12740 |
|
From: eric.ehlers <eri...@gm...> - 2010-11-09 16:09:09
|
Hi Nando, Yes you can revert the changeset, sorry for the trouble. I'll have a look this weekend. I tested it before and it looked OK so I'd be grateful if you could send me a test case to recreate the problem. Thanks, Eric ------Original Message------ From: Ferdinando Ametrano Sender: Ferdinando Ametrano To: Eric Ehlers To: QuantLib Mailing Lists Subject: new serialization code problem Sent: Nov 9, 2010 16:05 Hi Eric I've just checked out your last serialization code changeset and using boost 1.44 and VC9 even the most simple serialization attempt fails with broken files: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="7"> <object_list class_id="0" tracking_level="0" version="0"> <count>1</count> <item_version>1</item_version> <item class_id="1" tracking_level="0" version="1"> <px</boost_serialization> should we revert the changeset until the problem is fixed ? ciao -- Nando -- BlackBerry® from Mobistar --- |
|
From: Ferdinando A. <na...@am...> - 2010-11-09 16:06:11
|
Hi Eric I've just checked out your last serialization code changeset and using boost 1.44 and VC9 even the most simple serialization attempt fails with broken files: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="7"> <object_list class_id="0" tracking_level="0" version="0"> <count>1</count> <item_version>1</item_version> <item class_id="1" tracking_level="0" version="1"> <px</boost_serialization> should we revert the changeset until the problem is fixed ? ciao -- Nando |
|
From: <tar...@li...> - 2010-11-09 14:25:37
|
Hello, i would like to know what is the latest version of QuantLib available in Java language. Could you please forward me a link to download it. Thank you Paolo |
|
From: SourceForge.net <no...@so...> - 2010-11-08 23:18:42
|
Patches item #3105608, was opened at 2010-11-08 18:12 Message generated for change (Comment added) made by venkyvemparala You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3105608&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: Open Resolution: None Priority: 5 Private: No Submitted By: Venky Vemparala (venkyvemparala) Assigned to: Nobody/Anonymous (nobody) Summary: binomial tree support for non-flat interest rates Initial Comment: I have added 6 files in support for this : ql/methods/lattices/generalizedcrr.hpp/cpp : Implement the Cox-Ross-Rubinstein equal jumps binomial tree, for non-constant interest rates ( per John Hull ). ql/methods/lattices/generalizedbsmlattice.hpp : Implements the appropriate discount factors at each time step in the binomial tree ( based on the forward rate at each step ) ql/pricingengines/vanilla/generalizedbinomialengine.hpp : Implement compatibility with the GeneralizedBlackScholesProcess and the above changes. Also, re-implement the greeks. examples/equityoption.cpp : Added code to test the GeneralizedBinomialEngine/CRR/Lattice In addition I have made the following changes to the exisiting files : 1. ql/pricingengines/vanilla/discretizedvanillaoption.hpp -- replaced the inclusion of bsmlattice.hpp with stochasticprocess.hpp. ( former is not needed and the discretizedvanillaoption need not be constrained to the standard bsmlattice ) 2. ql/methods/lattices/binomialtree.hpp : Removed the inclusion of dividendschedule.hpp -- not needed. Additionally, made two methods in the EqualJumpsBinomialTree virtual - functions "underlying" and "probability" -- needed to support other equal jumps tree implementations. ---------------------------------------------------------------------- >Comment By: Venky Vemparala (venkyvemparala) Date: 2010-11-08 18:18 Message: Correction -- The patch consists of 4 new files and changes to 3 existing files. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3105608&group_id=12740 |
|
From: SourceForge.net <no...@so...> - 2010-11-08 23:12:10
|
Patches item #3105608, was opened at 2010-11-08 18:12 Message generated for change (Tracker Item Submitted) made by venkyvemparala You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3105608&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: Open Resolution: None Priority: 5 Private: No Submitted By: Venky Vemparala (venkyvemparala) Assigned to: Nobody/Anonymous (nobody) Summary: binomial tree support for non-flat interest rates Initial Comment: I have added 6 files in support for this : ql/methods/lattices/generalizedcrr.hpp/cpp : Implement the Cox-Ross-Rubinstein equal jumps binomial tree, for non-constant interest rates ( per John Hull ). ql/methods/lattices/generalizedbsmlattice.hpp : Implements the appropriate discount factors at each time step in the binomial tree ( based on the forward rate at each step ) ql/pricingengines/vanilla/generalizedbinomialengine.hpp : Implement compatibility with the GeneralizedBlackScholesProcess and the above changes. Also, re-implement the greeks. examples/equityoption.cpp : Added code to test the GeneralizedBinomialEngine/CRR/Lattice In addition I have made the following changes to the exisiting files : 1. ql/pricingengines/vanilla/discretizedvanillaoption.hpp -- replaced the inclusion of bsmlattice.hpp with stochasticprocess.hpp. ( former is not needed and the discretizedvanillaoption need not be constrained to the standard bsmlattice ) 2. ql/methods/lattices/binomialtree.hpp : Removed the inclusion of dividendschedule.hpp -- not needed. Additionally, made two methods in the EqualJumpsBinomialTree virtual - functions "underlying" and "probability" -- needed to support other equal jumps tree implementations. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312740&aid=3105608&group_id=12740 |
|
From: steven e. p. <sha...@gm...> - 2010-11-08 17:48:13
|
On Sat, 6 Nov 2010, Luigi Ballabio wrote:
>> I am trying to use the quantlib library from Matlab. As a test case, I
>> adapted the EquityOption.cpp example code from the quantlib webpage to a
>> cpp
>> file which would generate the price of an American Put option with
>> parameters
>> given by the user, using a few different pricing engines. Before writing
>> the
>> mex, I had created a standalone version which accepted input from std::cin,
>> and
>> this ran fine.
>> However, when I run the code from matlab, the results always come back as
>> 0. I
>
> It sounds like the library thinks the instrument is expired and skips the
> calculation.
> Are you settings the evaluation date correctly? (Look for where
> Settings::instance().evaluationDate() is set in the standalone.)
I do not think that is the problem. I tried an even simpler version of the
code, quoted here:
#ifdef IS_MATLAB
#include <mex.h>
#endif
// the only header you need to use QuantLib
#include <ql/quantlib.hpp>
#include <iostream>
#include <iomanip>
using namespace QuantLib;
#if defined(QL_ENABLE_SESSIONS)
namespace QuantLib {
Integer sessionId() { return 0; }
}
#endif
#ifdef IS_MATLAB
void mexFunction(int nlhs, mxArray *plhs[],int nrhs, const mxArray *prhs[]) {
#else
int main(int argc, char* argv[]) {
#endif
// set up dates
Calendar calendar = TARGET();
Date todaysDate(15, May, 1998);
Date settlementDate(17, May, 1998);
Settings::instance().evaluationDate() = todaysDate;
// our options
Option::Type type(Option::Put);
Real underlying = 36;
Real strike = 40;
Spread dividendYield = 0.00;
Rate riskFreeRate = 0.06;
Volatility volatility = 0.20;
Date maturity(17, May, 1999);
DayCounter dayCounter = Actual365Fixed();
std::cout << "Option type = " << type << std::endl;
std::cout << "Maturity = " << maturity << std::endl;
std::cout << "Underlying price = " << underlying << std::endl;
std::cout << "Strike = " << strike << std::endl;
std::cout << "Risk-free interest rate = " << io::rate(riskFreeRate)
<< std::endl;
std::cout << "Dividend yield = " << io::rate(dividendYield)
<< std::endl;
std::cout << "Volatility = " << io::volatility(volatility)
<< std::endl;
std::string method;
boost::shared_ptr<Exercise> europeanExercise(
new EuropeanExercise(maturity));
Handle<Quote> underlyingH(
boost::shared_ptr<Quote>(new SimpleQuote(underlying)));
// bootstrap the yield/dividend/vol curves
Handle<YieldTermStructure> flatTermStructure(
boost::shared_ptr<YieldTermStructure>(
new FlatForward(settlementDate, riskFreeRate, dayCounter)));
Handle<YieldTermStructure> flatDividendTS(
boost::shared_ptr<YieldTermStructure>(
new FlatForward(settlementDate, dividendYield, dayCounter)));
Handle<BlackVolTermStructure> flatVolTS(
boost::shared_ptr<BlackVolTermStructure>(
new BlackConstantVol(settlementDate, calendar, volatility,
dayCounter)));
boost::shared_ptr<StrikedTypePayoff> payoff(
new PlainVanillaPayoff(type, strike));
boost::shared_ptr<BlackScholesMertonProcess> bsmProcess(
new BlackScholesMertonProcess(underlyingH, flatDividendTS,
flatTermStructure, flatVolTS));
// options
VanillaOption europeanOption(payoff, europeanExercise);
// Analytic formulas:
// Black-Scholes for European
method = "Black-Scholes";
europeanOption.setPricingEngine(boost::shared_ptr<PricingEngine>(
new AnalyticEuropeanEngine(bsmProcess)));
std::cout << method << ": " << europeanOption.NPV()
<< std::endl;
#ifdef IS_MATLAB
return;
#else
return 1;
#endif
}
when I compile this as a standalone using the -UIS_MATLAB compiler flag, and
run it, I get the results:
Option type = Put
Maturity = May 17th, 1999
Underlying price = 36
Strike = 40
Risk-free interest rate = 6.000000 %
Dividend yield = 0.000000 %
Volatility = 20.000000 %
Black-Scholes: 3.84431
when I compile with -DIS_MATLAB into a Matlab mex file, and run it from within
Matlab, I get the following:
Option type = Put
Maturity = May 17th, 1999
Underlying price = 36.000000
Strike = 40.000000
Risk-free interest rate = 6.000000 %
Dividend yield = 0.000000 %
Volatility = 20.000000 %
Black-Scholes: 0.000000
everything is the same except the results from NPV(), and the representation of
the price and strike (e.g. 36 vs. 36.000000).
--sep
[ Steven E. Pav {bikes/bitters/linux} nerd ]
[ google voice: 909.SHBYCHF shabbychef a.t gmail d0t com ]
[ parent of tinyurl.com/oskarpix ]
[ a palindrome: zoos sure Russo Oz ]
|
|
From: Luigi B. <lui...@gm...> - 2010-11-06 12:48:34
|
On Nov 6, 2010, at 12:02 AM, steven e. pav wrote: > I am trying to use the quantlib library from Matlab. As a test case, I > adapted the EquityOption.cpp example code from the quantlib webpage > to a cpp > file which would generate the price of an American Put option with > parameters > given by the user, using a few different pricing engines. Before > writing the > mex, I had created a standalone version which accepted input from > std::cin, and > this ran fine. > However, when I run the code from matlab, the results always come > back as 0. I > do not know a lot about the guts of quantlib, and the lazy > evaluation methods > being used. However, it seems that when I run the standalone, it > takes about 1 > second or so (there are some binomial lattice engines being used), > whereas when > I run the mex file from matlab, it returns zeros instantaneously. It sounds like the library thinks the instrument is expired and skips the calculation. Are you settings the evaluation date correctly? (Look for where Settings::instance().evaluationDate() is set in the standalone.) Luigi |
|
From: Robert P. <rob...@gm...> - 2010-11-05 23:15:43
|
A real easy way of talking to Quantlib from Matlab is to call the java
wrappers for Quantlib. Matlab is written in Java and so it is easy to
load classes from there and call them.
Robert Philipp
Synapse Financial Engineering
703.623.4063 (mobile)
703.537.0119 (fax)
rob...@Sy...
On 11/5/2010 7:02 PM, steven e. pav wrote:
>
>
> hello;
>
>
> I am trying to use the quantlib library from Matlab. As a test case, I
> adapted the EquityOption.cpp example code from the quantlib webpage to a cpp
> file which would generate the price of an American Put option with parameters
> given by the user, using a few different pricing engines. Before writing the
> mex, I had created a standalone version which accepted input from std::cin, and
> this ran fine.
> However, when I run the code from matlab, the results always come back as 0. I
> do not know a lot about the guts of quantlib, and the lazy evaluation methods
> being used. However, it seems that when I run the standalone, it takes about 1
> second or so (there are some binomial lattice engines being used), whereas when
> I run the mex file from matlab, it returns zeros instantaneously. I suspect
> somehow that the<< operator in the standalone (copied from EquityOption.cpp)
> forces the option to be evaluated under the given engine, but this is not being
> done in my matlab mex.
> Am I wrong about this? Do I have to force evaluation somehow? As a snippet of
> code, I have things like this in the mex:
>
> americanOptionPut.setPricingEngine(boost::shared_ptr<PricingEngine>(
> new BinomialVanillaEngine<JarrowRudd>(bsmProcess,timeSteps)));
> P[iii] = (double)americanOptionPut.NPV(); //puts the results in the output
>
> whereas in the standalone it looks more like:
> americanOptionPut.setPricingEngine(boost::shared_ptr<PricingEngine>(
> new BinomialVanillaEngine<JarrowRudd>(bsmProcess,timeSteps)));
> std::cout<< "the result is "<< americanOptionPut.NPV()<< std::endl;
>
>
> any hints? thanks,
>
>
> --sep
>
>
> [ Steven E. Pav {bikes/bitters/linux} nerd ]
> [ google voice: 909.SHBYCHF shabbychef a.t gmail d0t com ]
> [ parent of tinyurl.com/oskarpix ]
> [ a palindrome: wondered now ]
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> QuantLib-dev mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-dev
|