Efficient Solution Methods for Just-In-Time Machine and Shop Scheduling Problems