mirror of
https://github.com/ejeanboris/MDAF.git
synced 2025-12-15 21:08:15 +00:00
urgency
This commit is contained in:
8
SourceCode/TestFunctions/Leon.py
Normal file
8
SourceCode/TestFunctions/Leon.py
Normal file
@@ -0,0 +1,8 @@
|
||||
#Import math library
|
||||
|
||||
|
||||
def main(args):
|
||||
for x in args:
|
||||
if x < -1.2 or x > 1.2:
|
||||
return 0
|
||||
return (100*(args[1]-args[0])**2)+(1-args[0])**2
|
||||
Reference in New Issue
Block a user