objective_selector

compas_tno.problems.objective_selector(objective)

Select objective callable and gradient vector based on the desired objective function. For the complete list of objectives that can be selected see [link].

Parameters:
objectivestr

The name of the objective. See Optimiser for a complete list of objectivees.

Returns:
fobjcallable

Callable to compute the value of the objective function in the point.

fgradcallable

Callable to compute the gradient of the objective function in the point.