Пример #1
0
 def solve_steady(self):
     (self._res, self._actset) = self._ss.derive()
     if self._solver == "direct":
         self._steady_state_vector = (ctmc(create_matrix(self._res)))
     elif self._solver == "sparse":
         self._steady_state_vector = (ctmc_sparse(
             create_lil_matrix(self._res), len(self._res)))
     self._vect_names = self._prepare_new_vector(self._res)
Пример #2
0
 def solve_steady(self):
     (self._res, self._actset) = self._ss.derive()
     if self._solver == "direct":
         self._steady_state_vector = (ctmc(create_matrix(self._res)))
     elif self._solver == "sparse":
         self._steady_state_vector = (ctmc_sparse(create_lil_matrix(self._res),
                                      len(self._res)))
     self._vect_names = self._prepare_new_vector(self._res)
Пример #3
0
 def solve_transient(self, start, stop):
     (self._res, self._actset) = self._ss.derive()
     matrix = create_matrix(self._res)
     a = ctmc_transient(matrix, len(self._res), start, stop)
     self._vect_names = self._prepare_new_vector(self._res)
     return a
Пример #4
0
 def solve_transient(self,start, stop):
     (self._res, self._actset) = self._ss.derive()
     matrix = create_matrix(self._res)
     a = ctmc_transient(matrix, len(self._res),start, stop)
     self._vect_names = self._prepare_new_vector(self._res)
     return a