Closed cshjin closed 1 year ago
Input: part of the buses are perturbed in pd and qd
# TODO: replace the net_data['load'] with buses in mods file for k in net_data['load']: # update pd/qd with augmented config mpc['bus'].loc[mpc['bus']['bus_i'] == int(k), "Pd"] = net_data['load'][k]['pd'] * 100 mpc['bus'].loc[mpc['bus']['bus_i'] == int(k), "Qd"] = net_data['load'][k]['qd'] * 100
output:
y = [res_data['solution']['load'][k]['qd'] for k in sorted(res_data['solution']['load'].keys())]
forward
type=1
Now clf on buses, and use keys to readout the load buses in predictor
Input: part of the buses are perturbed in pd and qd
output:
y = [res_data['solution']['load'][k]['qd'] for k in sorted(res_data['solution']['load'].keys())]
with keys in mods onlyforward
function with aligned keys only