parser.add_argument('-s','--sample_data',help='Specify the sample data you have found as numbers separated by spaces.',action=Store_as_array,type=float,nargs='+',default=np.array([]))
args=vars(parser.parse_args())
if(args['method']=="0"):
args['method']='L-BFGS-B'
if(args['method']=="1"):
args['method']='PowellDirectionalSolver'
if(args['method']=="2"):
args['method']='SLSQP'
# Rough approximations from manual measuring.
# Does not affect optimization result. Only used for manual sanity check.
...
...
@@ -365,7 +371,15 @@ if __name__ == "__main__":
# You might want to manually input positions where you made samples here like