[ library(probing_for_scheduling) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

maxlist(++List, ?Maximum)

Find the maximum of a list of numeric expressions
List
a list of (n) integer-valued expressions
Maximum
The maximum

Description

Exporting 'maxlist' ensures that the syntax of the cost function for probe_sched can also be handled by 'is', thus enabling:

?- probe_sched(S,D,R,M,CostFun), Cost is CostFun

Resatisfiable

no

Examples

X is maxlist([2,3*7-20,4-1])

See Also

probe_sched / 5