API Reference

Complete API documentation for all LumiX modules with auto-generated documentation from source code.

Core Module

The Core Module API module provides the fundamental building blocks for optimization models:

Solvers Module

The Solvers Module API module provides a unified interface to multiple optimization solvers:

Supported solvers: OR-Tools, Gurobi, CPLEX, GLPK, CP-SAT

Indexing Module

The Indexing Module API module provides multi-dimensional indexing capabilities:

Nonlinear Module

The Nonlinear Module API module provides nonlinear term definitions:

Linearization Module

The Linearization Module API module provides automatic linearization of nonlinear terms:

Utils Module

The Utils Module API module provides utility classes for enhanced functionality:

Solution Module

The Solution Module API module provides solution handling and mapping utilities:

  • LXSolution - Solution container with variable values and metadata

  • LXSolutionMapper - Utilities for mapping solutions to model instances

Analysis Module

The Analysis Module API module provides comprehensive post-optimization analysis tools:

Goal Programming Module

The Goal Programming Module API module provides automatic LP-to-Goal Programming conversion:

Quick Reference

For quick help with any class:

  1. Use IDE Autocomplete: LumiX is fully type-annotated

  2. Check Docstrings: All classes and methods have comprehensive docstrings

  3. Browse Source: The source code is well-documented

  4. See Examples: The examples directory shows practical usage

Example: Getting Help

from lumix import LXModel

# In Python, use help() to see docstrings
help(LXModel)
# Or in IPython/Jupyter
LXModel?

# For method signatures
LXModel.add_variable?