simopt-admin / simopt

A testbed of simulation-optimization problems and solvers
MIT License
56 stars 24 forks source link

ASTRODF/FACSIZE-2 Throwing Runtime Warnings #69

Open Grochocinski opened 3 weeks ago

Grochocinski commented 3 weeks ago

Describe the bug ProblemSolver simulations involving both ASTRODF and FACSIZE-2 produce several runtime warnings while running with default settings.

To Reproduce Steps to reproduce the behavior:

  1. Open the New Experiment Window
  2. Add ASTRODF as the solver and FACSIZE-2 (Max Service for Facility Sizing) as the problem (leave default arguments)
  3. Create a new experiment and hit "All" to run through all steps. The following will be printed to the terminal:

During Run:

simopt\simopt\solvers\astrodf.py:449: RuntimeWarning: invalid value encountered in divide
  candidate_x = new_x - tau * delta_k * grad / norm(grad)

During Post Normalizing:

simopt\simopt\experiment_base.py:2084: RuntimeWarning: divide by zero encountered in scalar divide
  (est_objective - opt_obj_val) / initial_opt_gap

Expected behavior No errors should be thrown

Desktop (please complete the following information):