Run simulations on a reasonable set of parameters.

  Arguments:
    logdir: the directory into which to store all the runs' data
    verbose: if true, print out each run's name as it begins.

def run_all(logdir, verbose=False):
  """Run simulations on a reasonable set of parameters.

  Arguments:
    logdir: the directory into which to store all the runs' data
    verbose: if true, print out each run's name as it begins.
  """
  writer = tf.summary.FileWriter(logdir)
  writer.add_summary(create_experiment_summary())
  writer.close()
  session_num = 0
  num_sessions = (len(TEMPERATURE_LIST)*len(TEMPERATURE_LIST)*
                  len(HEAT_COEFFICIENTS)*2)
  for initial_temperature in TEMPERATURE_LIST:
    for ambient_temperature in TEMPERATURE_LIST:
      for material in HEAT_COEFFICIENTS:
        hparams = {u'initial_temperature': initial_temperature,
                   u'ambient_temperature': ambient_temperature,
                   u'material': material}
        hparam_str = str(hparams)
        group_name = fingerprint(hparam_str)
        for repeat_idx in xrange(2):
          session_id = str(session_num)
          if verbose:
            print('--- Running training session %d/%d' % (session_num + 1,
                                                          num_sessions))
            print(hparam_str)
            print('--- repeat #: %d' % (repeat_idx+1))
          run(logdir, session_id, hparams, group_name)
          session_num += 1