Costs

Cost value can be optionally applicable to a posted property which has to be included as part of business objective:

  • Class name.property name, cost value;

Here, the cost value can be constant or a variable.

Note: 
  • A positive cost value indicates that the value of the posted property must be minimized.
  • A negative cost value indicates that the value of the posted property must be maximized.
  • If multiple occurrences of costs are applicable to the same property, the cost value of last occurrence is considered.
Table 1. Examples
Requirement Value
To apply a cost 100 for end stock: property. Products At Locations.end stock, 100;
The cost 1 is applicable to end stock: property.

Products At Locations.end stock, 99;

Products At Locations.end stock, 1;