All articles →

100 Exercises / linear algebra / Linear algebra 100 Exercises

Manufacturing Equipment Recommendations and Large-Scale Matrix Calculation | Learning Matrix Decomposition with Python - 10 Exercises

Recommend machine-product trials with matrix factorization, then compare SVD, Arnoldi, CG, preconditioning and memory use in sparse calculations.

Testing every machine–product combination is often impractical. We use a fictional score matrix to recommend combinations for further trials, then examine methods for large matrix calculations. Exercises cover matrix factorization, latent factors, truncated and randomized SVD, Krylov subspaces, Arnoldi, conjugate gradients, preconditioning, sparse solvers and matrix-free operations.

About this article This article adapts Jupyter Notebooks used in corporate training by Surikobo or its representative, Hiroshi Wayama, with permission from the participating companies.
All data listed is fictional and has no relation whatsoever to real companies, factories, or figures.

Introduction: Practical Challenges in Manufacturing Covered in This Article

Consider a line that makes 18 product types on 12 machines. In prototype combinations, the “degree of fit” by integrating yield rate, setup time, and energy intensity can be identified, but most of these are not evaluated. In the first half of this paper, we estimate the preferred candidates for unevaluated combinations based on observed evaluations. In the second half, we efficiently solve linear equations of large-scale temperature fields generated in the same factory using sparse matrices and iterative methods.

Common situations on site

  • We assign equipment × types without proven track record based solely on the experience of the person in charge
  • Comprehensive combination testing cannot be conducted in terms of time, materials, and stoppage losses.
  • Finely refine the simulation meshes cause a sharp increase in computation time and memory
  • Even if a solution is obtained, errors, convergence conditions, and candidate selection rules are not managed

Why is this issue so difficult to judge?

Unobserved is not ‘non-compliant,’ but ‘not yet tested.’ Also, the scores of low-rank models are not causal effects or safety guarantees. On a computational side, explicitly creating a huge dense matrix will drain memory first. Accuracy, computational cost, explainability, and safety constraints must be addressed simultaneously.

Exercises in this article

In No.071–074, we create low-rank models that recommend equipment candidates, and in No.075–080, we proceed to the method of ‘calculating only the necessary parts’ for large-scale linear calculations. The first half is centered on Priority for Exploring Combinations, while the second half centers on How to return a reliable numerical solution within the constraint time limit.

Preparing the Python environment

NumPy and pandas handle calculations and table creation, Matplotlib visualization, SciPy for sparse matrices and iteration, and scikit-learn for Randomized SVD. Fix the random number seed and make it reexecutable.

Setup code: Preparing the Python environment (click to expand)
[IN: 1]
import sys, time
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
from IPython.display import display
from scipy import sparse
from scipy.sparse.linalg import LinearOperator, cg, eigs, spsolve
from sklearn.utils.extmath import randomized_svd

rng = np.random.default_rng(71080)
np.set_printoptions(precision=4, suppress=True)
pd.set_option("display.max_columns", 12)
print("Python:", sys.version.split()[0])
print("NumPy:", np.__version__, "| pandas:", pd.__version__)
print("Matplotlib:", matplotlib.__version__)
[OUT: 1]
Python: 3.14.4
NumPy: 2.5.1 | pandas: 3.0.3
Matplotlib: 3.11.0

Creation of Fictional Data

Assume there are three latent axes for equipment capacity and product requirements: precision machining, thermal stability, and mass production suitability. A small measurement noise is added to the true fit, and each entry is initially observed with probability 55%. Additional observations ensure every row and column is represented, so the final observed fraction can exceed 55%. Missing masks are generated independently of evaluation values, and it is confirmed that each piece of equipment and product has at least one observation.

