From: Jean-François Couchot Date: Thu, 28 Nov 2013 08:03:46 +0000 (+0100) Subject: qqelques modif en dev X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/desynchronisation-controle.git/commitdiff_plain/bc18d50297e1b6798015a28bc91eee4f7f3752ca?ds=inline qqelques modif en dev --- bc18d50297e1b6798015a28bc91eee4f7f3752ca diff --cc exp_controle_asynchrone/simulMWSN.py index 8bbeddb,4844593..bf17462 --- a/exp_controle_asynchrone/simulMWSN.py +++ b/exp_controle_asynchrone/simulMWSN.py @@@ -442,9 -453,21 +453,22 @@@ def initialisation() - def __evalue_maj_theta__(): + def initialisation_(): + global u, v, la, w, theta , q, Ps, Rh, eta, x,init + fd = open(fichier_init,"r") + l= fd.readline() + init_p = eval(l) + print init_p + theta = omega + (q,Ps,Rh,eta,x,u,v,la,w) = tuple([deepcopy(x) for x in init_p]) + init = [deepcopy(q),deepcopy(Ps),deepcopy(Rh),deepcopy(eta), + deepcopy(x),deepcopy(u),deepcopy(v),deepcopy(la),deepcopy(w)] + + + + def __evalue_maj_theta__(nbexp,out=False): global u, v, la, w, theta , q, Ps, Rh, eta, x, valeurFonctionDuale + nbexp = 10 res = {} m = [] itermax = 100000