@ohtaman/washi 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja.md +341 -0
  3. package/README.md +340 -2
  4. package/README.zh-CN.md +341 -0
  5. package/THIRD_PARTY_LICENSES.md +83 -0
  6. package/dist/lib/assets/highs-worker-D57nd9KC.js +3 -0
  7. package/dist/lib/glpk-BC32ZaPG.js +126 -0
  8. package/dist/lib/highs.wasm +0 -0
  9. package/dist/lib/highs.wasm.LICENSE +22 -0
  10. package/dist/lib/solvers/glpk.js +2 -0
  11. package/dist/lib/solvers/z3.js +2 -0
  12. package/dist/lib/washi.js +908 -0
  13. package/dist/lib/z3-C5DfllfD.js +562 -0
  14. package/dist/types/glpk-loader.d.ts +8 -0
  15. package/dist/types/glpk-loader.d.ts.map +1 -0
  16. package/dist/types/highs-loader.d.ts +39 -0
  17. package/dist/types/highs-loader.d.ts.map +1 -0
  18. package/dist/types/highs-worker-client.d.ts +12 -0
  19. package/dist/types/highs-worker-client.d.ts.map +1 -0
  20. package/dist/types/highs-worker.d.ts +2 -0
  21. package/dist/types/highs-worker.d.ts.map +1 -0
  22. package/dist/types/index.d.ts +14 -0
  23. package/dist/types/index.d.ts.map +1 -0
  24. package/dist/types/modeler/boolean-expr.d.ts +38 -0
  25. package/dist/types/modeler/boolean-expr.d.ts.map +1 -0
  26. package/dist/types/modeler/constraint.d.ts +28 -0
  27. package/dist/types/modeler/constraint.d.ts.map +1 -0
  28. package/dist/types/modeler/expression.d.ts +79 -0
  29. package/dist/types/modeler/expression.d.ts.map +1 -0
  30. package/dist/types/modeler/index.d.ts +14 -0
  31. package/dist/types/modeler/index.d.ts.map +1 -0
  32. package/dist/types/modeler/lp-writer.d.ts +30 -0
  33. package/dist/types/modeler/lp-writer.d.ts.map +1 -0
  34. package/dist/types/modeler/mip-compat.d.ts +43 -0
  35. package/dist/types/modeler/mip-compat.d.ts.map +1 -0
  36. package/dist/types/modeler/model.d.ts +156 -0
  37. package/dist/types/modeler/model.d.ts.map +1 -0
  38. package/dist/types/modeler/parser.d.ts +27 -0
  39. package/dist/types/modeler/parser.d.ts.map +1 -0
  40. package/dist/types/modeler/pulp-compat.d.ts +67 -0
  41. package/dist/types/modeler/pulp-compat.d.ts.map +1 -0
  42. package/dist/types/modeler/quad-expr.d.ts +55 -0
  43. package/dist/types/modeler/quad-expr.d.ts.map +1 -0
  44. package/dist/types/modeler/solvers/glpk.d.ts +22 -0
  45. package/dist/types/modeler/solvers/glpk.d.ts.map +1 -0
  46. package/dist/types/modeler/solvers/highs.d.ts +26 -0
  47. package/dist/types/modeler/solvers/highs.d.ts.map +1 -0
  48. package/dist/types/modeler/solvers/index.d.ts +7 -0
  49. package/dist/types/modeler/solvers/index.d.ts.map +1 -0
  50. package/dist/types/modeler/solvers/mock.d.ts +25 -0
  51. package/dist/types/modeler/solvers/mock.d.ts.map +1 -0
  52. package/dist/types/modeler/solvers/registry.d.ts +20 -0
  53. package/dist/types/modeler/solvers/registry.d.ts.map +1 -0
  54. package/dist/types/modeler/solvers/types.d.ts +86 -0
  55. package/dist/types/modeler/solvers/types.d.ts.map +1 -0
  56. package/dist/types/modeler/solvers/z3.d.ts +37 -0
  57. package/dist/types/modeler/solvers/z3.d.ts.map +1 -0
  58. package/dist/types/modeler/types.d.ts +27 -0
  59. package/dist/types/modeler/types.d.ts.map +1 -0
  60. package/dist/types/modeler/variable.d.ts +52 -0
  61. package/dist/types/modeler/variable.d.ts.map +1 -0
  62. package/package.json +97 -4
@@ -0,0 +1,83 @@
1
+ # Third-Party Licenses & Attributions
2
+
3
+ WaSHI (`@ohtaman/washi`) is an open-source mathematical modeling framework distributed under the **MIT License**.
4
+
5
+ Depending on the solver you choose at runtime, WaSHI interacts with the following third-party optimization engines. This document provides copyright notices and license information for these underlying solvers.
6
+
7
+ ---
8
+
9
+ ## 1. HiGHS (Default Solver)
10
+
11
+ - **Role**: Default Linear & Mixed-Integer Programming Engine (WebAssembly)
12
+ - **Package**: [`highs`](https://www.npmjs.com/package/highs)
13
+ - **License**: **MIT License**
14
+ - **Upstream Repository**: [ERGO-Code/HiGHS](https://github.com/ERGO-Code/HiGHS) / [lovasoa/highs-js](https://github.com/lovasoa/highs-js)
15
+
16
+ ```text
17
+ MIT License
18
+
19
+ Copyright (c) 2023 highs-js
20
+ Copyright (c) 2026 HiGHS
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in all
30
+ copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
+ SOFTWARE.
39
+ ```
40
+
41
+ ---
42
+
43
+ ## 2. Z3 Theorem Prover (Optional Solver)
44
+
45
+ - **Role**: SMT Logic & Unsatisfiable Core Diagnosis Engine (WebAssembly)
46
+ - **Package**: [`z3-solver`](https://www.npmjs.com/package/z3-solver)
47
+ - **License**: **MIT License**
48
+ - **Upstream Repository**: [Z3Prover/z3](https://github.com/Z3Prover/z3)
49
+
50
+ ```text
51
+ Z3
52
+ Copyright (c) Microsoft Corporation
53
+ All rights reserved.
54
+ MIT License
55
+
56
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
59
+
60
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
61
+ ```
62
+
63
+ ---
64
+
65
+ ## 3. GLPK / glpk.js (Optional Solver Plugin)
66
+
67
+ - **Role**: Optional Linear Programming Solver
68
+ - **Package**: [`glpk.js`](https://www.npmjs.com/package/glpk.js)
69
+ - **License**: **GNU General Public License v3.0 (GPL-3.0)**
70
+ - **Upstream Repository**: [jvail/glpk.js](https://github.com/jvail/glpk.js)
71
+ - **Notice**: WaSHI isolates GLPK support into an optional subpath export (`@ohtaman/washi/solvers/glpk`). It is loaded dynamically only when explicitly opted in by the user. If your application requires a strictly permissive license (e.g., proprietary enterprise deployments), stick to the default **HiGHS** (MIT) or **Z3** (MIT) engines.
72
+
73
+ ```text
74
+ GNU GENERAL PUBLIC LICENSE
75
+ Version 3, 29 June 2007
76
+
77
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
78
+ Everyone is permitted to copy and distribute verbatim copies
79
+ of this license document, but changing it is not allowed.
80
+
81
+ For the full license text of GPL-3.0, please refer to:
82
+ https://www.gnu.org/licenses/gpl-3.0.txt
83
+ ```