Setup code: Creation of Fictional Data (click to expand)
[IN: 2]
n_machines, n_products, rank_true = 12, 18, 3
machines = [f"M{i:02d}" for i in range(1, n_machines + 1)]
products = [f"P{i:02d}" for i in range(1, n_products + 1)]
U_true = rng.normal(size=(n_machines, rank_true))
V_true = rng.normal(size=(n_products, rank_true))
raw = U_true @ V_true.T
true_score = 50 + 12 * (raw - raw.mean()) / raw.std()
true_score = np.clip(true_score, 5, 95)
observed_score = np.clip(true_score + rng.normal(0, 2.0, true_score.shape), 0, 100)
mask = rng.random(true_score.shape) < 0.55
for i in range(n_machines):
    mask[i, rng.integers(n_products)] = True
for j in range(n_products):
    mask[rng.integers(n_machines), j] = True
R = np.where(mask, observed_score, np.nan)
print(f"Matrix shape: {R.shape}, observed: {mask.sum()}/{R.size} ({mask.mean():.1%})")
display(pd.DataFrame(R, index=machines, columns=products).iloc[:6, :9].round(1))
[OUT: 2]

Matrix shape: (12, 18), observed: 137/216 (63.4%)

P01 P02 P03 P04 P05 P06 P07 P08 P09
M01 54.1 NaN 41.2 59.5 49.1 59.3 56.3 NaN NaN
M02 57.8 59.8 NaN 62.0 59.0 NaN 61.3 58.2 62.4
M03 50.2 46.6 45.9 NaN 51.7 NaN NaN 51.2 40.1
M04 NaN 61.9 38.8 62.5 72.4 NaN NaN 60.9 NaN
M05 NaN NaN NaN 58.5 40.4 49.1 47.7 53.6 12.7
M06 50.7 48.1 NaN 46.4 38.0 51.4 52.3 45.8 67.4

No.071: Matrix Factorization for Recommendations

Meaning in Practice

The recommendation system can be used not only for EC products but also as a mechanism to rank combinations with the highest value for prototyping from unevaluated equipment × varieties. It is not intended to automate safety certification, but is used to narrow down the test plan.

Approach to Analysis and Modeling

For observed entries Ω\Omega, alternating least squares (ALS) fits

min⁡U,V∑(i,j)∈Ω(Rij−uiTvj)2+λ(∥U∥F2+∥V∥F2).\min_{U,V}\sum_{(i,j)\in\Omega}(R_{ij}-\mathbf{u}_i^{\mathsf T}\mathbf{v}_j)^2 +\lambda(\lVert U\rVert_F^2+\lVert V\rVert_F^2).

Unobserved entries are excluded from the loss. Alternate between solving for machine factors and product factors while holding the other set fixed.

Check with Python

[IN: 3]
def als(R, mask, k=3, reg=3.0, epochs=30, seed=1):
    g = np.random.default_rng(seed)
    m, n = R.shape
    U = g.normal(0, 0.2, (m, k))
    V = g.normal(0, 0.2, (n, k))
    I = np.eye(k)
    # Only observed entries contribute to each regularized least-squares solve.
    for _ in range(epochs):
        for i in range(m):
            js = np.where(mask[i])[0]
            U[i] = np.linalg.solve(V[js].T @ V[js] + reg * I, V[js].T @ R[i, js])
        for j in range(n):
            ii = np.where(mask[:, j])[0]
            V[j] = np.linalg.solve(U[ii].T @ U[ii] + reg * I, U[ii].T @ R[ii, j])
    return U, V


U, V = als(np.nan_to_num(R), mask)
pred = U @ V.T
candidates = [(pred[i, j], machines[i], products[j]) for i, j in zip(*np.where(~mask))]
top5 = pd.DataFrame(
    sorted(candidates, reverse=True)[:5],
    columns=["Predicted score", "Machine", "Product"],
)
display(top5.round(1))
[OUT: 3]
Predicted score Machine Product
0 90.6 M12 P10
1 84.2 M12 P09
2 72.1 M06 P03
3 71.5 M12 P03
4 69.8 M09 P02

