From 9fe29c227634b2ce172e0b29598288300f70f70d Mon Sep 17 00:00:00 2001 From: Huangzizhou Date: Thu, 10 Oct 2024 21:35:02 -0400 Subject: [PATCH] small changes --- scripts/optimize.py | 4 ++-- scripts/state-1.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/optimize.py b/scripts/optimize.py index 52a6b888..3cd6605d 100644 --- a/scripts/optimize.py +++ b/scripts/optimize.py @@ -245,7 +245,7 @@ def load_opt_json(path): parser.add_argument('--E', type=float, default=1e6) parser.add_argument('--nu', type=float, default=0.3) parser.add_argument('--no_contact', action='store_true') - parser.add_argument('--dhat', type=float, default=1e-3) + parser.add_argument('--dhat', type=float, default=5e-4) parser.add_argument('--barrier', type=float, default=-1) parser.add_argument('--threads', type=int, default=16) @@ -327,7 +327,7 @@ def load_opt_json(path): nu = args.nu contact = not args.no_contact dhat = args.dhat - barrier = E if args.barrier <= 0 else args.barrier + barrier = 100 * E if args.barrier <= 0 else args.barrier folder = "../result/" if args.no_contact: diff --git a/scripts/state-1.json b/scripts/state-1.json index e418ad79..f9fcb7e8 100644 --- a/scripts/state-1.json +++ b/scripts/state-1.json @@ -63,6 +63,7 @@ "Newton": { "use_psd_projection": false, "reg_weight_inc": 100, + "reg_weight_max": 1e16, "use_psd_projection_in_regularized": false }, "advanced": {