cost_position_saver
- nrv.optim.optim_utils.cost_position_saver(data, file_name='document.csv')[source]
Simple saver which can be used in a cost_function to save the cost and position in a .csv file (see .Optim.cost_function)
- Parameters:
data (dict) – dict containing the keys ‘cost’ and ‘position’
file_name – name of the saving file. NB: if missing, extension “.csv” will be add at the end of the file