金融量化AI研究--Claude, Python

这里用来记录一些本人运用Claude编程的心得或笔记

导航

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 阅读(231) 评论(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 阅读(426) 评论(0) 推荐(0)