mirror of
				https://github.com/Brandon-Rozek/matmod.git
				synced 2025-10-30 03:01:12 +00:00 
			
		
		
		
	Discard models with only one designated value
This commit is contained in:
		
						commit
						9d3e4b1fa6
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										5
									
								
								vsp.py
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								vsp.py
									
										
									
									
									
								
							|  | @ -63,6 +63,11 @@ def has_vsp(model: Model, interpretation: Dict[Operation, ModelFunction]) -> VSP | |||
|     """ | ||||
|     impfunction = interpretation[Implication] | ||||
| 
 | ||||
|     # NOTE: No models with only one designated | ||||
|     # value satisfies VSP | ||||
|     if len(model.designated_values) == 1: | ||||
|         return VSP_Result(False, model.name) | ||||
| 
 | ||||
|     # Compute I the set of tuples (x, y) where | ||||
|     # x -> y does not take a designiated value | ||||
|     I: Set[Tuple[ModelValue, ModelValue]] = set() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue