Skip to content

Instantly share code, notes, and snippets.

View Marcrulo's full-sized avatar

Marcus Presutti Marcrulo

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import minimize
# Objective function (Rosenbrock)
def f(x): return (1 - x[0])**2 + 100 * (x[1] - x[0]**2)**2
# Record optimization path
x0 = np.array([-1, -1])
path = [x0]
Navn Højde Alder Profession Antal søskende Har allergener
Anton 1.78 20 Studerende 3 Nej
Beatrice 1.68 34 Advokat 1 Ja
Chili Klaus 60 Entertainer
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
{"ballerup": ["55.731", "12.330", "39442", 7.083333333333333, 3.4274193548387095, 2.7419354838709675, 0.0, 0.45698924731182794, 0.45698924731182794, 0.0, "https://drive.google.com/uc?id=1Q8OUkHpjMihmj2-DQ4H94P7YuItk3KHR", [0, 23.0, 0, 1.0, 23.0, 0, 0.0, 0, 4.0, 0, 0, 0]], "sm\u00f8rum": ["55.723", "12.242", "19925", 5.305555555555555, 1.6324786324786325, 0.0, 0.0, 0.7346153846153847, 1.305982905982906, 1.6324786324786325, "https://drive.google.com/uc?id=1TB-zEjaSAGnVolOFz7A1tR-Bceb73RbF", [0, 0, 0, 11.0, 1.0, 1.0, 4.0, 0, 4.0, 25.0, 0, 0.0]], "lyngby": ["55.780", "12.473", "55903", 6.73502974931948, 1.2716831770683115, 0.5282376273976063, 0.3912871314056343, 0.4157425771184864, 2.1716435793012705, 1.9564356570281716, "https://drive.google.com/uc?id=1v1KpoQcCCSEUsPtfcarV9KBMlllma303", [11.81, 5.8, 8.9, 6.77, 3.4, 5.92, 8.43, 2.79, 3.4, 5.48, 10.0, 8.12]], "gentofte": ["55.748", "12.548", "8289", 7.663888888888889, 2.0467359050445104, 1.2280415430267062, 0.0, 0.2956396307286515, 1.591905703923508, 2.50156610616
[
{
"type": "Overnight",
"price": 25.99
},
{
"type": "2-Day",
"price": 9.99
},
{
{
"byer": [
{
"name":"Hillerød",
"population":100000,
"latitude":50.5135,
"longtitude":35
},
{
"name":"Helsingør",