Routine User Guide

This guide is designed for users who want to perform standard curve fitting analysis efficiently using NLSQ’s 3-workflow system (auto, auto_global, hpc), the CLI, or the desktop GUI.

Routine Tutorials

Comprehensive tutorials covering the 3-workflow system.

Routine User Tutorials
Desktop GUI

Interactive curve fitting without writing code.

GUI User Guide

The 3-Workflow System

NLSQ provides three workflows that cover all curve fitting needs:

  • auto: Memory-aware local optimization (default)

  • auto_global: Global optimization with bounds

  • hpc: HPC clusters with checkpointing

from nlsq import fit

# Default: auto workflow
popt, pcov = fit(model, x, y, p0=[1.0, 0.5, 0.0])

# Global optimization (requires bounds)
popt, pcov = fit(
    model,
    x,
    y,
    p0=[1.0, 0.5, 0.0],
    workflow="auto_global",
    bounds=([0, 0, -1], [10, 5, 1]),
)