Skip to main content

Worker empire optimizer for BDO using HiGHS mip solver.

Project description

bdo-empire

About

Given a contribution point limit and price list this program will find the optimum allocation of the points to maximize a Worker Node Empire's value.

It

  • generates a json file to import into Workerman
  • uses workers of level 40 with average stats.
  • uses workers with optimum skills learned.
  • assumes all drops are sent to storage with zero cost (Calpheon).

and, when specified, it

  • accounts for p2w bonus lodging.
  • accounts for workshop reserved lodging cost but not profits or the workshop itself.
  • accounts for forced taken node connections for Grinding.
  • optimizes lodging cost for Farming Fence workers into any available town
    (by selecting fences in the force taken list).
  • extends lodging and worker nodes from a base empire exported from Workerman.

It does not

  • account for CP spent outside of the Node Empire.

This program uses the HiGHS High Performance Optimization Software to solve the MIP using branch and cut. The parameters chosen guarantee the result is within 0.01% of the optimum value but in practice it is optimum for all test cases used during the development and testing of the model. If exact results are desired the main.py source can be edited such that optimize_config top_n, nearest_n are increased to at least 10, 10 respectively but do this with caution because the runtime can and will increase to multiple hours.

NOTE: Every change in input or options can alter the runtime! There is no real average . All of the individual bench cases for v0.8.0 completed in < 1h20m when testing every increment of 25 from 50 to 625. The majority of those completed < 10 minutes. Good luck, be patient, and if needed use the 'stop' button to use the best solution found so far which is usually the resulting optimal solution if you let it run for ~30 minutes.

Installation

Using pipx: pipx install bdo-empire
Using pip: pip install bdo-empire

Updating to latest version

Using pipx: pipx upgrade bdo-empire
Using pip: pip install bdo-empire -U

Usage

Requirements

* Use the 'reload' button on workerman's setting page prior to exporting.

Start the program

Installed using pipx: empire-optimizer.exe
Installed using pip: python -m bdo_empire.main

Fill in the required fields, click Optimize and then wait.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bdo_empire-0.8.0.tar.gz (428.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bdo_empire-0.8.0-py3-none-any.whl (465.8 kB view details)

Uploaded Python 3

File details

Details for the file bdo_empire-0.8.0.tar.gz.

File metadata

  • Download URL: bdo_empire-0.8.0.tar.gz
  • Upload date:
  • Size: 428.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.13

File hashes

Hashes for bdo_empire-0.8.0.tar.gz
Algorithm Hash digest
SHA256 33312a2c68d42e0934e1b5642c699a320cf7c619c6d9a9879c628112da67b459
MD5 7517cba3869a083a6dc7f471c67f95ee
BLAKE2b-256 928c8de330b7bc1c790a4ffeec07dc2813dea837b73ab8d1c20f3fa7d676e41a

See more details on using hashes here.

File details

Details for the file bdo_empire-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: bdo_empire-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 465.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.13

File hashes

Hashes for bdo_empire-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 589de7f428d2432a81040f1bdb65b4f03e00e415ffd04ed5c1aa81599c57b402
MD5 30b2ca2cbeb55633964cf9c3265f0aa6
BLAKE2b-256 015938f137717ef6b82c4d178249d2ca38324e11c41895a55b60a1723b876155

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page