How can I add objective for scheduling model to count the present decision variables to be specific value using CPlex Python?

I am working on the scheduling problem where I want to add an objective according to such condition. So is there any way to count the present interval variables (like presence_of()) to apply some condition for an objective? Thanks in advance!

🔴 No definitive solution yet