This file contains 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
#!/usr/bin/python | |
# coding: utf-8 | |
# 日経平均資料室(http://indexes.nikkei.co.jp/nkave/archives/data)の日次データの差分をクロールして追加するプログラム | |
import urllib2 | |
import lxml.html | |
import csv | |
import re | |
import time | |
from datetime import datetime as dt |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import FuncDesigner as fd | |
from openopt import QP | |
import numpy as np | |
x = fd.oovars(2) | |
H = np.array([[4, 1], | |
[1, 2]]) |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import FuncDesigner as fd | |
from openopt import QP | |
x1, x2 = fd.oovars(2) | |
f = 2 * x1 ** 2 + x2 ** 2 + x1 * x2 + x1 + x2 | |
startpoint = {x1: 0, x2: 0} | |
constraints = [] |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from openopt import QP | |
H = [[4, 1], | |
[1, 2]] | |
f = [1, 1] | |
Aeq = [1, 1] | |
beq = 1 |
NewerOlder