public class unbalancedLoadSetPoints
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
active_gens |
private int[] |
bin_var |
private double |
demand |
private int[] |
gen_pris |
private double[] |
high_limit |
private double[] |
low_limit |
private int |
nr_of_gen |
private SFOCVector |
SFOC |
private double[] |
w_max |
Constructor and Description |
---|
unbalancedLoadSetPoints(double[] w_max,
SFOCVector SFOC)
Constructor that initializes the variables
|
Modifier and Type | Method and Description |
---|---|
double[] |
calculateOptimalLoad()
Rearranges the order of the generators if a generator with high priority is not
running for some reason, then runs the optimization algorithm with the new order.
|
double[] |
getW_max()
Returns the maximum power for each generator
|
double |
NecessaryProduction(double[] temp_load,
int gen)
Returns the necessary load of the last generator.
|
double[] |
OptimalSetPoints(int gen1,
int gen2,
int gen3,
int gen4)
Optimal load algorithm
|
void |
setBin_var(int[] bin_var)
Sets the running bit for each generator
|
void |
setDemand(double demand)
Sets the demand
|
void |
setGen_pris(int[] gen_pris)
Sets the generator priorities
|
void |
setHigh_limit(double[] high_limit)
Sets the high limit for each generator
|
void |
setLow_limit(double[] low_limit)
Sets the low limit for each generator
|
private double[] low_limit
private double[] high_limit
private int nr_of_gen
private double[] w_max
private SFOCVector SFOC
private double demand
private int[] bin_var
private int active_gens
private int[] gen_pris
public unbalancedLoadSetPoints(double[] w_max, SFOCVector SFOC)
w_max
- Contains the maximum power for each generatorSFOC
- Contains the SFOC for each generatorpublic double[] getW_max()
public void setDemand(double demand)
demand
- Power demandpublic void setBin_var(int[] bin_var)
bin_var
- Running bit for each generatorpublic void setGen_pris(int[] gen_pris)
gen_pris
- Priorities of the generatorspublic void setLow_limit(double[] low_limit)
low_limit
- Low limit for each generatorpublic void setHigh_limit(double[] high_limit)
high_limit
- High limit for each generatorpublic double NecessaryProduction(double[] temp_load, int gen)
temp_load
- The load of the other generators.gen
- The number representing the generator that will take the remaining load.public double[] calculateOptimalLoad()
public double[] OptimalSetPoints(int gen1, int gen2, int gen3, int gen4)
gen1
- Generator with highest order (generally priority 1)gen2
- Generator with order lower than gen1 (generally priority 2)gen3
- Generator with order lower than gen2 (generally priority 3)gen4
- Generator with order lower than gen3 (generally priority 4)