(i int, Gmax1, Gmax2 float64)
| 775 | } |
| 776 | |
| 777 | func (this *Solver) be_shrunk(i int, Gmax1, Gmax2 float64) bool { |
| 778 | var rst bool |
| 779 | if this.is_upper_bound(i) { |
| 780 | if this.y[i] == +1 { |
| 781 | rst = -this.G[i] > Gmax1 |
| 782 | } else { |
| 783 | rst = -this.G[i] > Gmax2 |
| 784 | } |
| 785 | } else if this.is_lower_bound(i) { |
| 786 | if this.y[i] == +1 { |
| 787 | rst = this.G[i] > Gmax2 |
| 788 | } else { |
| 789 | rst = this.G[i] > Gmax1 |
| 790 | } |
| 791 | } else { |
| 792 | rst = false |
| 793 | } |
| 794 | return rst |
| 795 | } |
| 796 | |
| 797 | func (this *Solver) do_shrinking() { |
| 798 | var i int |
no test coverage detected