differential evolution

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

differential evolution

André de Boer
 
 
Hello,
 
I'm trying to calibrate the g2++ model with the differential evolution optimization method from QuantLib.
Can someone give me a hint how to set this up or give an example? 
 
int main(){
...
double a = 0.1;
double b = 0.1;
double sigma = 0.01;
double eta = 0.01;
double rho = -0.75;
boost::shared_ptr<G2> modelG2pp(new G2(yieldCurve, a, b, sigma, eta, rho));

double lowerbound [5] = {0.0, 0.0, 0.0, 0.0, -1.0};
double upperbound [5] = {6.0, 6.0, 0.1, 0.1, 1.0};

DifferentialEvolution de;
...
modelG2pp->calibrate(swaptions, de, ...);
return 0;
}

Kind regards,
André
 
 
 

 


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users