changed dynamic envelope scanning analysis interface

added capacity for passing in a reference to a function that allows
calculating yield from dfba solution