Beispiel #1
0
    def __init__(self, test_landscape=None, **kwargs):

        super(TestInterface, self).__init__(**kwargs)
        if test_landscape is None:
            self.test_landscape = mlt.TestLandscape()
        else:
            self.test_landscape = test_landscape
        self.test_count = 0
Beispiel #2
0
def main(argv):

    params = np.array([float(v) for v in argv])
    tester = mlt.TestLandscape()
    cost_dict = tester.get_cost_dict(params)

    print('M-LOOP_start')
    print('cost = ' + str(cost_dict['cost']))
    print('M-LOOP_end')