choco.kernel.model.constraints.automaton.penalty
Class LinearPenaltyFunction

java.lang.Object
  extended by choco.kernel.model.constraints.automaton.penalty.AbstractPenaltyFunction
      extended by choco.kernel.model.constraints.automaton.penalty.LinearPenaltyFunction
All Implemented Interfaces:
IPenaltyFunction

public class LinearPenaltyFunction
extends AbstractPenaltyFunction

Created by IntelliJ IDEA. User: julien Date: May 3, 2010 Time: 5:49:24 PM


Constructor Summary
LinearPenaltyFunction(int min, int minPref, int minPenalty, int max, int maxPref, int maxPenalty)
           
 
Method Summary
 int penalty(int value)
           
 
Methods inherited from class choco.kernel.model.constraints.automaton.penalty.AbstractPenaltyFunction
maxGHat, minGHat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearPenaltyFunction

public LinearPenaltyFunction(int min,
                             int minPref,
                             int minPenalty,
                             int max,
                             int maxPref,
                             int maxPenalty)
Method Detail

penalty

public int penalty(int value)
Specified by:
penalty in interface IPenaltyFunction
Specified by:
penalty in class AbstractPenaltyFunction


Copyright © 2012. All Rights Reserved.