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.
  • uses workers with optimum skills learned.
  • assumes all drops are sent to storage with zero cost (Calpheon).

and, when specified, it

  • accounts for workshop lodging cost but not profits or the workshop itself.
  • accounts for grinding node connections.
  • 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.

NOTE: Every change in input or options can alter the runtime! There is no real average but empirically budgets of ~350 or ~600 take the longest and all of the bench cases for v0.5.0 complete in < 30 minutes when testing every increment of 25 from 50 to 625. The vast majority of those completed nearer to 10 minutes or less. Good luck, be patient, and if needed use the 'stop' button to use the best solution found so far.

Installation

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

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.5.4.tar.gz (434.5 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.5.4-py3-none-any.whl (479.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bdo_empire-0.5.4.tar.gz
Algorithm Hash digest
SHA256 59c7d6c6631a27ea9fca1915aca522234309ab5a5adac4890201bb728630fb7f
MD5 08f92963cf1668ea77e09e32837c7c46
BLAKE2b-256 f2f69c508e3822b63134f060b6e5cb2c1e1ac0aab9745f6f0b67bfcde1413abf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bdo_empire-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54b9afb5a6e02cf588c88458fcd78cbbc0103a57c9df5229bdf79a5f5a72bc8c
MD5 72a54843704fbf7c76ad48c65cb7deae
BLAKE2b-256 2524dce48472348a50555ce70db23103478d11c41e951bbdca0d3f9795ba2a97

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