#! /usr/local/bin/tcsh -f

set executable = /afs/cs.cmu.edu/project/edrc-codes-7/ateams/Human/pack_agents

foreach Problem (0 1)
  if (! -e prob.30.$Problem) mkdir prob.30.$Problem
  # times are in msec - and are approximations
  set RandomSeederTime = 50
  set FittedSeederTime = 1100
  set HillClimbTime = 130
  set CrossoverTime = 120
  set MutateTime = 90

  set RSP = 1
  set FSP = 1
  set HP = 1
  set MP = 1
  set CP = 1

  foreach Trial (0 1 2 3 4)
    $executable /afs/cs.cmu.edu/user/sachdev/Codes/ateams/Human/Test_problems.3/test_prob.30.$Problem 30 300 -1 $RSP $FSP $HP $MP $CP | & tee prob.30.$Problem/prob$Problem.$Trial.$RSP.$FSP.$HP.$MP.$CP

    foreach RSP (50 200 800 3200)
      $executable /afs/cs.cmu.edu/user/sachdev/Codes/ateams/Human/Test_problems.3/test_prob.30.$Problem 30 300 -1 $RSP $FSP $HP $MP $CP | & tee prob.30.$Problem/prob$Problem.$Trial.$RSP.$FSP.$HP.$MP.$CP
    end
    set RSP = 1

    foreach FSP (1100 4400 17600 70400)
      $executable /afs/cs.cmu.edu/user/sachdev/Codes/ateams/Human/Test_problems.3/test_prob.30.$Problem 30 300 -1 $RSP $FSP $HP $MP $CP | & tee prob.30.$Problem/prob$Problem.$Trial.$RSP.$FSP.$HP.$MP.$CP
    end
    set FSP = 1

    foreach HP (130 520 2080 8320)
      $executable /afs/cs.cmu.edu/user/sachdev/Codes/ateams/Human/Test_problems.3/test_prob.30.$Problem 30 300 -1 $RSP $FSP $HP $MP $CP | & tee prob.30.$Problem/prob$Problem.$Trial.$RSP.$FSP.$HP.$MP.$CP
    end
    set HP = 1

    foreach MP (120 480 1920 7680)
      $executable /afs/cs.cmu.edu/user/sachdev/Codes/ateams/Human/Test_problems.3/test_prob.30.$Problem 30 300 -1 $RSP $FSP $HP $MP $CP | & tee prob.30.$Problem/prob$Problem.$Trial.$RSP.$FSP.$HP.$MP.$CP
    end
    set MP = 1

    foreach CP (90 360 1440 5760)
      $executable /afs/cs.cmu.edu/user/sachdev/Codes/ateams/Human/Test_problems.3/test_prob.30.$Problem 30 300 -1 $RSP $FSP $HP $MP $CP | & tee prob.30.$Problem/prob$Problem.$Trial.$RSP.$FSP.$HP.$MP.$CP
    end
    set CP = 1

  end
end
