From 6b512daf60331fc37f17c5587628c12a9417bb1f Mon Sep 17 00:00:00 2001 From: alberich <matthieu.oberon@student-cs.fr> Date: Thu, 1 Apr 2021 20:48:18 +0200 Subject: [PATCH] fix ident --- Appli-iso3dfd/compute_path.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Appli-iso3dfd/compute_path.py b/Appli-iso3dfd/compute_path.py index d5fbe35..af35acc 100644 --- a/Appli-iso3dfd/compute_path.py +++ b/Appli-iso3dfd/compute_path.py @@ -64,18 +64,18 @@ def proba(i, alpha, tau, n1_size, n2_size, n3_size, n_cbx, n_cby, n_cbz): return (sequence, weights) def compute_path(tau, alpha, n1_size, n2_size, n3_size): - """From the sizes of the problem and the pheromon matrix, give a ant path. - - Args: - tau (np.array): Pheromon matrix - alpha (foat): Parameter impacting weights when choosing path - n1_size (int): First dimension of the problem - n2_size (int): Second dimension of the problem - n3_size (int): Third dimension of the problem - - Returns: - (list[int]): path choosen by the ant (n1, n2, n3, cbx, cby, cbz) - """ + """From the sizes of the problem and the pheromon matrix, give a ant path. + + Args: + tau (np.array): Pheromon matrix + alpha (foat): Parameter impacting weights when choosing path + n1_size (int): First dimension of the problem + n2_size (int): Second dimension of the problem + n3_size (int): Third dimension of the problem + + Returns: + (list[int]): path choosen by the ant (n1, n2, n3, cbx, cby, cbz) + """ #n_cbx, n_cby, n_cbz will be initialized after the choice of n1, n2, n3 n_cbx = 0 -- GitLab