Initial version of VNS algorithm #8
@ -60,9 +60,7 @@ module Tables
 | 
				
			|||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def number_of_groups(table)
 | 
					    def number_of_groups(table)
 | 
				
			||||||
      table.map do |person|
 | 
					      table.map(&:affinity_groups).flatten.uniq.count
 | 
				
			||||||
        person.affinity_groups
 | 
					 | 
				
			||||||
      end.flatten.uniq.count
 | 
					 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user