opvious / highs.ts

Node.js bindings for the HiGHS optimization solver
Apache License 2.0
3 stars 0 forks source link

Add optimization callback support #40

Open mtth opened 1 year ago

mtth commented 1 year ago

https://ergo-code.github.io/HiGHS/stable/callbacks/

Possible API, extending solve monitors:

await solver.solve({
  monitor: solveMonitor()
    .on('mipIteration', (data) => /* ... */)
    .on('simplexIteration', (data) => /* ... */)
    // ...
});

This can also be used to simplify the current progress implementation.