Exception: LpSolver::SolverError
- Defined in:
- lib/lpsolver/exception.rb
Overview
Raised when the HiGHS solver encounters an error.
This exception is raised when the HiGHS command-line tool exits with a non-zero status, indicating a problem with the model (e.g., syntax error, infeasibility not handled, etc.).
Instance Attribute Summary collapse
-
#stderr ⇒ String?
readonly
The stderr output from the HiGHS solver.
Instance Method Summary collapse
-
#initialize(message, stderr: nil) ⇒ SolverError
constructor
Creates a new SolverError.
Constructor Details
#initialize(message, stderr: nil) ⇒ SolverError
Creates a new SolverError.
37 38 39 40 |
# File 'lib/lpsolver/exception.rb', line 37 def initialize(, stderr: nil) @stderr = stderr super() end |
Instance Attribute Details
#stderr ⇒ String? (readonly)
Returns The stderr output from the HiGHS solver.
31 32 33 |
# File 'lib/lpsolver/exception.rb', line 31 def stderr @stderr end |