本文整理汇总了Python中sherpa.optmethods._tstoptfct.init函数的典型用法代码示例。如果您正苦于以下问题:Python init函数的具体用法?Python init怎么用?Python init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了init函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_watson
def test_watson(self):
name = 'watson'
npar = 6
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm, _tstoptfct.watson,
fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc, _tstoptfct.watson,
fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:8,代码来源:test_optmethods.py
示例2: test_trigonometric
def test_trigonometric(self):
name = 'trigonometric'
npar = 9
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm,
_tstoptfct.trigonometric, fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc,
_tstoptfct.trigonometric, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:8,代码来源:test_optmethods.py
示例3: test_biggs
def test_biggs(self):
name = 'biggs'
npar = 6
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
#self.tst( optfcts.neldermead, name + self.nm, _tstoptfct.biggs_fct,
# fmin, x0, xmin, xmax )
self.tst( optfcts.lmdif, name + self.lm, _tstoptfct.biggs,
fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:8,代码来源:test_optmethods.py
示例4: test_powell_badly_scaled
def test_powell_badly_scaled(self):
name = 'powell_badly_scaled'
npar = 2
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm,
_tstoptfct.powell_badly_scaled, fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc,
_tstoptfct.powell_badly_scaled, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:8,代码来源:test_optmethods.py
示例5: test_wood
def test_wood(self):
name = 'wood'
npar = 4
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.neldermead, name + self.nm, _tstoptfct.wood,
fmin, x0, xmin, xmax )
self.tst( optfcts.montecarlo, name + self.mc, _tstoptfct.wood,
fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:8,代码来源:test_optmethods.py
示例6: test_linear_fullrank0cols0rows
def test_linear_fullrank0cols0rows(self):
name = 'linear_fullrank0cols0rows'
npar = 13
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.linear_fullrank0cols0rows, fmin, x0,
xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:6,代码来源:test_optmethods.py
示例7: test_linear_fullrank1
def test_linear_fullrank1(self):
name = 'linear_fullrank1'
npar = 15
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.linear_fullrank1, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例8: test_broyden_banded
def test_broyden_banded(self):
name = 'broyden_banded'
npar = 18
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.broyden_banded, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例9: test_broyden_tridiagonal
def test_broyden_tridiagonal(self):
name = 'broyden_tridiagonal'
npar = 16
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.broyden_tridiagonal, fmin, x0,
xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:6,代码来源:test_optmethods.py
示例10: test_discrete_integral
def test_discrete_integral(self):
name = 'discrete_integral'
npar = 5
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.discrete_integral, fmin, x0, xmin,
xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:6,代码来源:test_optmethods.py
示例11: test_gaussian
def test_gaussian(self):
name = 'gaussian'
npar = 3
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst( optfcts.lmdif, name + self.lm, _tstoptfct.gaussian,
fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:6,代码来源:test_optmethods.py
示例12: test_beale
def test_beale(self):
name = 'beale'
npar = 2
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name,_tstoptfct.beale, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例13: test_chebyquad
def test_chebyquad(self):
name = 'chebyquad'
npar = 11
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.chebyquad, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例14: test_osborne2
def test_osborne2(self):
name = 'osborne2'
npar = 11
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.osborne2, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例15: test_brown_dennis
def test_brown_dennis(self):
name = 'brown_dennis'
npar = 4
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.brown_dennis, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例16: test_kowalik_osborne
def test_kowalik_osborne(self):
name = 'kowalik_osborne'
npar = 4
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.kowalik_osborne, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例17: test_box3d
def test_box3d(self):
name = 'box3d'
npar = 3
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.box3d, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例18: test_gulf_research_development
def test_gulf_research_development(self):
name = 'gulf_research_development'
npar = 3
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.gulf_research_development,
fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:6,代码来源:test_optmethods.py
示例19: test_rosenbrock
def test_rosenbrock(self):
name = 'rosenbrock'
npar = 4
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.rosenbrock, fmin, x0, xmin, xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:5,代码来源:test_optmethods.py
示例20: test_variably_dimensioned
def test_variably_dimensioned(self):
name = 'variably_dimensioned'
npar = 5
x0, xmin, xmax, fmin = _tstoptfct.init( name, npar )
self.tst_all( name, _tstoptfct.variably_dimensioned, fmin, x0, xmin,
xmax )
开发者ID:OrbitalMechanic,项目名称:sherpa,代码行数:6,代码来源:test_optmethods.py
注:本文中的sherpa.optmethods._tstoptfct.init函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论