plot_obj_val_by_iter function

Plots the objective value by iteration