Exception: LpSolver::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/lpsolver/exception.rb

Overview

Raised when the HiGHS binary cannot be found.

This exception is raised when the HIGHS_PATH environment variable is not set and ‘highs’ is not on the system PATH.

Examples:

begin
  model.solve
rescue LpSolver::NotFoundError => e
  puts "HiGHS not found. Install it or set HIGHS_PATH."
end