Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhang2523 committed Mar 11, 2025
1 parent 2a71430 commit d977a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmoon/auto_tester/test_synthetic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# It is used to test all synthetic problems. CI.

import os
import sys
current_dir = os.path.dirname(os.path.abspath(__file__))
Expand All @@ -23,7 +22,6 @@
import numpy as np



if __name__ == '__main__':

parser = argparse.ArgumentParser()
Expand All @@ -46,6 +44,7 @@

solver = solver_dict[parser.parse_args().solver_name]
args = parser.parse_args()

args.method_name = args.solver_name if args.solver_name != 'GradAgg' \
else '{}_{}'.format(args.solver_name, args.agg_name)
problem = VLMOP1(n_var=10)
Expand All @@ -61,6 +60,7 @@

x_init = get_x_init(n_probs, problem.n_var,
lbound=problem.lbound, ubound=problem.ubound)

ts = time()
res = solver.solve(x_init=x_init)
ts = time() - ts
Expand Down

0 comments on commit d977a2f

Please sign in to comment.