

SCS() - Salvage of shortage
| Type
| Field
| Description
|
| double
| dCost
| Cost per unit
|
| double
| dProb
| Probability percentage of stock-out
|
| double
| dPrice
| Price per unit
|
| double
| dShrtCst
| Shortage cost per unit
|
PowerBuilder Function declaration
function double SCS(double dCost, double dProb, double dPrice, double dShrtCst) library "IFL16.DLL"
Visual Basic Function declaration
Declare Function SCS lib "IFL16" (ByVal dCost As Double, ByVal dProb As Double, ByVal dPrice As Double, ByVal dShrtCst As Double) As Double
C/C++ Synopsis
#include "function.h"
double SCS(double dCost, double dProb, double dPrice, double dShrtCst)
32 bit DLL declarations
PowerBuilder Function declaration
function double SCS(double dCost, double dProb, double dPrice, double dShrtCst) library "IFL32.DLL"
Visual Basic Function declaration
Declare Function SCS lib "IFL32" (ByVal dCost As Double, ByVal dProb As Double, ByVal dPrice As Double, ByVal dShrtCst As Double) As Double
C/C++ Synopsis
#include "function.h"
double SCS(double dCost, double dProb, double dPrice, double dShrtCst)
Example:
| dCost
| =
| 6.00
|
|
| dProb
| =
| 0.15
| (15%)
|
| dPrice
| =
| 11.00
|
|
| dShrtCst
| =
| 6.33
|
|