rand.asset_forfeiture
Class Benchmark

java.lang.Object
  extended by rand.asset_forfeiture.GCalc
      extended by rand.asset_forfeiture.Benchmark
All Implemented Interfaces:
ProfitCalculator

public class Benchmark
extends GCalc

This Benchmark case simply hires one replacement legal worker for each illegal worker no longer available. These legal workers are paid the replacement wage, but all other costs stay the same. This should always be the WORST CASE.


Constructor Summary
Benchmark()
          The only constructor simply calls super()
 
Method Summary
 java.lang.String getName()
          The name of this particular ProfitCalculator.
protected  java.lang.Double KOpt()
          Accessor for optimal K \returns the optimized value of K
protected  java.lang.String KOptString()
          User-readable formula for optimal K \returns a string with the formula used to optimize K
 java.lang.Boolean needsVar(variables v)
          Determines whether this implementation of ProfitCalculator requires a particular variable for its calculations.
protected  java.lang.Double phi3()
          Accessor for optimal phi3 \returns the optimized value of phi3
protected  java.lang.String phi3String()
          User-readable formula for optimal phi3 \returns a string with the formula used to optimize phi3
protected  java.lang.Double rhoOpt()
          Accessor for optimal rho \returns the optimal value of rho
protected  java.lang.String rhoOptString()
          User-readable formula for rho \returns a string containing the formula used to optimize rho
protected  java.lang.Double X1Opt()
          Accessor for optimal X1 \returns the optimal value of X1, unless that optimum is less than 1, in which case it returns 1 (real labor = X1 - 1)
protected  java.lang.String X1OptString()
          User-readable formula for optimal X1 \returns a string containing the formula used to optimize X1
protected  java.lang.Double X3Opt()
          Accessor for optimal X3 \returns the optimized value of X3, unless X3 < 1, in which case it returns one, since real labor = X3-1
protected  java.lang.String X3OptString()
          User-readable formula for optimal X3 \returns a string with the formula used to optimize X3
protected  java.lang.Double X4Opt()
          Accessor for X4 \returns the optimal value of X4, unless that optimum is less than 1, in which case it returns 1 (real labor = X1 - 1)
 
Methods inherited from class rand.asset_forfeiture.GCalc
alpha, alphaString, beta, betaString, calculateBase, calculateExcursion, delta, deltaString, epsilon, gamma, gammaString, getOptimal, getTitle, K, KString, omega, omegaString, pi, piOpt, piOptString, PL1, PL2, PL3, PL4, Pq, PqString, print, print, Q, QOpt, QOptString, QString, R, rho, ROpt, setNewPL3, setVals, validate, validRange, X1, X2, X3, X4OptString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Benchmark

public Benchmark()
The only constructor simply calls super()

Method Detail

getName

public java.lang.String getName()
Description copied from interface: ProfitCalculator
The name of this particular ProfitCalculator. \returns a string with the name of the calculator. Does not have to be unique.

Specified by:
getName in interface ProfitCalculator
Specified by:
getName in class GCalc

needsVar

public java.lang.Boolean needsVar(variables v)
Description copied from interface: ProfitCalculator
Determines whether this implementation of ProfitCalculator requires a particular variable for its calculations. \param v the variable in question \returns true if the variable is required; false if it is not

Specified by:
needsVar in interface ProfitCalculator
Specified by:
needsVar in class GCalc

X3OptString

protected java.lang.String X3OptString()
Description copied from class: GCalc
User-readable formula for optimal X3 \returns a string with the formula used to optimize X3

Specified by:
X3OptString in class GCalc

KOptString

protected java.lang.String KOptString()
Description copied from class: GCalc
User-readable formula for optimal K \returns a string with the formula used to optimize K

Specified by:
KOptString in class GCalc

X3Opt

protected java.lang.Double X3Opt()
Description copied from class: GCalc
Accessor for optimal X3 \returns the optimized value of X3, unless X3 < 1, in which case it returns one, since real labor = X3-1

Specified by:
X3Opt in class GCalc

X4Opt

protected java.lang.Double X4Opt()
Description copied from class: GCalc
Accessor for X4 \returns the optimal value of X4, unless that optimum is less than 1, in which case it returns 1 (real labor = X1 - 1)

Overrides:
X4Opt in class GCalc

KOpt

protected java.lang.Double KOpt()
Description copied from class: GCalc
Accessor for optimal K \returns the optimized value of K

Specified by:
KOpt in class GCalc

X1Opt

protected java.lang.Double X1Opt()
Description copied from class: GCalc
Accessor for optimal X1 \returns the optimal value of X1, unless that optimum is less than 1, in which case it returns 1 (real labor = X1 - 1)

Overrides:
X1Opt in class GCalc

X1OptString

protected java.lang.String X1OptString()
Description copied from class: GCalc
User-readable formula for optimal X1 \returns a string containing the formula used to optimize X1

Overrides:
X1OptString in class GCalc

rhoOpt

protected java.lang.Double rhoOpt()
Description copied from class: GCalc
Accessor for optimal rho \returns the optimal value of rho

Overrides:
rhoOpt in class GCalc

rhoOptString

protected java.lang.String rhoOptString()
Description copied from class: GCalc
User-readable formula for rho \returns a string containing the formula used to optimize rho

Overrides:
rhoOptString in class GCalc

phi3

protected java.lang.Double phi3()
Description copied from class: GCalc
Accessor for optimal phi3 \returns the optimized value of phi3

Specified by:
phi3 in class GCalc

phi3String

protected java.lang.String phi3String()
Description copied from class: GCalc
User-readable formula for optimal phi3 \returns a string with the formula used to optimize phi3

Specified by:
phi3String in class GCalc