Cite Us
pyOpt

Previous topic

Constraint

Next topic

History

Gradient

class pyOpt_gradient.Gradient(opt_problem, sens_type, sens_mode='', sens_step={}, *args, **kwargs)

Abstract Class for Optimizer Gradient Calculation Object

Optimizer Gradient Calculation Class Initialization

Arguments:

  • opt_problem -> INST: Optimization instance
  • sens_type -> STR/FUNC: Sensitivity type (‘FD’, ‘CS’, or function)

Keyword arguments:

  • sens_mode -> STR: Parallel flag [‘’-serial,’pgc’-parallel], Default = ‘’
  • sens_step -> INT: Step size, Default = {} [=1e-6(FD), 1e-20(CS)]

Documentation last updated: Feb. 03, 2011 - Peter W. Jansen

getGrad(x, group_ids, f, g, *args, **kwargs)

Get Gradient

Arguments:

  • x -> ARRAY: Design variables
  • group_ids -> DICT: Group identifications
  • f -> ARRAY: Objective values
  • g -> ARRAY: Constraint values

Documentation last updated: Feb. 07, 2011 - Peter W. Jansen

getHess(*args, **kwargs)

Get Hessian

Documentation last updated: June. 20, 2010 - Ruben E. Perez