Class: ORTools::CpSolverSolutionCallback
- Inherits:
-
Object
- Object
- ORTools::CpSolverSolutionCallback
- Defined in:
- lib/or_tools/cp_solver_solution_callback.rb
Direct Known Subclasses
ObjectiveSolutionPrinter, VarArrayAndObjectiveSolutionPrinter, VarArraySolutionPrinter
Instance Attribute Summary collapse
-
#response ⇒ Object
writeonly
Sets the attribute response.
Instance Method Summary collapse
Instance Attribute Details
#response=(value) ⇒ Object (writeonly)
Sets the attribute response
3 4 5 |
# File 'lib/or_tools/cp_solver_solution_callback.rb', line 3 def response=(value) @response = value end |
Instance Method Details
#objective_value ⇒ Object
16 17 18 |
# File 'lib/or_tools/cp_solver_solution_callback.rb', line 16 def objective_value @response&.objective_value end |