From 4a777dc64f17085db3574a3e44b03644ca204584 Mon Sep 17 00:00:00 2001 From: jinningwang Date: Wed, 6 Nov 2024 09:29:57 -0500 Subject: [PATCH] Minor fix in UC._initial_guess --- ams/routines/uc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ams/routines/uc.py b/ams/routines/uc.py index 9754b9ab..50465422 100644 --- a/ams/routines/uc.py +++ b/ams/routines/uc.py @@ -307,7 +307,7 @@ def _initial_guess(self): off_gen = f'{g_idx}' else: off_gen = ', '.join(g_idx) - self.system.StaticGen.alter(src='u', idx=g_idx, value=ug0) + self.system.StaticGen.set(src='u', attr='v', idx=g_idx, value=ug0) logger.warning(f"As initial commitment guess, turn off StaticGen: {off_gen}") return g_idx