-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
39 lines (31 loc) · 785 Bytes
/
Copy pathmain.py
File metadata and controls
39 lines (31 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- coding: utf-8 -*-
"""
Author : mau
Tested in python2
Thank to the all samples in the Internet.
Following code is not checking arguments.
"""
from preset import Preset
from drawer import Drawer
"""
# 自分で設定するなら
import numpy as np
from optimizers import *
from graph import Graph
from functions import *
"""
def main():
# 設定書くと見づらいからプリセットを使う
preset = Preset()
# このコメント書いてる時は1~9のプリセット
optimizer_list, graph = preset.preset_5()
# 描画のためのセットアップ
drawer = Drawer(optimizer_list, graph)
# アニメーション作成
drawer.animation()
# 保存
#drawer.save_animation("optimization.gif", "./")
# 表示
drawer.show()
if __name__ == '__main__':
main()