Class LINE


public class LINE extends SolverAUTO
LINE solver - Java/Kotlin implementation equivalent to MATLAB LINE.m

This class serves as an alias for SolverAUTO and provides a static factory method for creating solver instances based on the chosen method, matching the MATLAB interface.

Copyright (c) 2012-2026, Imperial College London All rights reserved.

  • Constructor Details

    • LINE

      public LINE(Network model, Object... varargin)
      Constructor - alias for SolverAUTO
    • LINE

      public LINE(Network model, SolverOptions options)
      Constructor with options
    • LINE

      public LINE(Network model, String method)
      Constructor with method string
  • Method Details

    • create

      public static LINE create(Network model)
      Convenience method - create LINE solver with default settings
    • create

      public static LINE create(Network model, String method)
      Convenience method - create LINE solver with method
    • load

      public static NetworkSolver load(String chosenMethod, Network model, Object... varargin)
      Static factory method to create and configure a solver based on the chosen method This matches the MATLAB LINE.load() static method functionality
      Parameters:
      chosenMethod - The solver method to use
      model - The network model
      varargin - Variable arguments for solver options
      Returns:
      Configured solver instance
    • load

      public static Network load(String filename)
      Loads a Network model from a file. Detects the file format and loads the appropriate model type.
      Parameters:
      filename - The path to the file to load
      Returns:
      The loaded Network or LayeredNetwork model
      Throws:
      RuntimeException - if the file format is unsupported or loading fails
    • load

      public static Network load(String filename, boolean verbose)
      Loads a Network model from a file with optional verbose output. Detects the file format and loads the appropriate model type.
      Parameters:
      filename - The path to the file to load
      verbose - Whether to print verbose loading information
      Returns:
      The loaded Network or LayeredNetwork model
      Throws:
      RuntimeException - if the file format is unsupported or loading fails