一个愚蠢的首相。

dumbpm的Python项目详细描述


哑巴

GitHub versionBuild StatusLicense

一个愚蠢的首相。

目前,它只对项目进行优先级排序:实际上,它相当愚蠢。

pms(项目经理、产品经理、人员经理、pokemon masters等)的整个理念是,他们都会做一些可能需要自动化的任务,但同时这种自动化应该是尽可能愚蠢的。有太多的变化因素会影响这些任务,所以你最好雇一个项目经理(或者一组研究人员来做自动化工作)来做聪明的事情,而不是在互联网上随便找一个软件。此外,如果我们让它保持沉默,人们只要阅读代码,了解正在发生的事情,如果他们真的想。

如果你有什么建议的话(但没什么聪明的!)你想让邓波姆帮你做的事,打开一个问题让我知道。

优先顺序

给出一个定义如下的项目表,它按照可选的指定预算内的优先级输出一个项目列表(优先级设置为“数据问题”)。

优先级列表被建模为具有以下值函数的Knapsack Problem的精确解:norm(value) / ((norm(cost) * norm(duration)) + norm(rigging)。真的很蠢。

$ dumbpm prioritize --help
usage: dumbpm prioritize [-h][--budget [BUDGET]] filename

positional arguments:
  filename           CSV file with projects definition

optional arguments:
  -h, --help         show this help message and exit
  --budget [BUDGET]  Max budget allowed

项目格式

项目定义发生在具有以下结构的csv文件中:

  • Project:项目名称
  • Value:项目价值
  • Cost:项目成本
  • Duration:以时间单位表示的项目持续时间
  • Rigging:用于调整结果的任意值(对,作弊!);项目优先级越高
  • Alternative:逗号分隔的与此项目不兼容的项目列表(例如,制作午餐与购买午餐)

任何未指定的字段都将填充0。

列的标题有点松(例如,project、projects、project等都可以)。值得注意的是:钻机和索具都可以工作;同样的备降场和替代品;如果这是你的东西,PQ可以用来代替成本。

ProjectValueCostDurationRiggingAlternatives
Buy a better espresso machine5429
Buy ambient parfume for the back111
Find and remove source of bad smell52410
Find better coffee vendors4265
Buy smart component for roaster352Build in-house roasting notification system
Introduce a periodical suggestion survey for treats326
Buy a more modern sign331
Contact a designer to re-think the front556
Buy beds for powernaps131
Import treats from France242
Build in-house roasting notification system356Buy smart component for roaster

示例

$ cat projects.csv
Project,Value,Cost,Duration,Rigging,Alternatives
Buy a better espresso machine,5,4,2,9,
Buy ambient parfume for the back,1,1,1,,
Find and remove source of bad smell,5,2,4,10,
Find better coffee vendors,4,2,6,5,
Buy smart component for roaster,3,5,2,,Build in-house roasting notification system
Introduce a periodical suggestion survey for treats,3,2,6,,
Buy a more modern sign,3,3,1,,
Contact a designer to re-think the front,5,5,6,,
Buy beds for powernaps,1,3,1,,
Import treats from France,2,4,2,,
Build in-house roasting notification system,3,5,6,,Buy smart component for roaster

$ dumbpm prioritize projects.csv
01 Buy ambient parfume for the back
02 Buy a more modern sign
03 Find and remove source of bad smell
04 Buy a better espresso machine
05 Find better coffee vendors
06 Buy beds for powernaps
07 Buy smart component for roaster
08 Import treats from France
09 Introduce a periodical suggestion survey for treats
10 Contact a designer to re-think the front

$ dumbpm prioritize projects.csv --budget 1001 Buy ambient parfume for the back
02 Buy a more modern sign
03 Find and remove source of bad smell
04 Buy a better espresso machine

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何下载多个。java中的PDF文件   linux Java打开文件,形成实际用户主页~/   java如何在时间线内维护TableView选择?   java Hibernate注释@Where vs@WhereJoinTable   Java读/写访问异常FileNotFoundException(访问被拒绝)   继承在Java中是否可以扩展最后一个类?   Android HttpClient使用java使应用程序崩溃。lang.OutOfMemoryError:pthread_create   java为什么即使我在proguardproject中添加了jar文件,也会出现这种错误。txt?   如果添加JButton,swing Java FocusListener和KeyListener将无法工作   java使用solrj检索json格式的SolrDocument   使用Microsoft Visual Studio代码进行Java编程   java NoClassDefFoundError:org/apache/log4j/Logger   哈希集中包含相等对象的java   java中的参数化构造函数是否需要有一个主体?   java类似于NetBeans不必要的代码检测器   Java实践问题   java Blackberry“[projectname].调试文件丢失”和“I/O错误:找不到程序”jar