Skip to content

Commit fa9e0f2

Browse files
ENVY271204ENVY271204
authored andcommitted
brute forced all orientations
1 parent 12132c1 commit fa9e0f2

File tree

3 files changed

+84
-461
lines changed

3 files changed

+84
-461
lines changed

src/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def volume(self):
133133
return self.dim.l * self.dim.w * self.dim.h
134134

135135
def __repr__(self):
136-
return f"ULD {self.id}\t {self.dim}\t {self.weight}/{self.weight_limit}\t {"Prioritised" if self.has_priority else "Not prioritised"}\t No. of packages: {len(self.packages)}"
136+
return f'ULD {self.id}\t {self.dim}\t {self.weight}/{self.weight_limit}\t {"Prioritised" if self.has_priority else "Not prioritised"}\t No. of packages: {len(self.packages)}'
137137

138138
def summary(self):
139139
return (

src/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import matplotlib.pyplot as plt
44
from matplotlib.animation import FuncAnimation
55
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
6+
import matplotlib
7+
matplotlib.use("TkAgg")
68

79
from entity import ULD, Package, Point
810

0 commit comments

Comments
 (0)