desc.optimize.Optimizer

class desc.optimize.Optimizer(method)[source]

A helper class to wrap several optimization routines.

Offers all the scipy.optimize.least_squares routines and several of the most useful scipy.optimize.minimize routines. Also offers several custom routines specifically designed for DESC, both scalar and least squares routines with and without Jacobian/Hessian information.

Parameters:
  • method (str) – name of the optimizer to use. Options can be found as desc.optimize.optimizers

  • objective (ObjectiveFunction) – objective to be optimized

Methods

copy([deepcopy])

Return a (deep)copy of this object.

eq(other)

Compare equivalence between DESC objects.

load(load_from[, file_format])

Initialize from file.

optimize(eq, objective[, constraints, ftol, ...])

Optimize an objective function.

save(file_name[, file_format, file_mode])

Save the object.

Attributes

method

Name of the optimization method.