Writes parameters related with hsolver
If present, filename where params are written to, if not present, writes to screen