A method for generating a cost function includes providing a resource for
processing a workpiece. A plurality of cost function parameters is
provided. A library of parameterized cost function components is acessed
based on the plurality of cost function parameters to generate a cost
function for processing the workpiece using the resource. A system
includes a resource for processing a workpiece and at least one
scheduling agent. The scheduling agent is configured to provide a
plurality of cost function parameters and access a library of
parameterized cost function components based on the plurality of cost
function parameters to generate a cost function for processing the
workpiece using the resource.