Reading the results

The top five are not ‘confirmed’ but are prototype candidates. After excluding candidates based on equipment specifications, jig compatibility, and legal and safety conditions, we move on to small-batch prototyping. Not only are scores ranked higher, but uncertainty in predictions and exam costs are also taken into account at the next stage.

No.072:Latent Factor Model

Meaning in Practice

Latent factors are presented by compressing common axes of equipment capacity and product requirements that are not directly recorded in the table. Equipment and types can be arranged with similar trends, serving as an entry point to discuss candidate reasons with engineers.

Approach to Analysis and Modeling

The prediction R^ij=uiTvj\hat R_{ij}=\mathbf{u}_i^{\mathsf T}\mathbf{v}_j is a dot product of machine and product factors. Applying the same orthogonal rotation to both factor sets preserves predictions. Do not automatically label a factor as stiffness or thermal stability; compare it with known specifications.

Check with Python

[IN: 4]
factor_df = pd.DataFrame(
    U, index=machines, columns=["Factor 1", "Factor 2", "Factor 3"]
)
display(factor_df.round(2))
fig, ax = plt.subplots(figsize=(7, 5))
ax.scatter(U[:, 0], U[:, 1], s=70)
for i, name in enumerate(machines):
    ax.annotate(name, (U[i, 0], U[i, 1]), xytext=(4, 4), textcoords="offset points")
ax.set_title("Machine map in latent-factor space")
ax.set_xlabel("Factor 1")
ax.set_ylabel("Factor 2")
ax.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
[OUT: 4]
Factor 1 Factor 2 Factor 3
M01 -2.13 -6.01 -7.03
M02 -2.79 -3.09 -9.36
M03 -2.23 -4.10 -7.06
M04 -6.09 -5.42 -6.85
M05 0.29 -6.76 -5.46
M06 0.11 -0.83 -10.22
M07 -2.50 -7.18 -5.65
M08 3.10 -4.49 -6.91
M09 -6.86 -0.43 -9.29
M10 -3.02 -5.29 -6.61
M11 0.40 -2.80 -8.37
M12 -3.00 2.20 -11.07

No.072:Latent Factor Model: computed results

Reading the results

Facilities placed nearby have observed fit patterns similar to those observed. Verify consistency between factors and known attributes by cross-checking with ledgers such as maintenance methods and spindle specifications. Factor maps are not causal explanations, but maps for comparing equipment groups and conducting additional investigations.

No.073:Truncated SVD

Meaning in Practice

Truncated SVD retains only the leading components of a matrix approximation, reducing storage for predictions and visualization. This small example computes the full SVD and then truncates it; it does not demonstrate the computational savings of a partial-SVD algorithm.

Approach to Analysis and Modeling

R≈UkΣkVk⊤R\approx U_k\Sigma_kV_k^\top is used, and the amount of information retained is evaluated by the square ratio of the singular values. Since SVD is intended for complete matrices, missing measurements are treated here as baselines provisionally supplemented by the variety average, and the difference from ALS is clearly stated.

Check with Python

[IN: 5]
filled = R.copy()
col_means = np.nanmean(filled, axis=0)
filled[np.where(np.isnan(filled))] = np.take(col_means, np.where(np.isnan(filled))[1])
Uc, s, Vt = np.linalg.svd(filled, full_matrices=False)
errors = []
for k in range(1, 9):
    approx = (Uc[:, :k] * s[:k]) @ Vt[:k]
    errors.append(
        np.linalg.norm(filled - approx, "fro") / np.linalg.norm(filled, "fro")
    )
