Skip to main content

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.

Metadata

Release files for bdo-empire 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bdo-empire 0.8.2
File Size Uploaded
bdo_empire-0.8.2.tar.gz 433.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bdo-empire 0.8.2
File Interpreter ABI Platform
bdo_empire-0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 904.5 kB

Release files / bdo_empire-0.8.2.tar.gz

Download URL bdo_empire-0.8.2.tar.gz
Size 433.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dde2b3571b4eb149cdf5a96f42c2041243cff8ca4d0045134bc30bb6a36ac2ac
BLAKE2b-256 checksum
How to use checksums
863106a2d4a331b3a459e7a60065037a966ba736fe66d864997bb48da0cdf264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / bdo_empire-0.8.2-py3-none-any.whl

Download URL bdo_empire-0.8.2-py3-none-any.whl
Size 470.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff1a90ff946959c9b8b67648e90777282b6f05f720b04542ab30e192e08befd7
BLAKE2b-256 checksum
How to use checksums
6963ca119917005a6cea1a02ab4267688df27ba527712bb24afbc722e4345cea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page