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)
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)
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
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