#!/bin/bash # V11 Test Parameter Sweep Launch Script # Initializes database and starts coordinator for 256-combination test sweep set -e # Exit on error echo "================================================================" echo "V11 TEST PARAMETER SWEEP" echo "================================================================" echo "Combinations: 256 (2^8 parameters)" echo "Chunks: 2 × 128 combinations" echo "Worker 1: Always available (27 cores)" echo "Worker 2: Office hours aware (27 cores nights/weekends only)" echo "Expected runtime: 6-25 minutes" echo "================================================================" echo "" cd "$(dirname "$0")" # Check if data file exists if [ ! -f "data/solusdt_5m.csv" ]; then echo "✗ Error: data/solusdt_5m.csv not found" echo " Please ensure market data is available" exit 1 fi echo "✓ Market data found" # Check if coordinator script exists if [ ! -f "v11_test_coordinator.py" ]; then echo "✗ Error: v11_test_coordinator.py not found" exit 1 fi echo "✓ Coordinator script found" # Launch coordinator in background echo "" echo "🚀 Starting coordinator..." nohup python3 v11_test_coordinator.py > coordinator_v11_test.log 2>&1 & COORDINATOR_PID=$! echo "✓ Coordinator started (PID: $COORDINATOR_PID)" echo "" echo "================================================================" echo "MONITORING" echo "================================================================" echo "Log file: tail -f coordinator_v11_test.log" echo "Database: sqlite3 exploration.db" echo "Results: cluster/v11_test_results/*.csv" echo "" echo "To check status:" echo " sqlite3 exploration.db \"SELECT * FROM v11_test_chunks\"" echo "" echo "To stop sweep:" echo " kill $COORDINATOR_PID" echo "================================================================"