#!/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/fapso"
export PSO_NPOP=40
export PSO_OMEGA=1.10
export PSO_PHIP=0.57
export PSO_PHIG=0.44

if test -z "${TMUX}"; then
	echo Please run this in a tmux session.
	exit 1
fi

tmux new-window -n "PHIP=0.18" "${C}=1 PSO_PHIP=0.18 ${SH} ${SC} 5 -1 4 ; sh"
tmux new-window -n "PHIP=0.32" "${C}=2 PSO_PHIP=0.32 ${SH} ${SC} 5 -1 4 ; sh"
tmux new-window -n "PHIP=0.57" "${C}=3 PSO_PHIP=0.57 ${SH} ${SC} 5 -1 4 ; sh"
tmux new-window -n "PHIP=0.75" "${C}=4 PSO_PHIP=0.75 ${SH} ${SC} 5 -1 4 ; sh"
tmux new-window -n "PHIP=0.82" "${C}=5 PSO_PHIP=0.82 ${SH} ${SC} 5 -1 4 ; sh"
