import os
import sys
import math
PSSE_LOCATION=r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN'
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION
import psspy
import redirect
redirect.psse2py()
psspy.psseinit(10000)
psspy.case(r'E:\PSSE Programming\Basic Literature\Vidu2.2.7\htdA3.sav')
psspy.bus_chng_3(101,[0,0,2,0],[0, 1.052,-5.1561,0,0,0,0],0)
psspy.bus_chng_3(102,[0,0,2,0],[0, 1.0885,0,0,0,0,0],0)
psspy.bus_chng_3(103,[0,0,2,0],[0, 1.0381, 1.0795,0,0,0,0],0)
psspy.bus_chng_3(110,[0,_i,2,0],[0,0,0,0,0,0,0],0)
psspy.bus_chng_3(110,[0,0,5,0],[0,0,0,0,0,0,0],0)
psspy.bus_chng_3(103,[0,0,5,0],[0, 1.0381, 1.0795,0,0,0,0],0)
psspy.bus_chng_3(102,[0,0,5,0],[0,0,0,0,0,0,0],0)