extract_fom_and_gradient# lumopt2.optimizer.base_optimizer.extract_fom_and_gradient(result) → Tuple[float, ndarray | None]# Extract FOM and gradient from objective function result. Parameters: resultfloat or tupleResult from objective function, either a scalar FOM or (fom, gradient) tuple. Returns: fomfloatThe FOM value. gradientnp.ndarray or NoneThe gradient if available, None otherwise.