return((String[])this.Params.keySet().toArray());
}
public DblMatrix getValueAt(DblMatrix factors)
{
BufferSolution sol;
DblMatrix fact;
this.Params.show("Parameters");
// for (int j=0;j<this.bufferSolutions.size();j++)
// {
// sol = (BufferSolution)this.bufferSolutions.get(j);
//
// if (j==0)
// {
// fact = new DblMatrix(0.0);
// }
// else
// {
// fact = this.getParam(new String("Factor"+j));
// }
//
// //We're optimizing the log of the mixture coefficients.
// factors.setDblAt(DblMatrix.pow(10,fact),j);
// }
BufferSolution mixture = null;
//mixture = BufferSolution.createMixture(this.repos,this.bufferSolutions,factors);
mixture = BufferSolution.createMixture(this.bufferSolutions,factors);
mixture.show("Mixture");
DblMatrix concMatrix = new DblMatrix(this.BVector.getN());
HashMap spec_conc = null;
spec_conc = (HashMap)mixture.species(this.pH);
//Get the predicted ionic strength too!
HashMap ionicStr = null;
ionicStr = mixture.ionicStr(this.pH);
DblMatrix iStrength = (DblMatrix)ionicStr.get("total");
Set buffers = spec_conc.keySet();