Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ linear_solver/ |
#include <linear_solver.h>
Public Member Functions | |
const string & | name () const |
Returns the name of the variable. | |
void | SetInteger (bool integer) |
Sets the integrality requirement of the variable. | |
bool | integer () const |
Returns the integrality requirement of the variable. | |
double | solution_value () const |
Returns the value of the variable in the current solution. | |
int | index () const |
Returns the index of the variable in the MPSolver::variables_. | |
double | lb () const |
Returns the lower bound. | |
double | ub () const |
Returns the upper bound. | |
void | SetLB (double lb) |
Sets the lower bound. | |
void | SetUB (double ub) |
Sets the upper bound. | |
void | SetBounds (double lb, double ub) |
Sets both the lower and upper bounds. | |
double | reduced_cost () const |
Advanced usage: returns the reduced cost of the variable in the current solution (only available for continuous problems). | |
MPSolver::BasisStatus | basis_status () const |
Advanced usage: returns the basis status of the variable in the current solution (only available for continuous problems). | |
Protected Member Functions | |
MPVariable (double lb, double ub, bool integer, const string &name, MPSolverInterface *const interface) | |
Constructor. | |
void | set_index (int index) |
void | set_solution_value (double value) |
void | set_reduced_cost (double reduced_cost) |
Friends | |
class | MPSolver |
class | MPSolverInterface |
class | CBCInterface |
class | CLPInterface |
class | GLPKInterface |
class | SCIPInterface |
Definition at line 554 of file linear_solver.h.
operations_research::MPVariable::MPVariable | ( | double | lb, | |
double | ub, | |||
bool | integer, | |||
const string & | name, | |||
MPSolverInterface *const | interface | |||
) | [inline, protected] |
Constructor.
A variable points to a single MPSolverInterface that is specified in the constructor. A variable cannot belong to several models.
Definition at line 600 of file linear_solver.h.
const string& operations_research::MPVariable::name | ( | ) | const [inline] |
void operations_research::MPVariable::SetInteger | ( | bool | integer | ) |
bool operations_research::MPVariable::integer | ( | ) | const [inline] |
Returns the integrality requirement of the variable.
Definition at line 562 of file linear_solver.h.
double operations_research::MPVariable::solution_value | ( | ) | const |
Returns the value of the variable in the current solution.
Definition at line 189 of file linear_solver.cc.
int operations_research::MPVariable::index | ( | ) | const [inline] |
Returns the index of the variable in the MPSolver::variables_.
Definition at line 568 of file linear_solver.h.
double operations_research::MPVariable::lb | ( | ) | const [inline] |
double operations_research::MPVariable::ub | ( | ) | const [inline] |
void operations_research::MPVariable::SetLB | ( | double | lb | ) | [inline] |
void operations_research::MPVariable::SetUB | ( | double | ub | ) | [inline] |
void operations_research::MPVariable::SetBounds | ( | double | lb, | |
double | ub | |||
) |
double operations_research::MPVariable::reduced_cost | ( | ) | const |
Advanced usage: returns the reduced cost of the variable in the current solution (only available for continuous problems).
Definition at line 194 of file linear_solver.cc.
MPSolver::BasisStatus operations_research::MPVariable::basis_status | ( | ) | const |
Advanced usage: returns the basis status of the variable in the current solution (only available for continuous problems).
Definition at line 201 of file linear_solver.cc.
void operations_research::MPVariable::set_index | ( | int | index | ) | [inline, protected] |
Definition at line 605 of file linear_solver.h.
void operations_research::MPVariable::set_solution_value | ( | double | value | ) | [inline, protected] |
Definition at line 606 of file linear_solver.h.
void operations_research::MPVariable::set_reduced_cost | ( | double | reduced_cost | ) | [inline, protected] |
Definition at line 607 of file linear_solver.h.
friend class MPSolver [friend] |
Definition at line 590 of file linear_solver.h.
friend class MPSolverInterface [friend] |
Definition at line 591 of file linear_solver.h.
friend class CBCInterface [friend] |
Definition at line 592 of file linear_solver.h.
friend class CLPInterface [friend] |
Definition at line 593 of file linear_solver.h.
friend class GLPKInterface [friend] |
Definition at line 594 of file linear_solver.h.
friend class SCIPInterface [friend] |
Definition at line 595 of file linear_solver.h.