#include <OSOption.h>
Collaboration diagram for SOSVariableBranchingWeights:

Public Member Functions | |
| SOSVariableBranchingWeights () | |
| Default constructor. | |
| ~SOSVariableBranchingWeights () | |
| Class destructor. | |
| bool | IsEqual (SOSVariableBranchingWeights *that) |
| A function to check for the equality of two objects. | |
| bool | setSOS (int numberOfSOS, SOSWeights **sos) |
| A function to set an array of <sos> elements. | |
| bool | addSOS (int sosIdx, int nvar, double weight, int *idx, double *value) |
| A function to add an <sos> element. | |
Public Attributes | |
| int | numberOfSOS |
| number of <sos> children | |
| SOSWeights ** | sos |
| branching weights for the SOS | |
Definition at line 1276 of file OSOption.h.
| SOSVariableBranchingWeights::SOSVariableBranchingWeights | ( | ) |
| SOSVariableBranchingWeights::~SOSVariableBranchingWeights | ( | ) |
| bool SOSVariableBranchingWeights::IsEqual | ( | SOSVariableBranchingWeights * | that | ) |
A function to check for the equality of two objects.
Definition at line 7810 of file OSOption.cpp.
References numberOfSOS, and sos.
| bool SOSVariableBranchingWeights::setSOS | ( | int | numberOfSOS, | |
| SOSWeights ** | sos | |||
| ) |
A function to set an array of <sos> elements.
| numberOfSOS,: | number of <sos> elements to be set | |
| sos,: | the array of <sos> elements that are to be set |
Definition at line 4353 of file OSOption.cpp.
References ErrorClass::errormsg, SOSWeights::groupWeight, SOSWeights::numberOfVar, sos, SOSWeights::sosIdx, and SOSWeights::var.
Referenced by OSOption::setSOSVariableBranchingWeights().
| bool SOSVariableBranchingWeights::addSOS | ( | int | sosIdx, | |
| int | nvar, | |||
| double | weight, | |||
| int * | idx, | |||
| double * | value | |||
| ) |
A function to add an <sos> element.
| sosIdx,: | the index of the SOS that is to be added (refer back to OSiL file) | |
| nvar,: | the number of variables in this SOS that are to be given weights | |
| weight,: | a selection weight for the entire group of variables | |
| idx,: | an array of variable indices | |
| value,: | the array of corresponding selection weights |
Definition at line 4398 of file OSOption.cpp.
References ErrorClass::errormsg, SOSWeights::groupWeight, BranchingWeight::idx, numberOfSOS, SOSWeights::numberOfVar, sos, SOSWeights::sosIdx, BranchingWeight::value, and SOSWeights::var.
Referenced by OSOption::setAnotherSOSVariableBranchingWeight().
number of <sos> children
Definition at line 1280 of file OSOption.h.
Referenced by addSOS(), OSOption::getNumberOfSOS(), OSOption::getNumberOfSOSVarBranchingWeights(), IsEqual(), OSOption::setSOSVariableBranchingWeights(), and ~SOSVariableBranchingWeights().
branching weights for the SOS
Definition at line 1283 of file OSOption.h.
Referenced by addSOS(), OSOption::getNumberOfSOSVarBranchingWeights(), OSOption::getSOSVariableBranchingWeightsSparse(), IsEqual(), setSOS(), SOSVariableBranchingWeights(), and ~SOSVariableBranchingWeights().
1.4.7