แบบฝึกหัดเลือกสถานะของโมเดล
จากโค้ดด้านล่าง ให้เลือกว่าสถานะของโมเดลที่จะถูกพิมพ์ออกมาคืออะไร
# Initialize Class, Define Decision Vars., Objective Function, and Constraints
from pulp import *
model = LpProblem("Exercise Routine", LpMaximize)
P = LpVariable('Pushups', lowBound=0)
R = LpVariable('Miles ran', lowBound=0)
model += 3 * P + 10 * R
model += P + R < 10
model += R > 11
# Solve Model
model.solve()
print("Status:", LpStatus[model.status])
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Supply Chain Analytics ด้วย Python
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง
เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา
เริ่มแบบฝึกหัด