1 package types; 2 3 public interface DifferentiableObjective { 4 5 public double getValue(); 6 7 public void getGradient(double[] gradient); 8 9 public void getParameters(double[] params); 10 11 public void setParameters(double[] newParameters); 12 13 public int getNumParameters(); 14 }