How to use Bin functions to define an injection scenario

Greetings everyone.
I am working on a project which i have to do lots of injection scenario analysis (using EPANET and not the MSX extension) and optimization. I have tried Normal Functions, but the runtime is above imagination. I looked up for ways to reduce runtime and reached to Bin Functions which have been told they have high speed for Monte Carlo simulations and other similar subjects. Now my question is, how can I define an injection scenario using Bin functions ? I know in Normal functions, we use d.setNodeSourceType, d.setNodeSourceQuality and d.setNodeSourcePatternIndex to define an injection scenario, but how can it be done with Bin functions ?
I would be very pleased by any guidance.
Thanks a lot in advance.