시작하기무료로 시작하기

모델 상태 선택 연습 문제

아래 코드를 보고, 모델 상태로 무엇이 출력될지 선택하세요.

# 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])

이 연습은 강의의 일부입니다

Python으로 배우는 공급망 분석

강의 보기

실습형 인터랙티브 연습문제

이론을 실습으로 바꾸는 인터랙티브 연습 중 하나를 만나보세요

연습 시작