JWally / jsLPSolver

Simple OOP javaScript library to solve linear programs, and mixed integer linear programs
The Unlicense
420 stars 69 forks source link

Multi-Objective Optimization #124

Open jason-linthwaite opened 1 year ago

jason-linthwaite commented 1 year ago

Hey @JWally. I've tried running this on a multi objective problem but I seem to get the solver running forever in an infinite loop.

If I run a problem with the standard non-multi solver, it runs ok. If I change to multi solver even with just the same original objective, it fails to complete and runs forever:

This runs fine:

    let model = {
        optimize: "score",
        opType: "max",
        constraints: { ...constraints },
        variables: { ... variables }
    };

This however, runs in an infinite loop:

    let model = {
        optimize: {
             score: "max"
        },
        constraints: { ...constraints },
        variables: { ... variables }
    };

Any ideas?