Another possibility is doing the work in different modules, each one importing 
a different cost function. Module scope should work ok. It is a little more 
cumbersome, but better than nothing

Reply via email to