Skip to content

Commit

Permalink
Use gradient evaluation for Evaluator test
Browse files Browse the repository at this point in the history
  • Loading branch information
leeping committed Nov 24, 2019
1 parent b3b4dd1 commit dc27aa1
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 291 deletions.
1 change: 1 addition & 0 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies:
- swig
- future
- pymbar=3.0.3
- mdtraj=1.9.1
- openmm
- ambertools
# The following two are not compatible with python 2.7 and 3.5, so they are conditionally installed in .travis.yml
Expand Down
2 changes: 1 addition & 1 deletion src/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def print_progress(itn, nx, nd, ng, clr, x, std, qual):
if ngd < self.convergence_gradient:
logger.info("Convergence criterion reached for gradient norm (%.2e)\n" % self.convergence_gradient)
ncrit += 1
if ndx < self.convergence_step and ITERATION > self.iterinit:
if ndx < self.convergence_step and ndx >= 0.0 and ITERATION > self.iterinit:
logger.info("Convergence criterion reached in step size (%.2e)\n" % self.convergence_step)
ncrit += 1
if stdfront < self.convergence_objective and len(X_hist) >= self.hist:
Expand Down
Loading

0 comments on commit dc27aa1

Please sign in to comment.