Server-Based Applications
Next, suppose you wanted to define and solve the model in an application on a corporate server or Web server. RASON tools make that easy, too.
Since the RASON Interpreter is embedded in Frontline's Solver SDK and XLMiner SDK products, an object-oriented library callable from a wide range
of languages such as C++, C#, Java and PHP, you can simply load and run a RASON model from a text file on the server:
Problem prob = new Problem ();
prob.Load ("model.json");
prob.Solver.Optimize();
MessageBox.Show(prob.FcnObjective.FinalValue[0].ToString());
As this C# code suggests, once you've loaded a RASON model, you can easily access model elements from code, update data, optimize or simulate, even monitor the solver's progress.
|