Memuat
Memuat
Support Vector Regression for Logistics and Supply Chain
0 views
Estimate parcel delivery time from number of drop points and distance between stops with Support Vector Regression and assess the effect of the kernel on error. Support Vector Regression finds a function that deviates at most epsilon from the data while staying flat, with kernels for nonlinear patterns. It suits small to medium datasets with smooth nonlinear relations.

Estimate parcel delivery time from number of drop points and distance between stops with Support Vector Regression and assess the effect of the kernel on error.
| Role | Variable | Unit |
|---|---|---|
| Main | parcel delivery time | menit |
| Supporting 1 | number of drop points | titik |
| Supporting 2 | distance between stops | km |
An RBF-kernel SVR models parcel delivery time with test R2 0.848 and RMSE 11.038; 149 of 229 training points are support vectors.
Computed from illustrative synthetic data, not from a real study.
Support Vector Regression finds a function that deviates at most epsilon from the data while staying flat, with kernels for nonlinear patterns. It suits small to medium datasets with smooth nonlinear relations.
Report the kernel and best hyperparameters, R2, RMSE, and the number of support vectors. Stress that the model is hard to interpret, so the focus is predictive accuracy.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
from sklearn.svm import SVR
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import make_pipeline
from sklearn.model_selection import GridSearchCV, train_test_split
from sklearn.metrics import r2_score, mean_squared_error
rng = np.random.default_rng(5)
n = 250
number_of_drop_points = np.sort(rng.uniform(0, 10, n))
parcel_delivery_time = np.sin(number_of_drop_points) + 0.3 * number_of_drop_points + rng.normal(0, 0.2, n)
X = number_of_drop_points.reshape(-1, 1)
X_tr, X_te, y_tr, y_te = train_test_split(X, parcel_delivery_time, test_size=0.2, random_state=5)
pipe = make_pipeline(StandardScaler(), SVR(kernel="rbf"))
grid = {"svr__C": [1, 10, 100], "svr__epsilon": [0.05, 0.1, 0.2], "svr__gamma": ["scale", 0.1, 1]}
gs = GridSearchCV(pipe, grid, cv=5, scoring="neg_root_mean_squared_error")
gs.fit(X_tr, y_tr)
best = gs.best_estimator_
pred = best.predict(X_te)
print("Best params:", gs.best_params_)
print("Test R2:", round(r2_score(y_te, pred), 3))
print("Test RMSE:", round(mean_squared_error(y_te, pred) ** 0.5, 3))
print("Support vectors:", len(best[-1].support_))
xs = np.linspace(0, 10, 300).reshape(-1, 1)
plt.scatter(X_tr, y_tr, s=10, alpha=0.5, label="Train")
plt.plot(xs, best.predict(xs), "r", label="SVR fit")
plt.legend()
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$22
excl. 11% VAT
Duration: 5 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$66
excl. 11% VAT
Duration: 9 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$141
excl. 11% VAT
Duration: 14-17 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Support Vector Regression is commonly used at this level in Logistics and Supply Chain. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$22, Package 2 (your data analysis and interpretation) US$66 and Package 3 (full guidance) US$141, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio