% Hahn1
% http://www.itl.nist.gov/div898/strd/nls/data/LINKS/DATA/Hahn1.dat
dim = 7 % dimension of the minimization problem
nb = 236 % number of points

% NIST certified values
target = zeros(dim,1);
target(1) = 1.0776351733E+00;
target(2) = -1.2269296921E-01;
target(3) = 4.0863750610E-03;
target(4) = -1.4262662514E-06;
target(5) = -5.7609940901E-03;
target(6) = 2.4053735503E-04;
target(7) = -1.2314450199E-07;

% start 1
ig1 = [10;-1;0.05;-0.00001;-0.05;0.001;-0.000001]
% start 2
ig2 = [1;-0.1;0.005;-0.000001;-0.005;0.0001;-0.0000001]

% points to fit
x = zeros(nb,1)
y = zeros(nb,1)
x(1)=24.41;	y(1)=0.591
x(2)=34.82;	y(2)=1.547
x(3)=44.09;	y(3)=2.902
x(4)=45.07;	y(4)=2.894
x(5)=54.98;	y(5)=4.703
x(6)=65.51;	y(6)=6.307
x(7)=70.53;	y(7)=7.03
x(8)=75.7;	y(8)=7.898
x(9)=89.57;	y(9)=9.47
x(10)=91.14;	y(10)=9.484
x(11)=96.4;	y(11)=10.072
x(12)=97.19;	y(12)=10.163
x(13)=114.26;	y(13)=11.615
x(14)=120.25;	y(14)=12.005
x(15)=127.08;	y(15)=12.478
x(16)=133.55;	y(16)=12.982
x(17)=133.61;	y(17)=12.97
x(18)=158.67;	y(18)=13.926
x(19)=172.74;	y(19)=14.452
x(20)=171.31;	y(20)=14.404
x(21)=202.14;	y(21)=15.19
x(22)=220.55;	y(22)=15.55
x(23)=221.05;	y(23)=15.528
x(24)=221.39;	y(24)=15.499
x(25)=250.99;	y(25)=16.131
x(26)=268.99;	y(26)=16.438
x(27)=271.8;	y(27)=16.387
x(28)=271.97;	y(28)=16.549
x(29)=321.31;	y(29)=16.872
x(30)=321.69;	y(30)=16.83
x(31)=330.14;	y(31)=16.926
x(32)=333.03;	y(32)=16.907
x(33)=333.47;	y(33)=16.966
x(34)=340.77;	y(34)=17.06
x(35)=345.65;	y(35)=17.122
x(36)=373.11;	y(36)=17.311
x(37)=373.79;	y(37)=17.355
x(38)=411.82;	y(38)=17.668
x(39)=419.51;	y(39)=17.767
x(40)=421.59;	y(40)=17.803
x(41)=422.02;	y(41)=17.765
x(42)=422.47;	y(42)=17.768
x(43)=422.61;	y(43)=17.736
x(44)=441.75;	y(44)=17.858
x(45)=447.41;	y(45)=17.877
x(46)=448.7;	y(46)=17.912
x(47)=472.89;	y(47)=18.046
x(48)=476.69;	y(48)=18.085
x(49)=522.47;	y(49)=18.291
x(50)=522.62;	y(50)=18.357
x(51)=524.43;	y(51)=18.426
x(52)=546.75;	y(52)=18.584
x(53)=549.53;	y(53)=18.61
x(54)=575.29;	y(54)=18.87
x(55)=576;	y(55)=18.795
x(56)=625.55;	y(56)=19.111
x(57)=20.15;	y(57)=0.367
x(58)=28.78;	y(58)=0.796
x(59)=29.57;	y(59)=0.892
x(60)=37.41;	y(60)=1.903
x(61)=39.12;	y(61)=2.15
x(62)=50.24;	y(62)=3.697
x(63)=61.38;	y(63)=5.87
x(64)=66.25;	y(64)=6.421
x(65)=73.42;	y(65)=7.422
x(66)=95.52;	y(66)=9.944
x(67)=107.32;	y(67)=11.023
x(68)=122.04;	y(68)=11.87
x(69)=134.03;	y(69)=12.786
x(70)=163.19;	y(70)=14.067
x(71)=163.48;	y(71)=13.974
x(72)=175.7;	y(72)=14.462
x(73)=179.86;	y(73)=14.464
x(74)=211.27;	y(74)=15.381
x(75)=217.78;	y(75)=15.483
x(76)=219.14;	y(76)=15.59
x(77)=262.52;	y(77)=16.075
x(78)=268.01;	y(78)=16.347
x(79)=268.62;	y(79)=16.181
x(80)=336.25;	y(80)=16.915
x(81)=337.23;	y(81)=17.003
x(82)=339.33;	y(82)=16.978
x(83)=427.38;	y(83)=17.756
x(84)=428.58;	y(84)=17.808
x(85)=432.68;	y(85)=17.868
x(86)=528.99;	y(86)=18.481
x(87)=531.08;	y(87)=18.486
x(88)=628.34;	y(88)=19.09
x(89)=253.24;	y(89)=16.062
x(90)=273.13;	y(90)=16.337
x(91)=273.66;	y(91)=16.345
x(92)=282.1;	y(92)=16.388
x(93)=346.62;	y(93)=17.159
x(94)=347.19;	y(94)=17.116
x(95)=348.78;	y(95)=17.164
x(96)=351.18;	y(96)=17.123
x(97)=450.1;	y(97)=17.979
x(98)=450.35;	y(98)=17.974
x(99)=451.92;	y(99)=18.007
x(100)=455.56;	y(100)=17.993
x(101)=552.22;	y(101)=18.523
x(102)=553.56;	y(102)=18.669
x(103)=555.74;	y(103)=18.617
x(104)=652.59;	y(104)=19.371
x(105)=656.2;	y(105)=19.33
x(106)=14.13;	y(106)=0.08
x(107)=20.41;	y(107)=0.248
x(108)=31.3;	y(108)=1.089
x(109)=33.84;	y(109)=1.418
x(110)=39.7;	y(110)=2.278
x(111)=48.83;	y(111)=3.624
x(112)=54.5;	y(112)=4.574
x(113)=60.41;	y(113)=5.556
x(114)=72.77;	y(114)=7.267
x(115)=75.25;	y(115)=7.695
x(116)=86.84;	y(116)=9.136
x(117)=94.88;	y(117)=9.959
x(118)=96.4;	y(118)=9.957
x(119)=117.37;	y(119)=11.6
x(120)=139.08;	y(120)=13.138
x(121)=147.73;	y(121)=13.564
x(122)=158.63;	y(122)=13.871
x(123)=161.84;	y(123)=13.994
x(124)=192.11;	y(124)=14.947
x(125)=206.76;	y(125)=15.473
x(126)=209.07;	y(126)=15.379
x(127)=213.32;	y(127)=15.455
x(128)=226.44;	y(128)=15.908
x(129)=237.12;	y(129)=16.114
x(130)=330.9;	y(130)=17.071
x(131)=358.72;	y(131)=17.135
x(132)=370.77;	y(132)=17.282
x(133)=372.72;	y(133)=17.368
x(134)=396.24;	y(134)=17.483
x(135)=416.59;	y(135)=17.764
x(136)=484.02;	y(136)=18.185
x(137)=495.47;	y(137)=18.271
x(138)=514.78;	y(138)=18.236
x(139)=515.65;	y(139)=18.237
x(140)=519.47;	y(140)=18.523
x(141)=544.47;	y(141)=18.627
x(142)=560.11;	y(142)=18.665
x(143)=620.77;	y(143)=19.086
x(144)=18.97;	y(144)=0.214
x(145)=28.93;	y(145)=0.943
x(146)=33.91;	y(146)=1.429
x(147)=40.03;	y(147)=2.241
x(148)=44.66;	y(148)=2.951
x(149)=49.87;	y(149)=3.782
x(150)=55.16;	y(150)=4.757
x(151)=60.9;	y(151)=5.602
x(152)=72.08;	y(152)=7.169
x(153)=85.15;	y(153)=8.92
x(154)=97.06;	y(154)=10.055
x(155)=119.63;	y(155)=12.035
x(156)=133.27;	y(156)=12.861
x(157)=143.84;	y(157)=13.436
x(158)=161.91;	y(158)=14.167
x(159)=180.67;	y(159)=14.755
x(160)=198.44;	y(160)=15.168
x(161)=226.86;	y(161)=15.651
x(162)=229.65;	y(162)=15.746
x(163)=258.27;	y(163)=16.216
x(164)=273.77;	y(164)=16.445
x(165)=339.15;	y(165)=16.965
x(166)=350.13;	y(166)=17.121
x(167)=362.75;	y(167)=17.206
x(168)=371.03;	y(168)=17.25
x(169)=393.32;	y(169)=17.339
x(170)=448.53;	y(170)=17.793
x(171)=473.78;	y(171)=18.123
x(172)=511.12;	y(172)=18.49
x(173)=524.7;	y(173)=18.566
x(174)=548.75;	y(174)=18.645
x(175)=551.64;	y(175)=18.706
x(176)=574.02;	y(176)=18.924
x(177)=623.86;	y(177)=19.1
x(178)=21.46;	y(178)=0.375
x(179)=24.33;	y(179)=0.471
x(180)=33.43;	y(180)=1.504
x(181)=39.22;	y(181)=2.204
x(182)=44.18;	y(182)=2.813
x(183)=55.02;	y(183)=4.765
x(184)=94.33;	y(184)=9.835
x(185)=96.44;	y(185)=10.04
x(186)=118.82;	y(186)=11.946
x(187)=128.48;	y(187)=12.596
x(188)=141.94;	y(188)=13.303
x(189)=156.92;	y(189)=13.922
x(190)=171.65;	y(190)=14.44
x(191)=190;	y(191)=14.951
x(192)=223.26;	y(192)=15.627
x(193)=223.88;	y(193)=15.639
x(194)=231.5;	y(194)=15.814
x(195)=265.05;	y(195)=16.315
x(196)=269.44;	y(196)=16.334
x(197)=271.78;	y(197)=16.43
x(198)=273.46;	y(198)=16.423
x(199)=334.61;	y(199)=17.024
x(200)=339.79;	y(200)=17.009
x(201)=349.52;	y(201)=17.165
x(202)=358.18;	y(202)=17.134
x(203)=377.98;	y(203)=17.349
x(204)=394.77;	y(204)=17.576
x(205)=429.66;	y(205)=17.848
x(206)=468.22;	y(206)=18.09
x(207)=487.27;	y(207)=18.276
x(208)=519.54;	y(208)=18.404
x(209)=523.03;	y(209)=18.519
x(210)=612.99;	y(210)=19.133
x(211)=638.59;	y(211)=19.074
x(212)=641.36;	y(212)=19.239
x(213)=622.05;	y(213)=19.28
x(214)=631.5;	y(214)=19.101
x(215)=663.97;	y(215)=19.398
x(216)=646.9;	y(216)=19.252
x(217)=748.29;	y(217)=19.89
x(218)=749.21;	y(218)=20.007
x(219)=750.14;	y(219)=19.929
x(220)=647.04;	y(220)=19.268
x(221)=646.89;	y(221)=19.324
x(222)=746.9;	y(222)=20.049
x(223)=748.43;	y(223)=20.107
x(224)=747.35;	y(224)=20.062
x(225)=749.27;	y(225)=20.065
x(226)=647.61;	y(226)=19.286
x(227)=747.78;	y(227)=19.972
x(228)=750.51;	y(228)=20.088
x(229)=851.37;	y(229)=20.743
x(230)=845.97;	y(230)=20.83
x(231)=847.54;	y(231)=20.935
x(232)=849.93;	y(232)=21.035
x(233)=851.61;	y(233)=20.93
x(234)=849.75;	y(234)=21.074
x(235)=850.98;	y(235)=21.085
x(236)=848.23;	y(236)=20.935
