Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce convergence condition #861

Merged
merged 4 commits into from
May 4, 2023
Merged

enforce convergence condition #861

merged 4 commits into from
May 4, 2023

Conversation

najaverzat
Copy link
Contributor

I changed the ColGenPhaseOutput structure to add a field min_sense (boolean). I use it to enforce the convergence condition in colgen_has_converged (I add the condition ( (output.min_sense) && (output.db >= output.mlp) ) || ( !(output.min_sense) && (output.db <= output.mlp) ) to the condition abs(output.mlp - output.db) < 1e-5

Remark: if I change the old condition abs(output.mlp - output.db) < 1e-5 by new condition ( (output.min_sense) && (output.db >= output.mlp) ) || ( !(output.min_sense) && (output.db <= output.mlp) ), test gap_with_all_phases_in_colgen failed (see log)

message.txt

@najaverzat najaverzat linked an issue May 4, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Patch coverage: 80.00% and no project coverage change.

Comparison is base (94e8757) 67.32% compared to head (68956cf) 67.32%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #861   +/-   ##
=======================================
  Coverage   67.32%   67.32%           
=======================================
  Files          78       78           
  Lines        6010     6010           
=======================================
  Hits         4046     4046           
  Misses       1964     1964           
Impacted Files Coverage Δ
src/ColGen/interface.jl 71.96% <50.00%> (ø)
src/Algorithm/colgen/default.jl 98.54% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@guimarqu guimarqu merged commit 5bcbed5 into master May 4, 2023
@guimarqu guimarqu deleted the convergence-condition branch May 10, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ColGen: fix convergence condition
2 participants