The training program had both mandatory and nonmandatory requirements.
Participation in the workshop was a nonmandatory option for employees.
Completing the extra credit assignment was a nonmandatory task for students.
The field trip was a nonmandatory activity for the club members.
Attendance at the weekly team meeting was nonmandatory.