| |||||||||
Basic embedding tasks Description
Source Files By clicking on a file name, a preview is opened at the bottom of this page. Data Files ugcomptmp.java /******************************************************* Mosel User Guide Example Problems ================================= file ugcomptmp.java ``````````````````` Compiling a model into a BIM file saved in Mosel's temporary directory, then load and run it. (c) 2013 Fair Isaac Corporation author: S. Heipcke, Apr. 2013 ********************************************************/ import com.dashoptimization.*; public class ugcomptmp { public static void main(String[] args) throws Exception { XPRM mosel; XPRMModel mod; mosel = new XPRM(); // Initialize Mosel System.out.println("Compiling `burglar2'"); mosel.compile("", "burglar2.mos", "tmp:burglar2.bim", ""); System.out.println("Loading `burglar2'"); mod = mosel.loadModel("tmp:burglar2.bim"); System.out.println("Executing `burglar2'"); mod.run(); System.out.println("`burglar2' returned: " + mod.getResult()); } } | |||||||||
© Copyright 2024 Fair Isaac Corporation. |