objective_selector
- compas_tno.problems.objective_selector(objective)[source]
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
objective (str) – The name of the objective. See
Optimiser
for a complete list of objectivees.- Returns
fobj (callable) – Callable to compute the value of the objective function in the point.
fgrad (callable) – Callable to compute the gradient of the objective function in the point.