Skip to content

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleaxe committed Mar 17, 2023
1 parent 37e4c10 commit ca65067
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "daxfb-calculator",
"version": "1.0.6",
"version": "1.0.7",
"description": "Calculator/Factory Planner for factory management games",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions site/src/scripts/graph/graph-solver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import type {BlueprintItemModel, RecipeIOModel} from '../model/store';
//see https://github.com/ellbur/jsLPSolver
//this will perform correct setup on Tableau prototype
import '@ellbur/javascript-lp-solver/src/Tableau/index';
import Model from '@ellbur/javascript-lp-solver/src/model';
import type {Variable} from '@ellbur/javascript-lp-solver/src/model';
//upper case letter in Model!!! otherwise unix systems will not build
import Model from '@ellbur/javascript-lp-solver/src/Model';
import type {Variable} from '@ellbur/javascript-lp-solver/src/Model';

//this uses linear programming simplex solver to solve max output for multiple flows
//external library is used for algorithm itself, we just build multiple expressions to solve
Expand Down
2 changes: 1 addition & 1 deletion site/src/scripts/types/javascript-lp-solver.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Please don't remove this comment if you use unmodified file
//overall javascript-lp-solver d.ts is full of any and other dirty stuff
//we import Model alone
//it doesn't have ts exports, so we need to make ourselves
declare module '@ellbur/javascript-lp-solver/src/model' {
declare module '@ellbur/javascript-lp-solver/src/Model' {
export interface Variable {
id: string;
cost: number;
Expand Down

0 comments on commit ca65067

Please sign in to comment.