A primal solution to be added to SCIP's solution pool. More...
#include <initial_solution.hpp>
Public Member Functions | |
double & | operator() (const Var &var) |
Access the mutable value assigned to the variable. | |
void | setValue (const Var &var, double value) |
Sets the value for a variable in the solution. | |
Friends | |
class | Model |
A primal solution to be added to SCIP's solution pool.
Definition at line 15 of file initial_solution.hpp.
double & scippp::InitialSolution::operator() | ( | const Var & | var | ) |
Access the mutable value assigned to the variable.
Initializes the assigned value to 0 if no value was assigned to the variable so far.
var | Variable to manipulate the value in the solution for. |
void scippp::InitialSolution::setValue | ( | const Var & | var, |
double | value ) |
Sets the value for a variable in the solution.
var | Variable to assign a value to. |
value | to assign to the variable. |
|
friend |
Definition at line 16 of file initial_solution.hpp.