|
SiMoLib.NET API V4.0.0.1
|
Interface to a single cutting stock algorithm thread. More...
Public Member Functions | |
| double | Start () |
| To trigger an optimization run, the return value is if positive the optimal value, if negative OPTI_ERROR_NOT_LICENSED = -1, OPTI_ERROR_DIMENSION_OVERSIZED = -2, OPTI_ERROR_ITEM_EXCEEDS_STOCK_LENGTH = -3 or OPTI_ERROR_IS_RUNNING = -4. | |
Properties | |
| int | Dimension [get, set] |
| Number of items to be cut. | |
| double | StockLength [get, set] |
| Length of the new stocks where all items have to be cut from. | |
| double[] | ItemLength [get, set] |
| Array with all item lengths. | |
| int | Stocks [get] |
| Calculated number of stocks needed. | |
| int[] | ItemStockID [get] |
| Calculated stock id, this is the number of the stock where the item has to be cut from. | |
| double[] | Waste [get] |
| Calculated array with the wastage of each stock. | |
| byte | ForceBranchTermination [get, set] |
| To force termination of the branch&cut optimization with result. | |
| byte | BreakOptimization [get, set] |
| To break an optimization run. | |
| byte | HaltOptimization [get, set] |
| To halt an optimization run, as a handshake the optimization sets BreakOptimization, which has to be reset by the user. | |
| double | Optimum [get] |
| Target function value of an optimization, the smaller the better. | |
| string | LicenseKey [get, set] |
| To input a Developer or Developer Deploy license string, when read the hardware or software license is stated. | |
| int | BranchLimit [get, set] |
| Has to be 0 if no branch&cut strategy should be used, otherwise this is the size of the branch. | |
| double | StockWasteLimit [get, set] |
| A filling of a stock is considered as good if the waste is below this limit (the stock will then be taken out of the branch&cut optimization). | |
| byte | IsRunning [get] |
| Signals the user that an optimization run is in progress. | |
Interface to a single cutting stock algorithm thread.
| double SiMoCS.ICuttingStock1D.Start | ( | ) |
To trigger an optimization run, the return value is if positive the optimal value, if negative OPTI_ERROR_NOT_LICENSED = -1, OPTI_ERROR_DIMENSION_OVERSIZED = -2, OPTI_ERROR_ITEM_EXCEEDS_STOCK_LENGTH = -3 or OPTI_ERROR_IS_RUNNING = -4.
|
getset |
Has to be 0 if no branch&cut strategy should be used, otherwise this is the size of the branch.
Default value is 50
|
getset |
To break an optimization run.
|
getset |
Number of items to be cut.
|
getset |
To force termination of the branch&cut optimization with result.
|
getset |
To halt an optimization run, as a handshake the optimization sets BreakOptimization, which has to be reset by the user.
|
get |
Signals the user that an optimization run is in progress.
|
getset |
Array with all item lengths.
|
get |
Calculated stock id, this is the number of the stock where the item has to be cut from.
|
getset |
To input a Developer or Developer Deploy license string, when read the hardware or software license is stated.
|
get |
Target function value of an optimization, the smaller the better.
Referenced by SiMoCS.CuttingStock1DFactory.Evaluate().
|
getset |
Length of the new stocks where all items have to be cut from.
|
get |
Calculated number of stocks needed.
|
getset |
A filling of a stock is considered as good if the waste is below this limit (the stock will then be taken out of the branch&cut optimization).
Default value is 0.01, this means a stock filling with 1 % or less waste is considered as good
|
get |
Calculated array with the wastage of each stock.