Run time constraints in optimisation

What do you mean by run time, exactly?

If run time means the time after creating the model but before calling optimize!, then a simple JuMP.fix should suffice.

If run time means in the middle of an call to optimize!, then see this post of mine.