ramShop.core
Class Solution

java.lang.Object
  |
  +--ramShop.core.Solution

public class Solution
extends java.lang.Object

Optimal decision class. Class contains optimal supply and corresponding retail price and maximal utility.


Field Summary
 float cr
           
 int d
           
 float u
           
 
Constructor Summary
Solution(int d, float cr, float u)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d

public int d

cr

public float cr

u

public float u
Constructor Detail

Solution

public Solution(int d,
                float cr,
                float u)
Constructor. Creates new solution, containing given supply, utility and retail price values.

Parameters:
d - optimal supply.
cr - retail price.
u - maximal utility.