GithubHelp home page GithubHelp logo

cvx-hull / scopt Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.52 MB

Trade Route Optimization Tool for Star Citizen

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 0.26% Jupyter Notebook 63.35% Python 15.21% Shell 0.06% HTML 1.18% CSS 0.32% JavaScript 19.62%
convex-optimization cvxpy linear-programming mixed-integer-programming python

scopt's Introduction

SC-MIP

Introduction

Many simulation games incorporate a trading element where players engage in the buying and selling of goods. Typically, players visit various producers that offer a specific set of goods at a low price and subsequently deliver these goods to different consumers willing to purchase them at a higher price. The natural objective in such scenarios is to maximize profit following a successful trading endeavor. This analysis focuses on Star Citizen, a space simulation game currently in development.

In Star Citizen, each outpost on planets/moons and space stations maintains a list of goods available for sale and purchase. For example, a mining outpost may sell various minerals while seeking to buy items like medical supplies. Frequently, the producing locations offer goods at a lower price, making a trading strategy viable. The strategic approach involves acquiring goods from these producing locations and selling them in major hubs such as space stations or cities. The ultimate goal is to determine the optimal producers and consumers to visit, along with the ideal quantities to purchase and sell.

Motivation

Presently, there are available tools designed for identifying trade routes. However, these tools appear to face limitations in identifying routes that span across multiple locations while accommodating various types of cargo. Moreover, considering the current state of supply in the game, these existing tools seem incapable of factoring in the anticipated low supply of highly profitable goods. Therefore, by explicitly formulating the problem in the language of optimization, it is possible to address some of these issues.

UX

A sample web-application that generates interesting routes carrying multiple types of commodities is provided.

Customize Requirements

customization

High Level Plan

plan

Specific Route

route

Deployment

The sample web application can be built and deployed using Docker. See Dockerfile.

Implementation

The formulation of the optimization problem is explained in this notebook. The application of the formulation from the notebook can be found in optimize.py

scopt's People

Contributors

cvx-hull avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.