shangke1988

Results 6 comments of shangke1988

对于复杂产物的计算,我认为线性规划很适合解决这个问题。已用pythob验证线性规划可以很好解决原版的石油化工。最近找到一个js版的线性规划引擎https://github.com/JWally/jsLPSolver。 我没玩过mod,看了那产品树,确实很复杂。我个人感觉这个计算器应该最适合在本地运行,直接读取本地游戏的数据,从而适应本机的游戏版本和mod。

@garveen 我写了个只有时有化工的。数量的单位是每秒多少个。自己怎么方便就怎么写的。 线性规划库都是解决成千上万个变量的,用来接这个应该没问题的,况且里面大部分都是二个变量的约束。 https://github.com/shangke1988/tmp/blob/master/factorio_items

@garveen 多谢,之前不知道有gist这么方便的功能。有个想法是:输入每种资源的价格,根据获取的难易,线性优化的目标是最终的价格最低。

I meet a lot of problems in ULP-RISCV I2C. Using ULP-RISCV I2C on the XTENSA core, main processor on an ESP32-S3 always get timeout error 0x107 return from ulp_riscv_i2c_wait_for_interrupt() in...

I removed `ulp_riscv_wakeup_main_processor();` in example `esp-idf\examples\system\ulp_riscv\gpio_interrupt`. After press button `GPIO#0` some times, main processor wakuped by `ESP_SLEEP_WAKEUP_COCPU_TRAP_TRIG`. ULP do nothing, but wakup main processor still. Maybe there is problem in...

It work well, but I don't know why! I edit my code: ``` #include "ulp_riscv.h" #include "ulp_riscv_utils.h" int main (void) { /* USER CODE BEGIN */ /* USER CODE END...