This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<div x-data='{"text": "default"}'> | |
<button class='btn btn-info' hx-get='{% url "test" %}'>GET</button> | |
<!-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modeling the LP described at http://www.marketingdistillery.com/2014/08/30/marketing-optimization-with-linear-programming/ | |
# in Python with the PuLP library | |
import numpy as np | |
import pulp | |
prob = pulp.LpProblem('SEO Optimization', pulp.LpMaximize) | |
tv = pulp.LpVariable('tv', lowBound=0) | |
seo = pulp.LpVariable('seo', lowBound=0) |