Skip to content

Commit

Permalink
remove init_mu, init_beta
Browse files Browse the repository at this point in the history
  • Loading branch information
FreyJo committed Sep 4, 2023
1 parent 78d5197 commit 6680e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions nosnoc/nosnoc_opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ class NosnocOpts:
# used in InitializationStrategy.RK4_smoothed
fix_active_set_fe0: bool = False

# initialization - Stewart
# init_theta: Optional[float] = None
# init_lambda: Optional[float] = None
init_mu: float = 1.0
# initialization - Step
init_alpha: float = 0.5 # for step only
init_beta: float = 1.0

N_finite_elements: int = 2 #
Nfe_list: list = field(default_factory=list) #: list of length N_stages, Nfe per stage

Expand Down
4 changes: 2 additions & 2 deletions nosnoc/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def __init__(self,
for ij in range(dims.n_sys):
self.add_variable(ca.SX.sym(f'mu_{ctrl_idx}_{fe_idx}_{ii+1}_{ij+1}', 1),
self.ind_mu, -np.inf * np.ones(1), np.inf * np.ones(1),
opts.init_mu * np.ones(1), ii, ij)
np.ones(1), ii, ij)
elif opts.pss_mode == PssMode.STEP:
# add alpha
for ij in range(dims.n_sys):
Expand Down Expand Up @@ -349,7 +349,7 @@ def __init__(self,
for ij in range(dims.n_sys):
self.add_variable(ca.SX.sym(f'mu_{ctrl_idx}_{fe_idx}_end_{ij+1}', 1),
self.ind_mu, -np.inf * np.ones(1), np.inf * np.ones(1),
opts.init_mu * np.ones(1), opts.n_s, ij)
np.ones(1), opts.n_s, ij)
elif opts.pss_mode == PssMode.STEP:
# add lambda_n
for ij in range(dims.n_sys):
Expand Down

0 comments on commit 6680e87

Please sign in to comment.