piglot

Examples

  • Curve Fitting
  • Response Design
  • Analytical Objectives
  • Post-processing results

Advanced Options

  • Solver Options

Input file templates

  • Input File Options
  • Optimiser options
  • Solver options

Reference

  • API
    • piglot.bin
    • piglot.objective
    • piglot.objectives
    • piglot.optimiser
    • piglot.optimisers
    • piglot.parameter
    • piglot.solver
      • piglot.solver.read_solver
      • piglot.solver.curve
      • piglot.solver.input_file_solver
      • piglot.solver.links
        • piglot.solver.links.fields
        • piglot.solver.links.solver
      • piglot.solver.multi_case_solver
      • piglot.solver.script_solver
      • piglot.solver.solver
    • piglot.utils
  • Integration with solvers
  • Papers
piglot
  • piglot
  • piglot.solver
  • piglot.solver.links
  • piglot.solver.links.solver
  • piglot.solver.links.solver.LinksSolver
  • View page source

piglot.solver.links.solver.LinksSolver

class LinksSolver(cases: List[Case], parameters: ParameterSet, output_dir: str, tmp_dir: str, verbosity: str, parallel: int = 1)[source]

Bases: InputFileSolver

Links solver class.

Methods

get_case_class

Get the case class to use for this solver.

get_case_params

Get the parameters for a given hash.

get_case_results

Get the results for all cases for a given hash.

get_current_response

Get the responses from a given output field for all cases.

get_output_fields

Get all output fields.

get_output_response

Get the responses from all output fields for a given case.

prepare

Prepare data for the optimisation.

read

Read the solver from the configuration dictionary.

solve

Solve all cases for the given set of parameter values.

classmethod get_case_class() → Type[InputFileCase][source]

Get the case class to use for this solver.

Returns

Type[InputFileCase]

InputFileCase class to use for this solver.

get_case_params(param_hash: str) → Dict[str, float]

Get the parameters for a given hash.

Parameters

param_hashstr

Hash of the case to load.

Returns

Dict[str, float]

Parameters for this hash.

get_case_results(param_hash: str) → List[CaseResult]

Get the results for all cases for a given hash.

Parameters

param_hashstr

Hash of the case to load.

Returns

List[CaseResult]

Results for all cases.

get_current_response() → Dict[str, OutputResult]

Get the responses from a given output field for all cases.

Returns

Dict[str, OutputResult]

Output responses.

get_output_fields() → List[str]

Get all output fields.

Returns

List[str]

Output fields.

get_output_response(param_hash: str) → Dict[str, OutputResult]

Get the responses from all output fields for a given case.

Parameters

param_hashstr

Hash of the case to load.

Returns

Dict[str, OutputResult]

Output responses.

prepare() → None

Prepare data for the optimisation.

classmethod read(config: Dict[str, Any], parameters: ParameterSet, output_dir: str) → T

Read the solver from the configuration dictionary.

Parameters

configDict[str, Any]

Configuration dictionary.

parametersParameterSet

Parameter set for this problem.

output_dirstr

Path to the output directory.

Returns

T

Solver to use for this problem.

solve(values: ndarray, concurrent: bool) → Dict[str, OutputResult]

Solve all cases for the given set of parameter values.

Parameters

valuesarray

Current parameters to evaluate.

concurrentbool

Whether this run may be concurrent to another one (so use unique file names).

Returns

Dict[str, OutputResult]

Evaluated results for each output field.

Previous Next

© Copyright 2025, CM2S.

Built with Sphinx using a theme provided by Read the Docs.