The OptiMax object is the main object in OptiMax 2000 Component Library and is normally the first object that is defined in each project that uses OptiMax. All other objects in the OptiMax object hierarchy, are reachable from the collections contained by the OptiMax object.
Returns the Solvers collection of available solvers. (Object Property)
Returns the MplOptions collection of current MPL options settings. (Object Property)
Returns the Models collection of defined models. (Object Property)
Returns a StatusWindow object that can be used to control how the Status Window is diplayed. (Object Property)
The bin directory of the MPL OptiMax installation (string property - read only)
The current default Solver object. (Object Property - Read/Write)
The full version string of MPL OptiMax (string property - read only)
The home directory of the MPL OptiMax installation (string property - read only)
The model directory of the MPL OptiMax installation (string property - read only)
The current platform of MPL OptiMax (string property - read only)
The current version of MPL OptiMax. (String Property - Read Only)
The current version number of MPL OptiMax (integer property - read only)
The current version string of MPL OptiMax (string property - read only)
The current working directory for MPL. (String Property - Read/Write)
Reads in a project file (.mpj) containing options for both MPL and the solvers. (Method)
Reads in an init file (.ini) containing the solver setup information. (Method)
Scans the path for supported solvers and loads them into the Solvers collection. (Method)
Returns a string representing the OptiMax object. (Method)
Writes out a project file (.mpj) containing options for both MPL and the solvers. (Method)
Writes out an init file (.ini) containing the solver setup information. (Method)
VisualBasic Example:
Private Function ParseCuttingStockModel() As Integer Dim MPL As OptiMax Set MPL = New OptiMax MPL.WorkingDirectory = "c:\mplwin4" MPL.ReadProjectFile("c:\mplwin4\mplwin.mpj") MPL.ReadInitFile("c:\mplwin4\mplwin41.ini") End Function