A Generic Linear Program for an Optimal Mine Production Plan