Find Jobs
Hire Freelancers

3D Cubing (Freight)

$30-250 USD

Đang triển khai
Đã đăng vào hơn 12 năm trước

$30-250 USD

Thanh toán khi bàn giao
This project is for a shipping calculator script. Given the following array of products to be packaged: // measures = milimeters // weight = kilograms $products[] = array('quantity' => 2, 'height' => 140, 'width' => 80, 'length' => 80, 'weight' => 0.200, 'type' => 'square', 'loadingAllowed' => array('h', 'l', 'w')); $products[] = array('quantity' => 4, 'height' => 50, 'width' => 60, 'length' => 60, 'weight' => 0.100, 'type' => 'circle', 'loadingAllowed' => array('h')); $products[] = array('quantity' => 30, 'height' => 100, 'width' => 100, 'length' => 100, 'weight' => 0.100, 'type' => 'circle', 'loadingAllowed' => array('l')); $products[] = array('quantity' => 5, 'height' => 80, 'width' => 80, 'length' => 80, 'weight' => 0.100, 'type' => 'square', 'loadingAllowed' => array('h', 'l', 'w')); And the following array of boxes: // max_weight = 30 kilograms // quantity = is how many boxes we have available in stock to package the customer goods // If there is no box available, try the next box (with quantity) $boxes[] = array('type' => 'Box 1', 'width' => 110, 'height' => 20, 'length' => 160, 'quantity' => 100, 'max_weight' => 30); $boxes[] = array('type' => 'Box 2', 'width' => 180, 'height' => 90, 'length' => 270, 'quantity' => 100, 'max_weight' => 30); $boxes[] = array('type' => 'Box 3', 'width' => 270, 'height' => 180, 'length' => 360, 'quantity' => 100, 'max_weight' => 30); $boxes[] = array('type' => 'Box 4', 'width' => 270, 'height' => 270, 'length' => 360, 'quantity' => 100, 'max_weight' => 30); $boxes[] = array('type' => 'Box 5', 'width' => 360, 'height' => 270, 'length' => 540, 'quantity' => 100, 'max_weight' => 30); With that, we start to test which box is needed to fit all products (starting with the product that has the largest weight) If all products fit Box 1, good, return the box. If not all products fit Box 1, try Box 2. If not all products fit Box 2, try Box 3 and so on. If all products doesn't fit any box, split the products between the boxes starting with the largest box. e.g Box 5 doesn't have enough space to fit all 4 products, now we start with Box 5 (because it's the largest box available) and see how many items fit Box 5, if half of the products fit Box 5, start again with the remaning products (but now with Box 1, doing the loop again). If the box max_weight has been reached, start a new box. If product 1 fit box 1, try to fit product 2 in box 1 too, if product 2 doesn't fit box 1, try to fit product 3 in box 1, if product 3 doesn't fit in box 1, try product 4 and so on until no products remain left. This is exactly what I need, but without having to the user do step by step: [login to view URL] The 'type' and 'loadingAllowed' is to create the loading steps that you can see at the end of this page: [login to view URL] Let me know if you need anymore details.
Mã dự án: 1300260

Về dự án

4 đề xuất
Dự án từ xa
Hoạt động 12 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
4 freelancer chào giá trung bình $194 USD cho công việc này
Avatar người dùng
I can create a shipping calculator script for you.
$200 USD trong 3 ngày
5,0 (16 nhận xét)
5,4
5,4
Avatar người dùng
php/mysql experienced
$225 USD trong 3 ngày
5,0 (2 nhận xét)
2,8
2,8
Avatar người dùng
we are 7 member team working on php joomla
$100 USD trong 2 ngày
5,0 (1 nhận xét)
1,1
1,1
Avatar người dùng
I read through your information concerning this project. Please read personal message and reply so that i can reestimate my bid.
$250 USD trong 10 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của BRAZIL
Cariacica, Brazil
5,0
1
Thành viên từ thg 7 28, 2009

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.