OptiMax 2000 Component LibrarySample Calling Sequence
' Initialize OptiMax Library
Dim MPL As MPLLib.OptiMax
MPL.WorkingDirectory = "c:\mplwin4"
MPL.Options("UseAdvBasis").Value = False
' Initialize CPLEX solver
Set csModel = MPL.Models.Add("CutStock")
MPL.StatusWindow.Visible = True
csModel.ReadModel("cutstock.mpl")
' Display optimal solution result
MsgBox csModel.Solution.ResultString & ": TotalCost = " & _ csModel.Solution.ObjectValue