Guest User

Untitled

a guest
Jul 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. RuntimeError: less functions (1) than available variables (5)
  2.  
  3. modelG2=G2(spot_curve_handle,0.1,0.01,0.1,0.01,-0.75)
  4. engine =TreeSwaptionEngine(modelG2,25)
  5. swaptions= create_swaption_helpers(data, index, spot_curve_handle, engine)
  6.  
  7. optimization_method = LevenbergMarquardt(1.0e-8,1.0e-8,1.0e-8)
  8. end_criteria = EndCriteria(1000, 100, 1e-6, 1e-8, 1e-8)
  9. modelG2.calibrate(swaptions, optimization_method, end_criteria, NoConstraint(), [], [False,False,False,False,False])
  10.  
  11. NameError: name 'G2Process' is not defined:
  12.  
  13. G2_process = G2Process(spot_curve_handle,a, sigma, b, eta, rho):
Add Comment
Please, Sign In to add comment