display(pd.DataFrame({"rank": range(1, 9), "relative_error": errors}).round(4))
fig, ax = plt.subplots(figsize=(7, 4))
ax.plot(range(1, 9), errors, marker="o")
ax.set_title("Truncated SVD: rank and reconstruction error")
ax.set_xlabel("Retained rank")
ax.set_ylabel("Relative Frobenius error")
ax.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
[OUT: 5]
rank relative_error
0 1 0.1669
1 2 0.1191
2 3 0.0944
3 4 0.0765
4 5 0.0574
5 6 0.0472
6 7 0.0378
7 8 0.0262

No.073:Truncated SVD: computed results

Reading the results

Higher rank reduces reconstruction error but increases complexity. Select rank using validation error and computational cost, rather than an elbow alone. Column-mean imputation is a baseline and may be biased when missingness is selective.

No.074:Randomized SVD

Meaning in Practice

Randomized SVD rapidly approximates the required top-level singular components using probabilistic projections. This is effective when the number of facilities and variety increases and daily retraining time becomes a constraint.

Approach to Analysis and Modeling

Extract the main column space from random matrices and perform SVD on smaller matrices. The seed is fixed to ensure reproducibility, and the difference from the exact SVD is measured using reconstruction errors.

Check with Python

[IN: 6]
k = 3
Ur, sr, Vtr = randomized_svd(filled, n_components=k, n_iter=5, random_state=71080)
rand_approx = (Ur * sr) @ Vtr
exact_approx = (Uc[:, :k] * s[:k]) @ Vt[:k]
comparison = pd.DataFrame(
    {
        "method": ["Exact truncated SVD", "Randomized SVD"],
        "relative_error": [
            np.linalg.norm(filled - exact_approx, "fro")
            / np.linalg.norm(filled, "fro"),
            np.linalg.norm(filled - rand_approx, "fro") / np.linalg.norm(filled, "fro"),
        ],
        "top_singular_value": [s[0], sr[0]],
    }
)
display(comparison.round(6))
[OUT: 6]
method relative_error top_singular_value
0 Exact truncated SVD 0.094438 741.215763
1 Randomized SVD 0.094438 741.215763

Reading the results

Even in small-scale cases, the error of Randomized SVD approaches a strict rank 3 approximation. Since speed differences appear in large-scale data, time and memory are measured at production-equivalent size. Leave operational settings for variations caused by random numbers, number of iterations, and tolerance of error.

No.075: Krylov Subspace Methods

Meaning in Practice

In temperature field and deformation analysis, it is more practical to repeatedly multiply the matrix and vectors to obtain only the necessary solution and eigenmode rather than decomposing the entire matrix. The Krylov method is the foundation of this.

Approach to Analysis and Modeling

Km(A,b)=span{b,Ab,A2b,…,Am−1b}\mathcal K_m(A,b)=\mathrm{span}\{b,Ab,A^2b,\ldots,A^{m-1}b\} is made. Here, we orthogonalize the basis of the discrete matrix of one-dimensional thermal conduction and observe how the subspace expands.

Check with Python

[IN: 7]
n = 120
A_heat = sparse.diags(
    [-np.ones(n - 1), 2.2 * np.ones(n), -np.ones(n - 1)], [-1, 0, 1], format="csr"
)
b = np.zeros(n)
b[n // 3 : 2 * n // 3] = 1.0
Q = []
v = b / np.linalg.norm(b)
for _ in range(8):
    for q in Q:
        v -= q * (q @ v)
    v /= np.linalg.norm(v)
    Q.append(v.copy())
    v = A_heat @ v
Q = np.column_stack(Q)
orth_error = np.linalg.norm(Q.T @ Q - np.eye(Q.shape[1]))
print("Krylov basis shape:", Q.shape, "| orthogonality error:", f"{orth_error:.2e}")
fig, ax = plt.subplots(figsize=(8, 4))
for j in [0, 1, 3, 7]:
    ax.plot(Q[:, j], label=f"q{j+1}")
ax.set_title("Selected Krylov basis vectors")
ax.set_xlabel("Grid point")
ax.set_ylabel("Basis value")
ax.grid(True, alpha=0.3)
ax.legend()
plt.tight_layout()
plt.show()
[OUT: 7]

Krylov basis shape:

(120, 8) | orthogonality error: 2.89e-14

No.075: Krylov Subspace Methods: computed results

Reading the results

Eight orthonormal vectors span a small Krylov subspace for the thermal problem. The computation uses matrix-vector products without an explicit inverse. For an iterative solve, enlarge the subspace until the residual meets the required accuracy, or use an appropriate stopping rule.

No.076: Arnoldi Method

Meaning in Practice

Arnoldi iteration approximates eigenvalues through a Krylov subspace and also supports nonsymmetric matrices. Here SciPy eigs runs Arnoldi on the known symmetric thermal matrix for verification. The symmetric-specific routine eigsh instead uses Lanczos iteration.

Approach to Analysis and Modeling

The Arnoldi method creates an orthogonal basis satisfying AQm=Qm+1HˉmAQ_m=Q_{m+1}\bar H_m and a small Hessenberg matrix, approximating the original eigenvalues with their eigenvalues (Ritz values). For symmetry problems, it is simplified to the Lanczos method.

Check with Python

[IN: 8]
# eigs uses Arnoldi; this symmetric example has real eigenvalues.
ritz = eigs(
    A_heat,
    k=3,
    which="LM",
    return_eigenvectors=False,
    v0=np.linspace(1.0, 2.0, n),
    tol=1e-12,
)
ritz = np.sort(np.real_if_close(ritz))[::-1]
exact = np.linalg.eigvalsh(A_heat.toarray())[-3:][::-1]
display(
    pd.DataFrame(
        {
            "exact": exact,
            "Ritz approximation": ritz,
            "absolute_error": np.abs(exact - ritz),
        }
    ).round(8)
)
[OUT: 8]
exact Ritz approximation absolute_error
0 4.199326 4.199326 0.0
1 4.197304 4.197304 0.0
2 4.193936 4.193936 0.0

Reading the results

The three eigenvalues on the largest side are obtained with high precision, eliminating the need to calculate all eigenvalues and eigenvectors. In practice, algorithm settings are changed depending on whether the target is asymmetric or symmetric, and whether the eigenvalues to be obtained are maximum, minimum, or specific intervals.

No.077: Conjugate Gradient Method

Meaning in Practice

The Conjugate Gradient Method (CG) solves the symmetric positive definite large-scale system of equations Ax=bAx=b without creating an inverse matrix. Frequently used for thermal conduction, structural analysis, and quadratic optimization.

Approach to Analysis and Modeling

For symmetric positive definite AA, CG minimizes 12xTAx−bTx\frac12x^{\mathsf T}Ax-b^{\mathsf T}x along mutually AA-conjugate directions. Monitor the relative residual ∥b−Ax∥2/∥b∥2\lVert b-Ax\rVert_2/\lVert b\rVert_2 and the solver status.

Check with Python

[IN: 9]
residuals = []


def cb(xk):
    residuals.append(np.linalg.norm(b - A_heat @ xk) / np.linalg.norm(b))


x_cg, info = cg(A_heat, b, rtol=1e-10, callback=cb)
print(
    "info:",
    info,
    "| iterations:",
    len(residuals),
    "| final relative residual:",
    f"{residuals[-1]:.2e}",
)
fig, ax = plt.subplots(figsize=(7, 4))
ax.semilogy(range(1, len(residuals) + 1), residuals)
ax.set_title("Convergence of conjugate gradient")
ax.set_xlabel("Iteration")
ax.set_ylabel("Relative residual")
ax.grid(True, which="both", alpha=0.3)
plt.tight_layout()
plt.show()
[OUT: 9]

info: 0 | iterations: 51 | final relative residual: 7.13e-11

No.077: Conjugate Gradient Method: computed results

Reading the results

The final relative residual is small and info=0 reports convergence. The Euclidean residual norm in CG need not decrease monotonically in general. A small algebraic residual also does not establish physical validity; verify boundary conditions, material constants and mesh dependence separately.

No.078: Preconditioning

Meaning in Practice

Unequal coefficient scales can make CG take many iterations. Preconditioning changes how the system is solved while preserving its solution, helping meet a time limit.

Approach to Analysis and Modeling

Jacobi preconditioning applies the inverse diagonal as an approximate inverse. In SciPy, the M argument acts as this inverse preconditioner. Better spectral conditioning often reduces iterations, but compare total setup and application time as well.

Check with Python

[IN: 10]
scale = np.geomspace(1, 1e3, n)
D = sparse.diags(scale)
A_scaled = D @ A_heat @ D
b_scaled = D @ b
counts = {}
for label, M in [
    ("None", None),
    ("Jacobi", LinearOperator((n, n), matvec=lambda x: x / A_scaled.diagonal())),
]:
    hist = []
    x, info = cg(
        A_scaled,
        b_scaled,
        rtol=1e-8,
        M=M,
        callback=lambda xk, h=hist: h.append(
            np.linalg.norm(b_scaled - A_scaled @ xk) / np.linalg.norm(b_scaled)
        ),
        maxiter=2000,
    )
    counts[label] = (len(hist), hist[-1], info)
display(pd.DataFrame(counts, index=["iterations", "final_residual", "info"]).T)
[OUT: 10]
iterations final_residual info
None 1288.0 7.501723e-09 0.0
Jacobi 45.0 7.642589e-09 0.0

Reading the results

Jacobi preconditioning greatly reduces iterations in this deliberately rescaled example. Other options include incomplete Cholesky. Compare setup time, extra memory and reuse across right-hand sides.

No.079: Sparse Matrix Solver

Meaning in Practice

Matrices from local interactions have mostly zero entries. Sparse formats store the nonzero structure efficiently, allowing larger meshes within the same memory budget.

Approach to Analysis and Modeling

A dense nn-by-nn float64 matrix needs approximately 8n28n^2 bytes. CSR stores nonzero values, column indices and row pointers; this tridiagonal example has about 3n3n nonzeros. Here we check spsolve on 5,000 unknowns. The earlier CG example has 120 unknowns, so these runs are not a direct speed comparison.

Check with Python

[IN: 11]
n_big = 5000
A_big = sparse.diags(
    [-np.ones(n_big - 1), 2.2 * np.ones(n_big), -np.ones(n_big - 1)],
    [-1, 0, 1],
    format="csr",
)
b_big = np.ones(n_big)
dense_mb = n_big * n_big * 8 / 1024**2
sparse_mb = (A_big.data.nbytes + A_big.indices.nbytes + A_big.indptr.nbytes) / 1024**2
t0 = time.perf_counter()
x_direct = spsolve(A_big, b_big)
elapsed = time.perf_counter() - t0
display(
    pd.DataFrame(
        {
            "representation": ["Dense (estimated)", "CSR (actual)"],
            "memory_MiB": [dense_mb, sparse_mb],
        }
    ).round(3)
)
print(
    "nonzeros:",
    A_big.nnz,
    "| spsolve time:",
    f"{elapsed:.4f}s",
    "| relative residual:",
    f"{np.linalg.norm(b_big-A_big@x_direct)/np.linalg.norm(b_big):.2e}",
)
[OUT: 11]
representation memory_MiB
0 Dense (estimated) 190.735
1 CSR (actual) 0.191
nonzeros: 14998 | spsolve time: 0.0034s | relative residual: 1.27e-16

Reading the results

The actual memory of CSR is orders of magnitude smaller than the estimated value in dense format, and the residual is sufficiently small even with the direct method. However, even with sparse matrices, fill-in during decomposition increases memory, so direct or iterative methods are chosen depending on the size, structure, and number of right-hand sides of the matrix.

No.080: Large-Scale Matrix Computation

Meaning in Practice

In large-scale computing, it is more important to define only the necessary operations and return results within the budget of accuracy, time, and memory, rather than “creating a matrix.” It affects the frequency of updates to Digital Twins and production plans.

Approach to Analysis and Modeling

LinearOperator does not explicitly define the matrix and only defines x↦Axx\mapsto Ax. A 1,000,000-dimensional tridiagonal action is performed using several vectors, where a dense matrix requires about 7.3 TiB. Performance evaluation should normally include warm-ups and repeated measurements, but here we examine structural differences.

Check with Python

[IN: 12]
n_matrix_free = 1_000_000


def heat_matvec(x):
    y = 2.2 * x.copy()
    y[1:] -= x[:-1]
    y[:-1] -= x[1:]
    return y


op = LinearOperator((n_matrix_free, n_matrix_free), matvec=heat_matvec, dtype=float)
x = np.ones(n_matrix_free)
t0 = time.perf_counter()
y = op @ x
elapsed = time.perf_counter() - t0
dense_tib = n_matrix_free**2 * 8 / 1024**4
print(f"dimension: {n_matrix_free:,}")
print(f"dense matrix estimate: {dense_tib:,.1f} TiB")
print(
    f"matrix-free matvec: {elapsed:.4f}s | vector result memory: {y.nbytes/1024**2:.1f} MiB"
)
print("result sample:", y[:3], y[-3:])
[OUT: 12]
dimension: 1,000,000
dense matrix estimate: 7.3 TiB
matrix-free matvec: 0.0096s | vector result memory: 7.6 MiB
result sample: [1.2 0.2 0.2] [0.2 0.2 1.2]

Reading the results

Even at 1,000,000 dimensions, you can perform matrix vector multiplication using regular memory as long as you only use the operational rules. Combining this operation with Krylov iterations avoids storing the full matrix. Production implementations must also account for communication costs, preconditioning, stopping criteria and recovery after interruptions.

Using the results in practice

Unevaluated cells for equipment × varieties can be converted into prototype priority using a low-rank structure. On the other hand, since prediction scores do not guarantee safety or machinability, exclusion from candidates due to hard constraints and on-site testing are essential. On the computational side, by handling only the top-level components, subspaces, nonzero elements, and matrix vector products, the scale of problems can be increased.

In decision-making, not only model accuracy but also the following three aspects are managed simultaneously.

  1. Business Value: How much can we reduce the number of prototypes, the startup period, and the waiting time for calculations?
  2. numerical reliability: Whether verification error, residuals, convergence information, and reproducibility are being recorded
  3. Safe Operation: Do not automatically approve recommendations, but pass equipment constraints and engineer reviews?

Preparing for practical use

  • Define conformity cross-departmentally, based on quality rates, CT, energy, and safety constraints.
  • Auditing for random missing entries or selection biases where only successful cases are recorded
  • Measuring performance under unknown conditions through time-series segmentation and verification that excludes entire equipment and varieties
  • Record recommendation candidates, acceptance or rejection, and prototype results, then return to model renewal
  • Load testing of sparse format, error tolerances, preconditioning, and time/memory limits at a production scale
  • Manage models, data, seeds, libraries, and decision-makers in editions, and determine stopping conditions in case of abnormalities

Conclusion

Matrix factorization estimates untested machine–product combinations, while rank comparisons show the cost of compression. For large systems, compare sparse storage, matrix–vector operations and preconditioners using residuals, iteration counts and memory use. Validate promising recommendations in trials, and distinguish numerical approximation error from product-quality decisions.

Consultations for Corporations

At Surikobo, we support everything from problem organization to operational design, from test planning for equipment × varieties, recommendation and optimization models, accelerating CAE and large-scale sparse matrix calculations, to corporate training using field data.

📩 Contact Us: www.surikobo.co.jp/contact
Please contact us to discuss your project.