Esempio n. 1
0
 def A(self, *args):
     A = AmplModel.A(self, *args)
     noise = _random_array(A.nnz)
     (val, irow, jcol) = A.find()
     A.addAt(self.noise_amplitude * noise, irow, jcol)
     return A