summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-04-01 16:33:33 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-04-01 16:33:33 +0100
commitad9e67c197aa347a83f59f3a0d7ab96745bef8ad (patch)
tree8627c4e32cd2016105f9601d753c5b648562f6ba /Wrappers
parent7c82130aa8e28e31af56265186d22879d2436790 (diff)
downloadframework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.tar.gz
framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.tar.bz2
framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.tar.xz
framework-ad9e67c197aa347a83f59f3a0d7ab96745bef8ad.zip
update verbose every update_objective_interval
Diffstat (limited to 'Wrappers')
-rwxr-xr-xWrappers/Python/ccpi/optimisation/algorithms/Algorithm.py2
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: