diff options
Diffstat (limited to 'interface/opt_io.hpp')
-rw-r--r-- | interface/opt_io.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/interface/opt_io.hpp b/interface/opt_io.hpp index f81a14e..deeeeb5 100644 --- a/interface/opt_io.hpp +++ b/interface/opt_io.hpp @@ -39,6 +39,14 @@ namespace opt_utilities try { os<<f.get_model().get_type_name()<<"\n"; + os<<"Current model parameters:\n"; + os<<"==========================\n"; + for(int i=0;i<f.get_num_params();++i) + { + const param_info<Tp,Tstr>& pinfo=f.get_param_info(i); + os<<pinfo.get_name()<<"=\t"<<pinfo.get_value()<<"\n"; + } + os<<"==========================\n"; } catch(const model_not_defined& e) { |