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.3

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.3
File Size Uploaded Provenance Actions
bdo_empire-0.8.3.tar.gz 436.4 kB Without provenance Details for bdo_empire-0.8.3.tar.gz

Built distribution (wheel)

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

Total release size: 909.5 kB

Release files / bdo_empire-0.8.3.tar.gz

Download URL bdo_empire-0.8.3.tar.gz
Size 436.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8a6874cc0eebce9013aa81af1ae6ec3dc3331e87666e545f4ba7e382c7804865
BLAKE2b-256 checksum
How to use checksums
750ca6a1e0447904307263d576f45f350139a74646aa8067ca3cd0b20bb26f84
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.3-py3-none-any.whl

Download URL bdo_empire-0.8.3-py3-none-any.whl
Size 473.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e219189abf58e0435f829a81bb1cc4f8db669897a8bc8a864eea0da916a9acf
BLAKE2b-256 checksum
How to use checksums
311a45953cc3a04c58cdc8e301684e765f0a503bfe29b6a16942919f168122fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for bdo-empire 0.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files No provenance

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