SCIP++ refs/heads/main
 
Loading...
Searching...
No Matches
scippp::InitialSolution Class Reference

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
 

Detailed Description

A primal solution to be added to SCIP's solution pool.

Since
1.3.0

Definition at line 15 of file initial_solution.hpp.

Member Function Documentation

◆ operator()()

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.

Since
1.3.0
Parameters
varVariable to manipulate the value in the solution for.
Returns
Mutable value assigned to the variable.

◆ setValue()

void scippp::InitialSolution::setValue ( const Var & var,
double value )

Sets the value for a variable in the solution.

Since
1.3.0
Parameters
varVariable to assign a value to.
valueto assign to the variable.

Friends And Related Symbol Documentation

◆ Model

friend class Model
friend

Definition at line 16 of file initial_solution.hpp.


The documentation for this class was generated from the following file: