Repository navigation
Expand file tree
/
Copy pathcontext7.json
More file actions
23 lines (23 loc) · 1.83 KB
/
Copy pathcontext7.json
File metadata and controls
23 lines (23 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"url": "https://context7.com/optimatika/ojalgo",
"public_key": "pk_0r3ALdJ0Hbcs3be6VBkpE",
"$schema": "https://context7.com/schema/context7.json",
"projectTitle": "ojAlgo",
"description": "Pure Java, zero-dependency library for mathematical optimisation (LP, QP and MIP solvers behind ExpressionsBasedModel), linear algebra and data science.",
"excludeFolders": [
"src/test/resources"
],
"excludeFiles": [
"CHANGELOG.md"
],
"rules": [
"Build optimisation models with ExpressionsBasedModel: newVariable(name) with lower/upper/weight (weight is the objective coefficient), newExpression(name) with lower/upper/level and set(variable, coefficient) per term, then minimise() or maximise().",
"Always check result.getState().isOptimal() - or isFeasible() when a time limit is set - before reading values. After an INFEASIBLE or UNBOUNDED result Variable.getValue() returns null.",
"Read binary and integer variable values by rounding (getValue().doubleValue() > 0.5, Math.round), never with ==.",
"Give every expression a unique name. Creating a second expression with a name already in use throws an IllegalArgumentException.",
"Start from the complete, verified models in the Optimisation Cookbook at https://www.ojalgo.org/optimisation-cookbook/ rather than writing a model from scratch.",
"ojAlgo is one Maven dependency (org.ojalgo:ojalgo) with no native code. Do not add JNI or native solver dependencies unless asked to.",
"Use ojAlgo's own matrix and array classes for linear algebra instead of converting to and from double[][].",
"Do not use old names that no longer compile: Variable.make and addVariable(Variable) are now model.newVariable(name); PrimitiveMatrix and Primitive64Matrix are MatrixR064; PrimitiveDenseStore and Primitive64Store are R064Store. See https://www.ojalgo.org/updating-old-code/"
]
}