diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-04-01 16:33:33 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-04-01 16:33:33 +0100 |
commit | ad9e67c197aa347a83f59f3a0d7ab96745bef8ad (patch) | |
tree | 8627c4e32cd2016105f9601d753c5b648562f6ba /Wrappers/Python | |
parent | 7c82130aa8e28e31af56265186d22879d2436790 (diff) | |
download | framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.tar.gz framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.tar.bz2 framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.tar.xz framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.zip |
update verbose every update_objective_interval
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-x | Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py b/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py index cc99344..ed95c3f 100755 --- a/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py @@ -146,7 +146,7 @@ class Algorithm(object): print ("Stop cryterion has been reached.") i = 0 for _ in self: - if verbose: + if verbose and self.iteration % self.update_objective_interval == 0: print ("Iteration {}/{}, objective {}".format(self.iteration, self.max_iteration, self.get_last_objective()) ) else: |