Library to optimise picking in the warehouse This library includes algorithms that should lead to improvements in picking path optimization in the warehouse. Any specifications that

Loading...
Searching...
No Matches
helper.h
Go to the documentation of this file.
1
12#ifndef _HELPER_H_
13#define _HELPER_H_
14
15#include <nlohmann/json.hpp>
16#include <string>
17#include <fstream>
18#include <iostream>
19#include "WarehousePickingOpt.h"
20
21 using namespace std;
22 using json = nlohmann::json;
23
27json readJsonFromFile(string path);
28
29 class OItem;
31 void to_json(json &j, const OItem &it);
32
33 class CartOItem;
37 void to_json(json &j, const CartOItem &coi);
38
39 class BoxItem;
43 void to_json(json &j, const BoxItem &bi);
44
49 float euclidean_distance(SECTOR_ADDR_T first_addr, SECTOR_ADDR_T second_addr);
50
55 float orthogonal_distance(SECTOR_ADDR_T first_addr, SECTOR_ADDR_T second_addr);
56
60 int factorial(int num);
61
62#endif
WarehousePickingOpt.h
translated with gcc version 12.2.1
BoxItem
class which serves as representation of item in the box unlike OItem it doesn't represent order item ...
Definition: WarehousePickingOpt.h:318
CartOItem
class representing part or whole of order item in cart, differ from OItem only by added RealQty integ...
Definition: WarehousePickingOpt.h:414
OItem
class representing the item in order (with its address, and all description) -> Order Item
Definition: WarehousePickingOpt.h:273
readJsonFromFile
json readJsonFromFile(string path)
function for creating json object from file given as path
Definition: helper.cpp:15
to_json
void to_json(json &j, const OItem &it)
function for converting OItem to json
Definition: helper.cpp:23
orthogonal_distance
float orthogonal_distance(SECTOR_ADDR_T first_addr, SECTOR_ADDR_T second_addr)
computation of the distance between two points in euclidean space, meaning right-angle space
Definition: helper.cpp:53
factorial
int factorial(int num)
factorial computation with memory of previously computed factorials
Definition: helper.cpp:58
euclidean_distance
float euclidean_distance(SECTOR_ADDR_T first_addr, SECTOR_ADDR_T second_addr)
computation of the shortest (air) path between two points in warehouse
Definition: helper.cpp:48
SECTOR_ADDR_T
this structure stores parsed address in usable form in computation
Definition: WarehousePickingOpt.h:164