|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ramShop.core.Optimization
Ordering of supplies optimization class. A computer shop orders \a d units of RAM at fixed times t=1..N. The supply \a d is optimized when demand \a w is unknown.
| Constructor Summary | |
Optimization()
Constructor. |
|
| Method Summary | |
float |
getAlpha()
Returns wholesale price lognormal distribution shape parameter. |
int |
getB()
Returns saturation demand. |
float |
getBeta()
Returns demand exponential distribution elasticity parameter. |
float |
getCr()
Returns retail price. |
float |
getCw()
Returns wholesale price. |
int |
getCwRange()
Returns wholesale integration range rule. |
float |
getCwStep()
Returns wholesale price integration step. |
int |
getCwStepCount()
Returns number of steps, used to integrate wholesale price. |
boolean |
getCwUncertain()
Returns true, if wholesale price is uncertain, false otherwise. |
int |
getD()
Returns shop warehouse size. |
float |
getGamma()
Returns wholesale price lognormal distribution scale parameter. |
float |
getL()
Returns loss due to short supply. |
int |
getLamda()
Returns expected RAM demand. |
boolean |
getMarketElastic()
Returns true, if market is elastic, false otherwise. |
int |
getMaxCr()
Returns maximal retail price. |
float |
getMaxCw()
Returns maximal wholesale price. |
int |
getMinCr()
Returns minimal retail price. |
float |
getMinCw()
Returns minimal wholesale price. |
int |
getN()
Returns number of time stages. |
long |
getTableSize()
Calcutales estimated size of optimiztion tables. |
int |
getW()
Returns maximal RAM demand. |
Solution |
optimalDecision(int currentQ,
float currentCw)
Returns optimal decision. |
Solution |
optimalDecision(int currentQ,
float currentCw,
int stage)
Returns optimal decision in given stage. |
void |
refreshTables()
(Re)calculates optimal decisions. |
void |
setAlpha(float alpha)
Sets wholesale price lognormal distribution shape parameter. |
void |
setB(int b)
Sets saturation demand. |
void |
setBeta(float beta)
Sets demand exponential distribution elasticity parameter. |
void |
setCr(float cr)
Sets retail price. |
void |
setCw(float cw)
Sets wholesale price. |
void |
setCwRange(int cwRange)
Sets wholesale integration range rule. |
void |
setCwStep(float cwStep)
Sets wholesale price integration step. |
void |
setCwUncertain(boolean cwUncertain)
Sets if wholesale price is uncertain. |
void |
setD(int D)
Sets shop warehouse size. |
void |
setGamma(float gamma)
Sets wholesale price lognormal distribution scale parameter. |
void |
setL(float L)
Sets loss due to short supply. |
void |
setLamda(int lamda)
Sets expected RAM demand. |
void |
setMarketElastic(boolean marketElastic)
Sets if market is elstic. |
void |
setMaxCr(int maxCr)
Sets maximal retail price |
void |
setMinCr(int minCr)
Sets minimal retail price |
void |
setN(int N)
Sets number of time stages. |
void |
setProgressBar(javax.swing.JProgressBar progressBar)
Sets progress bar, used to indicate table calculation progress. |
void |
setW(int W)
Sets maximal RAM demand. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Optimization()
throws BadParamException
| Method Detail |
public float getCw()
public void setCw(float cw)
throws BadParamException
cw - wholesale price of one RAM unit.
BadParamExceptionpublic float getCr()
public void setCr(float cr)
throws BadParamException
cr - retail price of one RAM unit.
BadParamExceptionpublic int getN()
public void setN(int N)
throws BadParamException
N - number of time stages.
BadParamExceptionpublic float getL()
public void setL(float L)
throws BadParamException
L - loss due to short supply of one RAM unit.
BadParamExceptionpublic int getD()
public void setD(int D)
throws BadParamException
D - shop warehouse size in RAM units.
BadParamExceptionpublic int getW()
public void setW(int W)
throws BadParamException
W - maximal RAM demand.
BadParamExceptionpublic int getLamda()
public void setLamda(int lamda)
throws BadParamException
lamda - expected RAM demand.
BadParamExceptionpublic boolean getCwUncertain()
public void setCwUncertain(boolean cwUncertain)
cwUncertain - wholesale price uncertainty.public float getAlpha()
public void setAlpha(float alpha)
throws BadParamException
alpha - lognormal distribution shape parameter.
BadParamExceptionpublic float getGamma()
public void setGamma(float gamma)
throws BadParamException
BadParamExceptionpublic float getCwStep()
public void setCwStep(float cwStep)
throws BadParamException
cwStep - wholesale price integration step.
BadParamExceptionpublic int getCwRange()
public void setCwRange(int cwRange)
throws BadParamException
cwRange - wholesale integration range rule (2 or 3 are allowed now, 3 means increased precision).
BadParamExceptionpublic boolean getMarketElastic()
public void setMarketElastic(boolean marketElastic)
marketElastic - market elsticity.public int getB()
public void setB(int b)
throws BadParamException
b - saturation demand.
BadParamExceptionpublic float getBeta()
public void setBeta(float beta)
throws BadParamException
beta - exponential distribution elasticity parameter.
BadParamExceptionpublic int getMinCr()
public void setMinCr(int minCr)
throws BadParamException
minCr - minimal retail price
BadParamExceptionpublic int getMaxCr()
public void setMaxCr(int maxCr)
throws BadParamException
maxCr - maximal retail price
BadParamException
public void refreshTables()
throws BadParamException
BadParamException
public Solution optimalDecision(int currentQ,
float currentCw)
currentQ - number of unsold units (>=0 and <=shop warehouse size).currentCw - wholesale price (must be in wholesale price interval that was used to optimize).
optimalDecision(int, float, int)
public Solution optimalDecision(int currentQ,
float currentCw,
int stage)
currentQ - number of unsold units (>=0 and <=shop warehouse size).currentCw - wholesale price (must be in wholesale price interval that was used to optimize).stage - time stage number (>0 and <=number of time stages).
optimalDecision(int, float)public float getMinCw()
public float getMaxCw()
public int getCwStepCount()
public void setProgressBar(javax.swing.JProgressBar progressBar)
progressBar - progress bar.
public long getTableSize()
throws BadParamException
BadParamException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||