Giter Site home page Giter Site logo

simplexjs's People

Contributors

iainnz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplexjs's Issues

Help with API

Cool project but how would I use it to solve this problem?

Maximize, z = x1 + 2x2 - x3

Constraints:
2x1 + 2x2 + x3 <= 14
4x1 + 2x2 + 3x3 <= 28
2x1 + 5x2 + 5x3 <= 30

0 <= x1, 0 <= x2, 0 <= x3

PrimalSimplex outputs infeasible, while there should be a solution

First of all: great work.

I want to solve a maximal matching in a bipartite graph.
Therefore I model A as the incidencematrix of the graph. In some cases this works pretty good. But there is a setup where a solution exists but your implementation does not find it.
The special structure of the problem is that there is on one on one side who has connections to all nodes on the other side. (Example below with 4 nodes, but also tested with 3 nodes)
Possible solutions will be (1,0,0) or (0,1,0) or (0,0,1)

var test = new Object();
    test.A = [[1, 0, 0],
              [1, 0, 0],
              [0, 1, 0],
              [1, 1, 1]];
    test.b = [1, 1, 1, 1];
    test.c = [1, 1, 1];
    test.m = 4;
    test.n = 3;
    test.xLB = [0, 0, 0];
    test.xUB = [Infinity, Infinity, Infinity];

Can you verify if the problem exists in your implementation or in my modelling?

How to use?

I've been trying to figure out how to use this project. I looked at the TestSimplexJS.js though didn't really understand. You use variables A, b, c, m, n without explanation what they are. (I assume xLB en xUB are lower and upper bound.)

This would be the first time I use a linear solver, so perhaps I'm just missing something obvious. Could you explain what is what a little more?

Thanks a lot!

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.