#!/bin/bash
# Copyright (C) 2020 Anonymous Authors of ICLR-2021 Submission #471
# USE THE CODE FOR ACADEMIC PURPOSE ONLY.

set -x
unset $TMUX
C="CUDA_VISIBLE_DEVICES"
SH="bash"
SC="bin/pso"
export PSO_NPOP=40
export PSO_OMEGA=1.10
export PSO_PHIP=0.57
export PSO_PHIG=0.44

tmux new-session -s "psoparam" "gpustat -i1"\; split-window "htop"\;\
	new-window -n "PSO_OMEGA=0.72" "${C}=0 PSO_OMEGA=0.72     ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_OMEGA=1.10" "${C}=0 PSO_OMEGA=1.10     ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_OMEGA=1.19" "${C}=0 PSO_OMEGA=1.19     ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_PHIP=0.11 " "${C}=1 PSO_PHIP=0.11      ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_PHIP=0.33 " "${C}=1 PSO_PHIP=0.33      ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_PHIP=0.57 " "${C}=1 PSO_PHIP=0.57      ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_PHIG=0.04 " "${C}=2 PSO_PHIG=0.04      ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_PHIG=0.16 " "${C}=2 PSO_PHIG=0.16      ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_PHIG=0.44 " "${C}=2 PSO_PHIG=0.44      ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_NPOP=100  " "${C}=3 PSO_NPOP=100       ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_NPOP=50   " "${C}=3 PSO_NPOP=50        ${SH} ${SC} 5 -1 4 ; sh"\;\
	new-window -n "PSO_NPOP=40   " "${C}=3 PSO_NPOP=40        ${SH} ${SC} 5 -1 4 ; sh"\;\
	detach
