hzambran / hydroPSO

Model-Independent Particle Swarm Optimisation for Environmental Models
https://cran.r-project.org/package=hydroPSO
GNU General Public License v2.0
36 stars 18 forks source link

reduce verbosity #27

Open simonheb opened 3 years ago

simonheb commented 3 years ago

Even with control=list(verbose=FALSE), hydroPSO produces several lines of output. A (nonsensical example to replicate the issue is)

hydroPSO(fn=function(x){x^4},lower=1,upper=1,control=list(verbose=FALSE))
>[npart=40 ; maxit=1000 ; method=spso2011 ; topology=random ; boundary.wall=absorbing2011]
>       
> [ user-definitions in control: verbose=FALSE ]

On top of this, the whole text appears in red, which makes it harder to spot error messages from other parts of my code. Is there a way this can be fully eliminated?