src/HarvestStrategies.cpp
double HarvestStrategies::HCR2_MaleRamp(double MMB, double aveMMB, int rampID){
    //Define look up table for ramps
    double slopes[] = {5.0/75.0, 10.0/75.0, 15.0/75.0, 17.5/75.0};
    double intercepts[] = {0.0333, 0.01675, 0.0, -0.075};
    
    double maleRatio = MMB/aveMMB;
    double xp = 0;
    if (maleRatio < 0.25){
        return 0;
    } else if (maleRatio >= 1.0){
        maleRatio = 1;
    }
    xp = maleRatio*slopes[rampID -1]+intercepts[rampID -1];
    
    double TAC = MMB*xp;
    
    return TAC;
}
/**
 * HCR 2. 3 ramps.
 * 
 * @param MMB Mature Male Biomass in millions of lbs for the year 
 * @param aveMMB constant, MMB average from 1982-2016
 * @param rampID identifies the level of exploitation rate, low, moderate, or aggressive 
 * 
 * @return TAC
 */
HCR 2. 3 ramps.

@param MMB Mature Male Biomass in millions of lbs for the year
@param aveMMB constant, MMB average from 1982-2016
@param rampID identifies the level of exploitation rate, low, moderate, or aggressive

@return TAC
HCR 2 . 3 ramps . @param MMB Mature Male Biomass in millions of lbs for the year @param aveMMB constant MMB average from 1982 - 2016 @param rampID identifies the level of exploitation rate low moderate or aggressive @return TAC
double HarvestStrategies::HCR2_MaleRamp(double MMB, double aveMMB, int rampID){
    double slopes[] = {5.0/75.0, 10.0/75.0, 15.0/75.0, 17.5/75.0};
    double intercepts[] = {0.0333, 0.01675, 0.0, -0.075};
    double maleRatio = MMB/aveMMB;
    double xp = 0;
    if (maleRatio < 0.25){
        return 0;
    } else if (maleRatio >= 1.0){
        maleRatio = 1;
    }
    xp = maleRatio*slopes[rampID -1]+intercepts[rampID -1];
    double TAC = MMB*xp;
    return TAC;
}
double HarvestStrategies :: HCR2_MaleRamp ( double MMB , double aveMMB , int rampID ) { double slopes [ ] = { 5.0 / 75.0 , 10.0 / 75.0 , 15.0 / 75.0 , 17.5 / 75.0 } ; double intercepts [ ] = { 0.0333 , 0.01675 , 0.0 , -0.075 } ; double maleRatio = MMB / aveMMB ; double xp = 0 ; if ( maleRatio < 0.25 ) { return 0 ; } else if ( maleRatio >= 1.0 ) { maleRatio = 1 ; } xp = maleRatio * slopes [ rampID - 1 ] + intercepts [ rampID - 1 ] ; double TAC = MMB * xp ; return TAC ; }
HCR 2.
HCR 2 .
//Define look up table for ramps
