金融量化学习---Python, MySQL, Pandas

这里用来记录一些在金融领域,尤其是银行相关的资金、债券、票据中应用到的数据管理与分析, 编程等心得或笔记,以及个人的一点小小兴趣(易经八卦、藏密禅修)等

导航

2020年10月12日 #

Pulp之三:官网上的应用样例(5)-Scheduling of 2 factories (工厂生产问题) (双索引的用法)

摘要: In our last example, we explored the scheduling of 2 factories. Both factories had 2 costs: Fixed Costs - Costs incurred while the factory is running 阅读全文

posted @ 2020-10-12 00:19 chengjon 阅读(191) 评论(0) 推荐(0) 编辑

Pulp之四:其它应用样例(1)-一般的整数规划问题 (设置目标约束函数)

摘要: 解如下整数线性规划 maximize z = cx = 3x1 + 4x2 + 5x3 subject to : x1 2 3 >= 0 x1 + 2x2 < 20 x2 + 3x3 ⇐ 40 import pulp as pulp def solve_ilp(objective , constra 阅读全文

posted @ 2020-10-12 00:04 chengjon 阅读(367) 评论(0) 推荐(0) 编辑