* \brief Which values to select for branching first * * \ingroup TaskModelFloatBranch */
| 1831 | * \ingroup TaskModelFloatBranch |
| 1832 | */ |
| 1833 | class FloatValBranch : public ValBranch<FloatVar> { |
| 1834 | public: |
| 1835 | /// Which value selection |
| 1836 | enum Select { |
| 1837 | SEL_SPLIT_MIN, ///< Select values not greater than mean of smallest and largest value |
| 1838 | SEL_SPLIT_MAX, ///< Select values greater than mean of smallest and largest value |
| 1839 | SEL_SPLIT_RND, ///< Select values randomly which are not greater or not smaller than mean of largest and smallest value |
| 1840 | SEL_VAL_COMMIT ///< Select value according to user-defined functions |
| 1841 | }; |
| 1842 | protected: |
| 1843 | /// Which value to select |
| 1844 | Select s; |
| 1845 | public: |
| 1846 | /// Initialize with selection strategy \a s |
| 1847 | FloatValBranch(Select s = SEL_SPLIT_MIN); |
| 1848 | /// Initialize with random number generator \a r |
| 1849 | FloatValBranch(Rnd r); |
| 1850 | /// Initialize with value function \a f and commit function \a c |
| 1851 | FloatValBranch(FloatBranchVal v, FloatBranchCommit c); |
| 1852 | /// Return selection strategy |
| 1853 | Select select(void) const; |
| 1854 | }; |
| 1855 | |
| 1856 | /** |
| 1857 | * \defgroup TaskModelFloatBranchVal Value selection for float variables |
no outgoing calls
no test coverage detected