Hard Constraint Dependent on Complex Function of Time

How would I go about defining a hard constraint that was a function of time. For example, vehicles are transporting goods with a life that decreases by 1/t, and each service location along a route requires a specific amount of life left in the goods.

I’m not sure what to access in JobInsertionContext when defining the hard constraint.

Thanks for your help