56 global SourceDir, BuildDir
60 clr.set_use_colors(
True)
64 print(clr.END + clr.BOLD + clr.VIOLET +
"-------------------------------------------")
65 print(clr.END + clr.BOLD + clr.VIOLET +
" MercuryDPM SimpleOpt tool ")
66 print(clr.END + clr.BOLD + clr.VIOLET +
"-------------------------------------------")
68 if (len(sys.argv) == 3):
69 source_dir = sys.argv[1]
70 build_dir = sys.argv[2]
72 print(
"Source dir: ", source_dir)
73 print(
"Build dir: ", build_dir)
75 res = minimize(real_fun, x0, method=
'Powell', options = {
'xtol':1e-3,
'ftol':1e-4})
79 print(clr.END +
"Converged to the known solution: ", np.allclose(res[
"x"], xc))
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet print(const Packet &a)
Definition: GenericPacketMath.h:1166
def main()
Definition: SimpleOpt.py:55