Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sir, I understand that you want to change the generation/load for a perticular subsystem either increment or decrement. this activity can be done by designing the subsystem and use the pertifuclar subsystem for increment or decrement.

    change = 100
        ############################   Automation ##############################
   psspy.bsys(1,0,[0.0, 0.12E+04],1,[4601],0,[],0,[],0,[]) # area 4601 having subsystem identifier 1
    #iniatialization and increment of generation in area 4601
    psspy.scal_2(1,0,1,[0,0,0,0,0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0])
    psspy.scal_2(1,0,2,[2,3,1,1,0],[_f, change,_f,_f,_f,_f,_f])

    psspy.bsys(2,0,[0.0, 0.12E+04],1,[4101],0,[],0,[],0,[])# area 4101 having subsystem identifier 2

    # initialization and decrement of generation in area 4101
    psspy.scal_2(2,0,1,[0,0,0,0,0],[0.0,0.0,0.0,0.0,0.0,0.0,0.0])
    ierr = psspy.scal_2(2,0,2,[2,3,1,1,0],[ _f,-change,_f,_f, _f,_f,_f])