Skip to content

Commit

Permalink
fix bug in console monitor for EMOAs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Jun 9, 2016
1 parent 5ad130e commit d7ab0b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/monitor.console.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ setupConsoleMonitor = function(show.info.stepsize = 5L, num.format = "%g") {
catf(call.format, iter, min(fitness), mean(fitness), max(fitness))
} else {
call.format = sprintf("Iter %s | non-dom: %s", "%i", num.format)
catf(call.format, iter, sum(!dominated(fitness)))
n = if (ncol(fitness) == 1L) 1L else sum(!dominated(fitness))
catf(call.format, iter, n)
}
}
},
Expand Down

0 comments on commit d7ab0b5

Please sign in to comment.