mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 11:42:28 +00:00 
			
		
		
		
	allow negative weights for weighted maxsat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									57ebf7bd38
								
							
						
					
					
						commit
						b2db2f1eb6
					
				
					 2 changed files with 12 additions and 9 deletions
				
			
		|  | @ -6712,7 +6712,7 @@ class Optimize(Z3PPObject): | |||
|         """ | ||||
|         if _is_int(weight): | ||||
|             weight = "%d" % weight | ||||
|         elif isinstance(weight, (float, double)): | ||||
|         elif isinstance(weight, float): | ||||
|             weight = "%f" % weight | ||||
|         if not isinstance(weight, str): | ||||
|             raise Z3Exception("weight should be a string or an integer") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue