it.ssc.step.readdata.OptionsRead Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsr331-ssc Show documentation
Show all versions of jsr331-ssc Show documentation
This is a JSR331 interface for SSC (Software for the Calculation of the Simplex) is a java library for solving linear programming problems v. 3.0.1.
SSC was designed and developed by Stefano Scarioli.
The newest version!
package it.ssc.step.readdata;
import it.ssc.step.exception.InvalidDichiarationOptions;
public class OptionsRead {
private long max_obs_read=-1;
public void setMaxObsRead(long max_obs_read) throws InvalidDichiarationOptions {
if(max_obs_read <=0) throw new InvalidDichiarationOptions("ERRORE ! Il numero massimo di osservazioni "+
"da leggere deve essere un numero positivo. obs="+max_obs_read);
this.max_obs_read=max_obs_read;
}
public long getMaxObsRead() {
return this.max_obs_read;
}
}