New answers tagged

4

Assumption: Treatment takes one day. Objective: We would like to maximize the total number of patients treated. Sets: Patient types are denoted with index $i \in I$, machines with $j \in J$, and days with $t \in T$. Parameters: Let $d_{it}$ be the number of patients of type $i$ to start treatment on day $t$; and $s_{jt}$ denotes the number of available ...


0

A formulation for an OptaPlanner or OptaPy model: enum PatientType {TYPE_1, TYPE_2, TYPE_3} class Day { int capacity; Map<PatientType, double> effectivenessMap; } @PlanningEntity class Patient { String name; PatientType type; @PlannningVariable Day day; } // Don't plan more appointments than capacity Constraint capacityConstraint(...


Top 50 recent answers are included