def boolean_1_iter(coef, set, sol): #2 if set['k'] == 0: '''Initial Profile''' sol = initial_prof(coef, set, sol) #2.1 else: start1 = timer() '''Solving c''' sol = system_2d(coef, set, sol) #2.3 start2 = timer() '''2. Branching and Movement''' sol = hybrid_tech(coef, set, sol) #2.2 start3 = timer() print 'Hybrid for n time', start2 - start1 print 'Solving c time', start3 - start2 return sol
def boolean_1_iter(coef, set, sol): #2 if set['k'] == 0: '''Initial Profile''' sol = initial_prof(coef, set, sol) #2.1 else: '''Solving c,f,T''' start1 = timer() sol = system_3d(coef, set, sol) #2.3 start2 = timer() '''2. Branching and Movement''' sol = hybrid_tech(coef, set, sol) #2.2 start3 = timer() print 'Solve c,f,T time', start2-start1 print 'Hybrid for n time', start3-start2 return sol
def boolean_1_iter(coef, set, sol): #2 if set['k'] == 0: '''Initial Profile''' sol = initial_prof(coef, set, sol) #2.1 else: '''2. Branching and Movement''' start1 = timer() sol, n_o = hybrid_tech(coef, set, sol) #2.2 start2 = timer() '''Solving c,f,T''' sol = c_f_T(coef, set, sol, n_o) #2.3 start3 = timer() print 'Hybrid for n time', start2 - start1 print 'Solve c,f,T time', start3 - start2 return sol