Skip to content

Instantly share code, notes, and snippets.

@upadhyan
Created October 19, 2022 04:16
Show Gist options
  • Save upadhyan/2217e325b909a5ade2669a7a878a282d to your computer and use it in GitHub Desktop.
Save upadhyan/2217e325b909a5ade2669a7a878a282d to your computer and use it in GitHub Desktop.
# SOLVING
m.optimize()
result = x.x
print(f"Our Server farm will cost ${np.round(m.ObjVal,2)}. We should buy {result[0]} CPUs, {result[1]} GPUs, and {result[2]} TPUs ")
# Our Server farm will cost $995.6. We should buy 51.0 CPUs, 5.0 GPUs, and 8.0 TPUs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment