#!/usr/bin/env python
from olympus.surfaces import GaussianMixture
from olympus import Logger
[docs]class K2(GaussianMixture):
def __init__(self, noise=None):
"""Gaussian Mixture surface derived from the GaussianMixture generator using ``random_seed=8611``.
Args:
noise (Noise): Noise object that injects noise into the evaluations of the surface. Default is None.
"""
peak = 8611
GaussianMixture.__init__(self, param_dim=2, num_gauss=2, cov_scale=0.05, diagonal_cov=True,
noise=noise, random_seed=peak)
@property
def minima(self):
# TODO: find minimum numerically and hardcode
message = 'Unknown minima: these need to be found numerically'
Logger.log(message, 'WARNING')
return None
@property
def maxima(self):
# TODO: find minimum numerically and hardcode
message = 'Unknown maxima: these need to be found numerically'
Logger.log(message, 'WARNING')
return None