#NEWLINE# def execute( self ) : #NEWLINE# #INDENT# 'calculate the new objective value' #NEWLINE# x = self . x #NEWLINE# self . result = ( ( ( ( ( ( ( ( ( x [ 0 ] ** 2 ) - ( 5.0 * x [ 0 ] ) ) + ( x [ 1 ] ** 2 ) ) - ( 5.0 * x [ 1 ] ) ) + ( 2.0 * ( x [ 2 ] ** 2 ) ) ) - ( 21.0 * x [ 2 ] ) ) + ( x [ 3 ] ** 2 ) ) + ( 7.0 * x [ 3 ] ) ) + 50 ) #NEWLINE# self . obj_string = 'Bad' #NEWLINE# self . g [ 0 ] = ( ( ( ( ( ( ( ( ( x [ 0 ] ** 2 ) + x [ 0 ] ) + ( x [ 1 ] ** 2 ) ) - x [ 1 ] ) + ( x [ 2 ] ** 2 ) ) + x [ 2 ] ) + ( x [ 3 ] ** 2 ) ) - x [ 3 ] ) - 8 ) #NEWLINE# self . g [ 1 ] = ( ( ( ( ( ( ( x [ 0 ] ** 2 ) - x [ 0 ] ) + ( 2 * ( x [ 1 ] ** 2 ) ) ) + ( x [ 2 ] ** 2 ) ) + ( 2 * ( x [ 3 ] ** 2 ) ) ) - x [ 3 ] ) - 10 ) #NEWLINE# self . g [ 2 ] = ( ( ( ( ( ( ( 2 * ( x [ 0 ] ** 2 ) ) + ( 2 * x [ 0 ] ) ) + ( x [ 1 ] ** 2 ) ) - x [ 1 ] ) + ( x [ 2 ] ** 2 ) ) - self [ 3 ] ) - 5 )