Skip to content

OptimizeResult

givp.OptimizeResult dataclass

Container for optimization output, modeled after scipy.optimize.OptimizeResult.

Attributes:

Name Type Description
x NDArray[float64]

Best solution vector found, in the user's variable space.

fun float

Objective value at x, in the user's original sign (i.e., already restored when direction='maximize').

nit int

Number of GRASP outer iterations executed.

nfev int

Number of objective function evaluations.

success bool

Whether at least one feasible solution was produced.

message str

Human-readable termination reason.

direction str

'minimize' or 'maximize'.

meta dict[str, Any]

Additional algorithm-specific information (cache stats, etc.).