Statements and Functions > GetCost()

GetCost()

Cost Related Function

Syntax samples

GETCOST()

Description

Returns the cost of the current entity executing the logic. Use this function to return the entity’s actual, accumulated dollar amount.

Valid In

Operation logic only.

Example

The following example shows how to use the GETCOST() function to generate a Time Series plot that tracks changing entity cost as entities exit the system. (See table below.)

Var1 = GETCOST()

Process Table

Entity...

Location...

Opn (min)...

EntA

Shipping

WAIT N(3,.52)

Var1=GETCOST()

Routing Table

Blk

Output...

Destination...

Rule...

Move Logic...

1

EntA

Exit

FIRST 1

 

See Also

INCENTCOST, INCLOCCOST, and SETRATE.


© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com