publicstaticfinalStringDEMAND_CURVES_FILE=getProperty("DEMAND_CURVES_FILE",DATA_DIR+File.separator+"com_curves.csv");// either DEMAND_CURVES_FILE or DEMAND_CONSUMPTION_FILE is used, but not both
if(yieldsExtrapolated==null){// Default behaviour if EXTRAPOLATE_YIELD_FERT_RESPONSE is false or a problem with the other approach
else{
fertParm=calcParam(yMinNoI,yMidNoI,yMaxNoI,fMid);
yieldsExtrapolated=yields;
}
returnfertParm;
...
...
@@ -128,8 +127,8 @@ public class YieldResponse {
doubleb=yH*20;
doubleepsilon=0.0001;
if(fM*yH>yM){
LogWriter.printlnError(String.format("yieldAsymptoteSolve: not diminishing yield increases to N: yM=%.3f, yH=%.3f, fM=%.3f",yM,yH,fM));
if(yM<0||yH<0||fM*yH>yM){
LogWriter.printlnError(String.format("yieldAsymptoteSolve: less than zero yield or not diminishing yield increases to N: yM=%.3f, yH=%.3f, fM=%.3f",yM,yH,fM));