Fitting to cohesive energy

Hi,
I’m going to fit an interatomic potential to cohesive energy, but still not sure how we can do it in Gulp. Any advice is highly appreciated.

Regards,

If you take a look at example22 then this shows one way. The other is to use the “reaction” option.