Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion manifold_sampling/m/manifold_sampling_primal.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
while nf < nf_max && delta > tol.mindelta
bar_delta = delta;

successful = false;

% Line 3: manifold sampling while loop
while nf < nf_max

Expand Down Expand Up @@ -168,7 +170,6 @@

% Line 20: See if intersection is nonempty
if any(ismember(hashes_at_nf, Act_Z_k))
successful = false; % iteration is unsuccessful
break
else
% Line 24: Shrink delta
Expand Down
2 changes: 1 addition & 1 deletion manifold_sampling/py/manifold_sampling_primal.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def manifold_sampling_primal(hfun, Ffun, x0, L, U, nf_max, subprob_switch):

bar_delta = delta

successful = False
# Line 3: manifold sampling while loop
while nf + 1 < nf_max:
# Line 4: build models
Expand Down Expand Up @@ -167,7 +168,6 @@ def manifold_sampling_primal(hfun, Ffun, x0, L, U, nf_max, subprob_switch):
if np.all(np.isin(tmp_Act_Z_k, Act_Z_k)):
# Line 20: See if intersection is nonempty
if np.any(np.isin(hashes_at_nf, Act_Z_k)):
successful = False
break
else:
# Line 24: Shrink delta
Expand Down
Loading