结论1:与销量无关,和历史价格有关
根据历史价格成交量中可以发现,商品价格和效率完全是不成正比
essence和machine成交量差不多的情况下,价格差这么多
transistor比其他3级商品价格低,但是销量却比他们少(顺带一提,直接卖 transistor是亏成本的)
condensate这个最明显了,对比wire,销量比wire多但是便宜了(condensate直接卖还不如直接卖原料)
所以商品价格和交易量没关系,只和商品的历史价格有关系
(商品,全部成交额,单价,成交量)数据14天
image.png下图是商品等级表
image.png结论2:成本计算,的出利润最高商品
1.计算商品的成本:包括基础资源,包括能量,原矿,商品原料,OPS
以s3的价格为例,计算出成本
2.计算出利润最高的商品(和官服价格对比)
3.最后卖商品
这里有一点,就算是算单个商品原料的价格,而不是单个出售商品的价格
因为决定利润的是成本而不是出售价格
// 以device为例
device 5555(需要商品原料) 650462(单个商品原料利润为100时候的售价) 94962(成本cr) 0.03129209979821512(单个商品原料的OPS)
(合成1个单位需要的全部原料)
[{"U":8515,"energy":14015.999999999998,"silicon":5555,"O":5895,"ops":173.827614379085,"H":5525,"Z":1000,"X":1050,"L":550,"K":550,"G":750}]
device 5555 650462 94962 0.03129209979821512
[{"U":8515,"energy":14015.999999999998,"silicon":5555,"O":5895,"ops":173.827614379085,"H":5525,"Z":1000,"X":1050,"L":550,"K":550,"G":750}]
circuit 2390 277113.4 38113.4 0.03808146689638199
[{"U":3760,"energy":5775.599999999999,"silicon":2390,"O":3615,"ops":91.01470588235296,"H":2975,"Z":250,"X":125}]
microchip 1055 120202.8 14702.8 0.030773162345506925
[{"U":1585,"energy":2071.2,"silicon":1055,"O":760,"ops":32.46568627450981,"H":850,"Z":250,"X":125}]
transistor 235 27379.4 3879.4 0.030705047976637468
[{"U":375,"energy":613.6,"silicon":235,"O":380,"ops":7.215686274509805,"H":425}]
switch 40 4644 644 0.03333333333333334
[{"U":75,"energy":92,"silicon":40,"O":95,"ops":1.3333333333333335}]
wire 5 540.6 40.6 null
[{"U":5,"energy":4.4,"silicon":5}]
machine 5550 646567.4 91567.4 0.027674823160756666
[{"O":8800,"energy":14231.599999999999,"H":4050,"G":750,"ops":153.5952685421995,"U":1000,"Z":8260,"metal":5550,"X":1040}]
hydraulics 2115 253873.6 42373.6 0.03027197174138097
[{"O":3165,"energy":6184.4,"H":750,"G":750,"ops":64.02522023302075,"U":300,"Z":3015,"metal":2115,"X":1040}]
frame 810 94895.59999999999 13895.599999999999 0.03214200512912268
[{"U":200,"energy":2408.3999999999996,"Z":1325,"ops":26.035024154589372,"metal":810,"O":1610,"H":1650}]
fixtures 205 24383 3883 0.055420054200542
[{"U":100,"energy":616,"Z":305,"ops":11.36111111111111,"metal":205,"O":805}]
tube 100 10803.199999999999 803.2 0.021739130434782608
[{"Z":140,"energy":108.8,"metal":100,"ops":2.1739130434782608}]
alloy 5 536.5999999999999 36.6 null
[{"Z":5,"energy":4.4,"metal":5}]
essence 5550 639638.2000000001 84638.2 0.030107607607607608
[{"K":8985,"energy":13928.799999999997,"mist":5550,"H":10620,"ops":167.09722222222223,"O":1800,"X":1050,"L":550,"G":750}]
emanation 2700 304785.60000000003 34785.6 0.032530864197530866
[{"K":4385,"energy":5820.399999999999,"mist":2700,"H":4950,"ops":87.83333333333334,"O":900,"X":200}]
spirit 950 107370.79999999999 12370.8 0.030438596491228067
[{"K":1350,"energy":2027.2,"mist":950,"H":1890,"ops":28.916666666666664,"O":300,"X":100}]
extract 325 36209.4 3709.4 0.02333333333333333
[{"K":450,"energy":609.6,"mist":325,"H":450,"ops":7.583333333333333,"O":150}]
concentrate 50 5557.200000000001 557.2 0.026666666666666665
[{"K":75,"energy":94.8,"mist":50,"H":90,"ops":1.3333333333333333}]
condensate 5 536.5999999999999 36.6 null
[{"K":5,"energy":4.4,"mist":5}]
organism 5550 645645.7999999999 90645.8 0.027714471933538872
[{"L":8470,"energy":14217.199999999999,"biomass":5550,"O":8600,"ops":153.81531923114073,"H":4850,"Z":250,"X":1040,"G":750}]
organoid 2350 281089.2 46089.2 0.040194948118645844
[{"L":4070,"energy":6652.799999999999,"biomass":2350,"O":5150,"ops":94.45812807881774,"H":2450,"Z":250,"X":1040}]
muscle 975 111998.6 14498.6 0.03650372615889857
[{"L":1695,"energy":2458.4,"biomass":975,"O":1620,"ops":35.59113300492611,"H":1075,"Z":250}]
tissue 275 31403.4 3903.4 0.032243618450515
[{"L":475,"energy":645.6,"biomass":275,"O":450,"ops":8.866995073891626,"H":275}]
phlegm 50 5653.2 653.2 0.034482758620689655
[{"L":90,"energy":100.8,"biomass":50,"O":90,"ops":1.7241379310344827}]
cell 5 536.5999999999999 36.6 null
[{"L":5,"energy":4.4,"biomass":5}]
最后通过上面那张图可以算出这张表格,代表每种资源至少要多少cr出售才划算和出售时的利润
image.png image.png
结论3:最优策略
1.要保证价格不能下跌,因为如果价格下跌会导致不可逆转的永久性下跌(除非你想跟他们卷)
原因是就像transistor一样,成交量上不去的时候,价格还很低
其次是紫色商品价格一直上不去但是成交量也很高,因为有人在依然在交易(所以价格上不去)
就好像你们外面工厂打工一样,人就这么多,价格下去了就别想上来了,反正有的是廉价劳动力(反正他们又一直卷)
价格尽量控制在 avgPrice - std以上 就是 均值 -方差,避免自己拉低价格,如果比较卷可以尝试拉低价格
2.保证量要上去,所以就必须抢单子,尽量每个tick都抢单子
就摁着卷,抢别人的单子,让别人没得卖
3.寻找利润最高的商品
因为这个利润最高,所以卖别的都亏,懂我意思吧
代码设计:
需要实现的部分
1.计算商品利润
2.抢利润最高的单子(每tick都卷)
后记:
由于这个代码再getAllOrders反序列化的时候每次竟然要5 cpu uesd 左右
所以放弃每tick都deal(5cpu我可以开两个房间了都),改成10tick计算一次,平均每tick只消耗 0.7tick左右
(function (){
let t = Game.cpu.getUsed();
Game.market.getAllOrders();
return Game.cpu.getUsed() - t;
})();
网友评论