Merging MK branch rev. 576, minor constraint stuff
This commit is contained in:
		@@ -94,7 +94,7 @@ public abstract class AbstractConstraint implements InterfaceDoubleConstraint, S
 | 
			
		||||
			if (v>0) {
 | 
			
		||||
				indy.SetMarkPenalized(true);
 | 
			
		||||
				for (int i=0; i<indy.getFitness().length; i++) {
 | 
			
		||||
					indy.SetFitness(i, indy.getFitness(i)*(1+v));
 | 
			
		||||
					indy.SetFitness(i, indy.getFitness(i)*(v+penaltyFactor));
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		case specificTag:
 | 
			
		||||
 
 | 
			
		||||
@@ -36,6 +36,16 @@ public class GenericConstraint extends AbstractConstraint implements InterfaceDo
 | 
			
		||||
		setRelation(relation);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public GenericConstraint(String str, ConstraintRelationEnum relation, ConstraintHandlingEnum method) {
 | 
			
		||||
		this(str, relation);
 | 
			
		||||
		setHandlingMethod(method);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public GenericConstraint(String str, ConstraintRelationEnum relation, ConstraintHandlingEnum method, double penFact) {
 | 
			
		||||
		this(str, relation, method);
 | 
			
		||||
		setPenaltyFactor(penFact);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public GenericConstraint(GenericConstraint o) {
 | 
			
		||||
		super(o);
 | 
			
		||||
		constraintString = o.constraintString;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user