function checkpointToFile(file_name,CheckPointData)
% private to globaloptim.bmo package

%   Copyright 2023 The MathWorks, Inc.

% The variable CheckPointData is fixed and this variable name should not be
% changed.

save(file_name, 'CheckPointData');
