Skip to content

Commit

Permalink
Py311 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Bayoumy committed Apr 28, 2024
1 parent 6ad887d commit 7f0274e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Binary file modified dist/DMDO-2404-py3-none-any.whl
Binary file not shown.
16 changes: 12 additions & 4 deletions src/DMDO/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,20 @@ class coordinationData:
class ADMM_data(coordinationData):
beta: float = 1.3
gamma: float = 0.5
q: np.ndarray = np.zeros([0,0])
qold: np.ndarray = np.zeros([0,0])
q: np.ndarray = None
qold: np.ndarray = None
phi: float = 1.0
v: np.ndarray = np.zeros([0,0])
w: np.ndarray = np.zeros([0,0])
v: np.ndarray = None
w: np.ndarray = None
update_w: bool = False
M_update_scheme: int = w_scheme.MEDIAN
eps_qo: List = None
save_q_in: bool = False
save_q_in_out: bool = False
eps_fo: List = None



# COMPLETE: ADMM needs to be customized for this code
@dataclass
class ADMM(ADMM_data):
Expand All @@ -76,6 +78,12 @@ def __init__(self, nsp, beta, budget, index_of_master_SP, display, scaling, mode
self.eps_fo = []
self.index = index

self.q = np.zeros([0,0])
self.qold = np.zeros([0,0])
self.phi: float = 1.0
self.v = np.zeros([0,0])
self.w = np.zeros([0,0])

def clone_point(self, p: variableData):
self.var_group.append(p)

Expand Down

0 comments on commit 7f0274e

Please sign in to comment.