|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of CmplException in jCMPL |
---|
Methods in jCMPL that throw CmplException | |
---|---|
void |
Cmpl.cancel()
Cancels the Cmpl solving process on the connected CMPLServer The status of the model can be obtained by the methods cmplStatus and cmplStatusText |
protected java.lang.String |
CmplInstance.cmplInstanceStr(java.lang.String cmplFileName,
java.util.HashMap<java.lang.Integer,java.lang.String> optList,
java.lang.String dataString,
java.lang.String jobId)
Creates a CmplInstance string |
java.lang.String |
Cmpl.conDisplayOptions()
Returns the a string with the display options for the constraints of the generated and solved CMPL model |
void |
Cmpl.connect(java.lang.String cmplUrl)
Connects a CMPLServer under cmplUrl - first step of solving a model on a CMPLServer remotely |
void |
Cmpl.delOption(java.lang.Integer pos)
Deletes an option |
void |
Cmpl.disconnect()
Disconnects the connected CMPLServer |
java.lang.Object |
CmplSet.get(int i)
Returns the indexing entry at a given position |
java.lang.Object |
CmplSet.get(int i,
int j)
Returns the indexing entry at a given position |
java.lang.Object |
Cmpl.getConByName(java.lang.String name)
Enables the direct access to a single constraint or constraint array of the optimal solution |
java.lang.Object |
Cmpl.getConByName(java.lang.String name,
int solNr)
Enables the direct access to a single constraint or constraint array of the solution with solNr |
java.lang.Object |
Cmpl.getVarByName(java.lang.String name)
Enables the direct access to a single variable or variable array of the optimal solution |
java.lang.Object |
Cmpl.getVarByName(java.lang.String name,
int solNr)
Enables the direct access to a single variable or variable array of solution with solNr |
void |
Cmpl.knock()
Knocks on the door of the connected CMPLServer and asks whether the model is finished - second step of solving a model on a CMPLServer asynchronously The status of the model can be obtained by the methods cmplStatus and cmplStatusText |
int |
CmplSet.len()
Length of the set |
long |
Cmpl.nrOfConstraints()
Returns the number of constraints of the generated and solved CMPL model |
long |
Cmpl.nrOfSolutions()
Returns the number of solutions of the generated and solved CMPL model |
long |
Cmpl.nrOfVariables()
Returns the number of variables of the generated and solved CMPL model |
java.lang.String |
Cmpl.objectiveName()
Returns the name of the objective function of the generated and solved CMPL model |
java.lang.String |
Cmpl.objectiveSense()
Returns the objective sense of the generated and solved CMPL model |
void |
CmplInfo.readCmplInfo()
Reads the CmplInfos into the jCMPL structures from the corresponding CmplMessage file |
void |
CmplInfo.readCmplInfo(java.lang.String cmplInfoStr)
Reads the CmplInfos into the jCMPL structures from the corresponding CmplMessage file or a CmplMessage string |
void |
Cmpl.retrieve()
Retrieves the Cmpl solution(s) if possible from the connected CMPLServer last step of solving a model on a CMPLServer asynchronously |
void |
Cmpl.saveSolution()
Saves the solution(s) as CmplSolutions file with filename modelname.csol |
void |
Cmpl.saveSolution(java.lang.String solFileName)
Saves the solution(s) as CmplSolutions file given filename |
void |
Cmpl.saveSolutionAscii()
Saves the solution(s) as ASCII file with filename modelname.csol |
void |
Cmpl.saveSolutionAscii(java.lang.String solFileName)
Saves the solution(s) as ASCII file with given file name |
void |
Cmpl.saveSolutionCsv()
Saves the solution(s) as CSV file with file name modelname.csv |
void |
Cmpl.saveSolutionCsv(java.lang.String solFileName)
Saves the solution(s) as CSV file with given file name |
java.lang.String |
Cmpl.send()
Sends the Cmpl model instance to the connected CMPLServer first step of solving a model on a CMPLServer asynchronously (after connect()) The status of the model can be obtained by the methods cmplStatus and cmplStatusText |
void |
Cmpl.setParameters(CmplParameter... params)
Committing CmplParameter objects to the Cmpl model |
void |
Cmpl.setSets(CmplSet... sets)
Committing CmplSet objects to the Cmpl model |
void |
CmplParameter.setValues(java.lang.Integer val)
Sets the value of a scaler Integer parameter |
void |
CmplSet.setValues(int val1,
int val2)
Defines the values of an algorithmic set (startNumber, startNumber+1, ..., endNumber) |
void |
CmplSet.setValues(int val1,
int val2,
int val3)
Defines the values of an algorithmic set (startNumber, startNumber+step, ..., endNumber) |
void |
CmplParameter.setValues(java.lang.Long val)
Sets the value of a scaler Long parameter |
void |
CmplParameter.setValues(java.lang.Object val)
Defines the values of a parameter array |
void |
CmplSet.setValues(java.lang.Object val)
Defines the values of an enumeration set For a set of n-tuples with n=1 - list|array of single indexing entries For a set of n-tuples with n>1 - list|array of list(s) that contain tuples |
void |
CmplParameter.setValues(java.lang.String val)
Sets the value of a scaler String parameter |
CmplSolution |
Cmpl.solution()
Returns the first (optimal) CmplSolutions object |
java.util.ArrayList<CmplSolution> |
Cmpl.solutionPool()
Returns a list of CmplSolutions objects |
void |
Cmpl.solutionReport()
Writes a standard solution report to stdOut |
void |
Cmpl.solutionReport(java.lang.String fileName)
Writes a standard solution report to a file Used by saveSolutionAscii |
void |
Cmpl.solve()
Solves a Cmpl model either with a local installed CMPL or if the model is connected with a CMPLServer remotely. |
java.lang.String |
Cmpl.solver()
Returns the name of the invoked solver of the generated and solved CMPL model |
java.lang.String |
Cmpl.solverMessage()
Returns the message of the invoked solver of the generated and solved CMPL model |
java.lang.String |
Cmpl.varDisplayOptions()
Returns the a string with the display options for the variables of the generated and solved CMPL model |
Constructors in jCMPL that throw CmplException | |
---|---|
Cmpl(java.lang.String model)
constructor |
|
CmplParameter(java.lang.String name)
Constructor for a scalar parameter |
|
CmplParameter(java.lang.String name,
CmplSet... sets)
Constructor for a parameter array |
|
CmplSet(java.lang.String name)
Constructor for a set with rank=1 |
|
CmplSet(java.lang.String name,
int rank)
Constructor for a set with rank |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |