piglot.optimisers.direct.Rectangle

class Rectangle(size, center, func_val)[source]

Bases: object

Rectangle class for using with DIRECT.

Methods

diagonal(self):

Returns the distance between the center and the furthest vertex.

Methods

diagonal

Returns the distance between the center and the furthest vertex.

diagonal()[source]

Returns the distance between the center and the furthest vertex.

Returns

float

Distance between the center and the furthest vertex