⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thirdpartylpsolver.java

📁 简介: 今天为网友提供的是JAVA源码
💻 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 + -