Digital Twin - GUI
|
This class reads all the important data out of an Excel file related to the model. More...
Public Member Functions | |
ModelData (String dir, String[] locNames, LocationCB[] loc, Dictionary< String, int > locDic) | |
Constructor. More... | |
String | toDatString (double d, DateTime start, DateTime end) |
Concatenates the array and set strings, suitable for Xpress. Considers only the needed data, e.g. nothing outside of the time horizon. More... | |
Public Attributes | |
int | maxN = 0 |
Maximum amount of orders for a single product. More... | |
Private Member Functions | |
void | createOrderData (DataTable sheet1, string sheetName) |
String | getAlpha (double d) |
Writes data to array "alpha". More... | |
String | getBeta () |
Writes data to array "beta". More... | |
void | getContainerData (DataTable sheet) |
Extract container data from sheet. More... | |
String | getDelta () |
Writes data to array "delta". More... | |
String | getEpsilon () |
Writes data to array "epsilon". More... | |
String | getEta (double d) |
Writes data to array "eta". More... | |
String | getGamma (DateTime start, double d) |
Writes data to array "gamma". More... | |
String | getKappa () |
Writes data to array "kappa". More... | |
String | getKhi () |
Writes data to array "khi". More... | |
String | getLambda () |
Writes data to array "lambda". More... | |
String | getLocations () |
Writes data to set "S". Initilizes usableLocationDictionary. More... | |
String | getLocOfMachine () |
Writes data to array "LocOfMachine". More... | |
String | getMachines () |
Writes data to set "M". More... | |
String | getMachinesOfLocation () |
Writes data to array "MachinesOfLocation". More... | |
void | getMatrixData (DataTable sheet, String s) |
Extract matrix data from sheet. More... | |
void | getModelData () |
Reads all the excel sheets and writes data to respective arrays. More... | |
String | getNAndMaxN (DateTime start, DateTime end) |
Writes data to array "N" and field "nMax". Initializes relevantOrders by given time horizon. More... | |
String | getNu () |
Writes data to array "nu". More... | |
String | getProducts () |
Writes data to set "P". Initializes producableProductDictionary. More... | |
String | getPsi () |
Writes data to array "psi". More... | |
String | getRho () |
Writes data to array "rho". More... | |
String | getSigma () |
Writes data to array "sigma". More... | |
void | getStockData (DataTable sheet) |
Extract stock data from sheet. More... | |
String | getT (double d, DateTime start, DateTime end) |
Writes data to set "T". More... | |
String | getTau (double d) |
Writes data to set "tau". More... | |
void | getToolkitData (DataTable sheet) |
Extract Toolkit data from sheet. More... | |
String | getToolkits () |
Writes data to set "W". More... | |
String | getV (double d) |
Writes data to array "v". More... | |
String | getWdep () |
Writes data to array "Wdep". More... | |
String | getWProducer () |
Writes data to array "WProducer". More... | |
String | getYInit () |
Writes data to array "yInit". More... | |
Private Attributes | |
double[][] | DauerBauteillogistik |
Matrix that contains DauerBauteillogistik data for the model. Index is: [S][S]. More... | |
double[][] | DauerWerkzeuglogistik |
Matrix that contains DauerWerkzeuglogistik data for the model. Index is: [S][S]. More... | |
String | Dir |
Directory CheckboxCreator reads from. More... | |
double[] | FuellgradBehaelter |
Array that contains FuellgradBehaelter data for the model. Index is P. More... | |
double[] | FuellgradTransportmittel |
Array that contains FuellgradTransportmittel data for the model. Index is P. More... | |
double[][] | KostenBauteillogistik |
Matrix that contains KostenBauteillogistik data for the model. Index is: [S][S]. More... | |
double[][] | KostenWerkzeuglogistik |
Matrix that contains KostenWerkzeuglogistik data for the model. Index is: [S][S]. More... | |
Dictionary< String, int > | locationDictionary |
Dictionary that maps a location's name to its position in the locations array. More... | |
String[] | locationNames |
Array that contains all of the locations' names. More... | |
LocationCB[] | locations |
Array that contains all of the locations. More... | |
List< Order >[][] | orders |
List of orders for a product p at location S. Index is: [S][P]. More... | |
Dictionary< String, int > | producableProductDictionary |
Subdictionary that maps a product's name to its position in the product array. Only conatains checked product. More... | |
Dictionary< String, int > | productDictionary |
Dictionary that maps a product's name to its position in the product array. More... | |
String[] | productNames |
Array that contains all of the products' names. More... | |
List< Order >[][] | relevantOrders |
List of orders for a product p at location S, that fall into our time horizon. Index is: [S][P]. More... | |
double[][] | StockOfProdAtLocation |
Matrix that contains StockOfProdAtLocation data for the model. Index is: [P][S]. More... | |
Dictionary< String, int > | usableLocationDictionary |
Subdictionary that maps a location's name to its position in the locations array. Only conatains checked locations. More... | |
List< Toolkit > | usableToolkits |
List that contains all Toolkits. More... | |
This class reads all the important data out of an Excel file related to the model.
GUI.IO_Modules.ModelData.ModelData | ( | String | dir, |
String[] | locNames, | ||
LocationCB[] | loc, | ||
Dictionary< String, int > | locDic | ||
) |
Constructor.
dir | Directory ModelData reads from. |
locNames | All the location names. |
loc | All the location checkboxes. |
locDic | Dictionary that maps a location's name to its position in the locations array. |
|
private |
Writes data to array "alpha".
d | Factor that determines length of a timeslot. Length is 60min*d. |
|
private |
Writes data to array "beta".
|
private |
Extract container data from sheet.
sheet | DataTable that is extracted from an Excel worksheet. |
|
private |
Writes data to array "delta".
|
private |
Writes data to array "epsilon".
|
private |
Writes data to array "eta".
d | Factor that determines length of a timeslot. Length is 60min*d. |
|
private |
Writes data to array "gamma".
start | Start time for time horizon. |
d | Factor that determines length of timeslot. Length is 60min*d. |
|
private |
Writes data to array "kappa".
|
private |
Writes data to array "khi".
|
private |
Writes data to array "lambda".
|
private |
Writes data to set "S". Initilizes usableLocationDictionary.
|
private |
Writes data to array "LocOfMachine".
|
private |
Writes data to set "M".
|
private |
Writes data to array "MachinesOfLocation".
|
private |
Extract matrix data from sheet.
sheet | DataTable that is extracted from an Excel worksheet. |
s | Name of the array this function writes to. |
|
private |
Reads all the excel sheets and writes data to respective arrays.
|
private |
Writes data to array "N" and field "nMax". Initializes relevantOrders by given time horizon.
start | Start time for time horizon. |
end | End time for time horizon. |
|
private |
Writes data to array "nu".
|
private |
Writes data to set "P". Initializes producableProductDictionary.
|
private |
Writes data to array "psi".
|
private |
Writes data to array "rho".
|
private |
Writes data to array "sigma".
|
private |
Extract stock data from sheet.
sheet | DataTable that is extracted from an Excel worksheet. |
|
private |
Writes data to set "T".
d | Factor for determining timeslot length. Length is 60min*d. |
start | Start time of time horizon. |
end | End time of time horizon. |
|
private |
Writes data to set "tau".
d | Factor for determining timeslot length. Length is 60min*d. |
|
private |
Extract Toolkit data from sheet.
sheet | DataTable that is extracted from an Excel worksheet. |
|
private |
Writes data to set "W".
|
private |
Writes data to array "v".
|
private |
Writes data to array "Wdep".
|
private |
Writes data to array "WProducer".
|
private |
Writes data to array "yInit".
String GUI.IO_Modules.ModelData.toDatString | ( | double | d, |
DateTime | start, | ||
DateTime | end | ||
) |
Concatenates the array and set strings, suitable for Xpress. Considers only the needed data, e.g. nothing outside of the time horizon.
d | d is between 0 and 1. Timeslot length will be 60min*d. |
start | Starttime for optimization. |
end | Endtime for optimization. |
|
private |
Matrix that contains DauerBauteillogistik data for the model. Index is: [S][S].
|
private |
Matrix that contains DauerWerkzeuglogistik data for the model. Index is: [S][S].
|
private |
Directory CheckboxCreator reads from.
|
private |
Array that contains FuellgradBehaelter data for the model. Index is P.
|
private |
Array that contains FuellgradTransportmittel data for the model. Index is P.
|
private |
Matrix that contains KostenBauteillogistik data for the model. Index is: [S][S].
|
private |
Matrix that contains KostenWerkzeuglogistik data for the model. Index is: [S][S].
|
private |
Dictionary that maps a location's name to its position in the locations array.
|
private |
Array that contains all of the locations' names.
|
private |
Array that contains all of the locations.
int GUI.IO_Modules.ModelData.maxN = 0 |
Maximum amount of orders for a single product.
|
private |
List of orders for a product p at location S. Index is: [S][P].
|
private |
Subdictionary that maps a product's name to its position in the product array. Only conatains checked product.
|
private |
Dictionary that maps a product's name to its position in the product array.
|
private |
Array that contains all of the products' names.
|
private |
List of orders for a product p at location S, that fall into our time horizon. Index is: [S][P].
|
private |
Matrix that contains StockOfProdAtLocation data for the model. Index is: [P][S].
|
private |
Subdictionary that maps a location's name to its position in the locations array. Only conatains checked locations.
|
private |
List that contains all Toolkits.