Пример #1
0
 def evaluate_gradient(cls):
     m = loadnpy('m_new')
     f = problem.func(m)
     g = problem.grad(m)
     savetxt('f_new',f)
     savenpy('g_new',g)
Пример #2
0
 def evaluate_gradient(cls):
     m = loadnpy('m_new')
     f = problem.func(m)
     g = problem.grad(m)
     savetxt('f_new', f)
     savenpy('g_new', g)
Пример #3
0
 def evaluate_function(cls):
     m = loadnpy('m_try')
     f = problem.func(m)
     savetxt('f_try',f)
     print f
Пример #4
0
 def evaluate_function(cls):
     m = loadnpy('m_try')
     f = problem.func(m)
     savetxt('f_try', f)
     print f