?? thirdpartylpsolver.java
字號:
package com.power.pipeengine;/** * <p>Title: PIPE Engine</p> * <p>Description: Global Planning Optimization Engine</p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: Paraster, Inc.</p> * @author unascribed * @version 1.0 */import com.power.util.Message.*;import java.io.*;public class ThirdPartyLPSolver { private String _dir = "c:\\paraster\\lpsolver\\"; private String _cmd = "lpsolver.bat"; public ThirdPartyLPSolver() { } public void run() { try { Runtime r = Runtime.getRuntime(); Process p = null; File tmpfile= new File( _dir ); String cmd2[]={_dir+_cmd}; String dd[]={""}; p=r.exec( _dir + _cmd ); ;/* String cmd[] = { _dir + _cmd}; // "<model.lp", // ">model.out" }; File tmpfile= new File( _dir ); String dd[]={""}; p=r.exec(cmd );//, dd, tmpfile);*/ //wait(5000); //p.waitFor(); //System.out.println( p.exitValue() ); } catch (Exception e) { MessageArea.getInstance().addMessage( "Error: " + e.toString() + "\n"); } finally {System.gc();} }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -