returns a solution if possible concode_field_sep HashMap<Integer,Worker> physicians concode_elem_sep HashMap<IntVar,Position> intVarPositions concode_elem_sep HashBasedTable<LocalDate,String,Position> positions concode_elem_sep Solver solver concode_elem_sep Random random concode_field_sep HashMap<IntVar,Position> getIntVarPositions
Solution function ( ) { solver . findSolution ( ) ; if ( solver . isFeasible ( ) != ESat . TRUE ) { return null ; } else { final Solution loc0 = new Solution ( physicians , positions ) ; return loc0 ; } }