A controller comprising: a memory having computer-readable instructions stored therein; and at least one processor characterized in that the at least one processor is configured to execute the computer-readable instructions to, determine a first set of inductance values for at least one load machine (380 1 -380 n) coupled to a first inverter (360 1 -360 n) and a second set of inductance values for a generator machine coupled to a second inverter the first inverter (360 1 -360 n) and the second inverter being connected to the same direct current,DC, bus, and, determine a first set of P-I gains for the at least one load machine based on the first set of inductance values and a first current regulator bandwidth, determine a second set of P-I gains for the generator machine based on the second set of inductance values and the first current regulator bandwidth, and generate voltage commands for driving the at least one load machine and the generator machine based on at least the first and second sets of gains wherein the first current regulator bandwidth is based on current rise time in response to a step input function; and wherein the first set of inductance values are d-axis and q-axis inductances of the at least one load machine, the second set of inductance values are d-axis and q-axis inductances of the generator machine, the first set of gains are d-axis and q-axis P-I gains of a proportional integral controller of the at least one load machine, the second set of gains are d-axis and q-axis P-I gains of a proportional integral controller of the generator machine. a memory having computer-readable instructions stored therein; and at least one processor characterized in that the at least one processor is configured to execute the computer-readable instructions to, determine a first set of inductance values for at least one load machine (380 1 -380 n) coupled to a first inverter (360 1 -360 n) and a second set of inductance values for a generator machine coupled to a second inverter the first inverter (360 1 -360 n) and the second inverter being connected to the same direct current,DC, bus, and, determine a first set of P-I gains for the at least one load machine based on the first set of inductance values and a first current regulator bandwidth, determine a second set of P-I gains for the generator machine based on the second set of inductance values and the first current regulator bandwidth, and generate voltage commands for driving the at least one load machine and the generator machine based on at least the first and second sets of gains wherein the first current regulator bandwidth is based on current rise time in response to a step input function; and wherein the first set of inductance values are d-axis and q-axis inductances of the at least one load machine, the second set of inductance values are d-axis and q-axis inductances of the generator machine, the first set of gains are d-axis and q-axis P-I gains of a proportional integral controller of the at least one load machine, the second set of gains are d-axis and q-axis P-I gains of a proportional integral controller of the generator machine. determine a first set of inductance values for at least one load machine (380 1 -380 n) coupled to a first inverter (360 1 -360 n) and a second set of inductance values for a generator machine coupled to a second inverter the first inverter (360 1 -360 n) and the second inverter being connected to the same direct current,DC, bus, and, determine a first set of P-I gains for the at least one load machine based on the first set of inductance values and a first current regulator bandwidth, determine a second set of P-I gains for the generator machine based on the second set of inductance values and the first current regulator bandwidth, and generate voltage commands for driving the at least one load machine and the generator machine based on at least the first and second sets of gains wherein the first current regulator bandwidth is based on current rise time in response to a step input function; and wherein the first set of inductance values are d-axis and q-axis inductances of the at least one load machine, the second set of inductance values are d-axis and q-axis inductances of the generator machine, the first set of gains are d-axis and q-axis P-I gains of a proportional integral controller of the at least one load machine, the second set of gains are d-axis and q-axis P-I gains of a proportional integral controller of the generator machine.