/********************************************************/ /* XPRD library example */ /* ==================== */ /* */ /* file piap.java */ /* `````````````` */ /* Example of use of XPRD: Java version of piapprox.mos */ /* Calculations are performed by the Mosel models */ /* */ /* (c) 2011 Fair Isaac Corporation */ /* author: S. Heipcke, 2011, rev. Nov. 2018 */ /********************************************************/ import com.dashoptimization.*; import java.lang.*; import java.io.*; public class piap { static final int N=1000000; static final int K=20; static final int NEWSUM=2; static final String nodelist[]={"","localhost"}; public static void main(String[] args) throws Exception { int M=nodelist.length; XPRD xprd=new XPRD(); XPRDMosel moselInst[]=new XPRDMosel[M]; XPRDModel modPar[]=new XPRDModel[K]; XPRDEvent ev; int modct,nbfinished; double mypi; for(int i=0;i