OSResult Class Reference

The Result Class. More...

#include <OSResult.h>

Collaboration diagram for OSResult:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OSResult ()
 Default constructor.
 ~OSResult ()
 Class destructor.
bool IsEqual (OSResult *that)
 A function to check for the equality of two objects.
GeneralStatusgetGeneralStatus ()
 Get the general status.
std::string getGeneralStatusType ()
 Get the general status type, which can be: success, error, warning.
std::string getGeneralStatusDescription ()
 Get the general status description.
int getNumberOfGeneralSubstatuses ()
 Get the number of substatuses.
std::string getGeneralSubstatusName (int i)
 Get the i_th general substatus name.
std::string getGeneralSubstatusDescription (int i)
 Get the i_th general substatus description.
std::string getGeneralMessage ()
 Get the general message.
std::string getServiceName ()
 Get service name.
std::string getServiceURI ()
 Get service uri.
std::string getInstanceName ()
 Get instance name.
std::string getJobID ()
 Get the job id.
std::string getSolverInvoked ()
 Get the solver invoked.
std::string getTimeStamp ()
 Get the time stamp.
int getNumberOfOtherGeneralResults ()
 Get the number of other results in the <general> element.
std::string getOtherGeneralResultName (int idx)
 Get the name of the i-th other result in the <general> element.
std::string getOtherGeneralResultValue (int idx)
std::string getOtherGeneralResultDescription (int idx)
std::string getSystemInformation ()
std::string getAvailableDiskSpaceUnit ()
std::string getAvailableDiskSpaceDescription ()
double getAvailableDiskSpaceValue ()
std::string getAvailableMemoryUnit ()
std::string getAvailableMemoryDescription ()
double getAvailableMemoryValue ()
std::string getAvailableCPUSpeedUnit ()
std::string getAvailableCPUSpeedDescription ()
double getAvailableCPUSpeedValue ()
std::string getAvailableCPUNumberDescription ()
int getAvailableCPUNumberValue ()
int getNumberOfOtherSystemResults ()
std::string getOtherSystemResultName (int idx)
std::string getOtherSystemResultValue (int idx)
std::string getOtherSystemResultDescription (int idx)
std::string getCurrentState ()
int getCurrentJobCount ()
int getTotalJobsSoFar ()
std::string getTimeServiceStarted ()
double getServiceUtilization ()
int getNumberOfOtherServiceResults ()
std::string getOtherServiceResultName (int idx)
std::string getOtherServiceResultValue (int idx)
std::string getOtherServiceResultDescription (int idx)
std::string getJobStatus ()
std::string getJobSubmitTime ()
std::string getScheduledStartTime ()
std::string getActualStartTime ()
std::string getJobEndTime ()
int getTimeNumber ()
 Get the number of time measurements.
double getTimeValue ()
 Get the time measurement.
int getNumberOfTimes ()
std::string getTimingInfoUnit (int idx)
std::string getTimingInfoType (int idx)
std::string getTimingInfoCategory (int idx)
std::string getTimingInfoDescription (int idx)
double getTimingInfoValue (int idx)
std::string getUsedDiskSpaceUnit ()
std::string getUsedDiskSpaceDescription ()
double getUsedDiskSpaceValue ()
std::string getUsedMemoryUnit ()
std::string getUsedMemoryDescription ()
double getUsedMemoryValue ()
std::string getUsedCPUSpeedUnit ()
std::string getUsedCPUSpeedDescription ()
double getUsedCPUSpeedValue ()
std::string getUsedCPUNumberDescription ()
int getUsedCPUNumberValue ()
int getNumberOfOtherJobResults ()
std::string getOtherJobResultName (int idx)
std::string getOtherJobResultValue (int idx)
std::string getOtherJobResultDescription (int idx)
int getVariableNumber ()
 Get variable number.
int getObjectiveNumber ()
 Get objective number.
int getConstraintNumber ()
 Get constraint number.
int getSolutionNumber ()
 get the number of solutions.
OptimizationSolutionStatusgetSolutionStatus (int solIdx)
 Get the [i]th optimization solution status, where i equals the given solution index.
std::string getSolutionStatusType (int solIdx)
 Get the [i]th optimization solution status type, where i equals the given solution index.
std::string getSolutionStatusDescription (int solIdx)
 Get the [i]th optimization solution status description, where i equals the given solution index.
int getNumberOfSolutionSubstatuses (int solIdx)
std::string getSolutionSubstatusType (int solIdx, int substatusIdx)
std::string getSolutionSubstatusDescription (int solIdx, int substatusIdx)
int getSolutionTargetObjectiveIdx (int solIdx)
bool getSolutionWeightedObjectives (int solIdx)
 Get the [i]th optimization solution form of the objective.
std::string getSolutionMessage (int solIdx)
 Get the [i]th optimization solution message, where i equals the given solution index.
int getNumberOfPrimalVariableValues (int solIdx)
int getNumberOfVarValues (int solIdx)
int getVarValueIdx (int solIdx, int varIdx)
double getVarValue (int solIdx, int varIdx)
std::vector< IndexValuePair * > getOptimalPrimalVariableValues (int solIdx)
 Get one solution of optimal primal variable values.
int getNumberOfVarValuesString (int solIdx)
int getVarValueStringIdx (int solIdx, int varIdx)
std::string getVarValueString (int solIdx, int varIdx)
int getNumberOfBasisVar (int solIdx)
int getBasisVarIdx (int solIdx, int varIdx)
std::string getBasisVar (int solIdx, int varIdx)
int getNumberOfOtherVariableResults (int solIdx)
 Get numberOfOtherVariableResult.
int getAnOtherVariableResultNumberOfVar (int solIdx, int iOther)
 Get getAnOtherVariableResultNumberOfVar.
std::string getOtherVariableResultName (int solIdx, int otherIdx)
std::string getOtherVariableResultValue (int solIdx, int otherIdx)
std::string getOtherVariableResultDescription (int solIdx, int otherIdx)
int getOtherVariableResultNumberOfVar (int solIdx, int otherIdx)
int getOtherVariableResultVarIdx (int solIdx, int otherIdx, int varIdx)
std::string getOtherVariableResultVar (int solIdx, int otherIdx, int varIdx)
int getNumberOfObjValues (int solIdx)
int getObjValueIdx (int solIdx, int objIdx)
double getObjValue (int solIdx, int objIdx)
double getOptimalObjValue (int objIdx, int solIdx)
 Get one solution of optimal objective values.
int getNumberOfOtherObjectiveResults (int solIdx)
std::string getOtherObjectiveResultName (int solIdx, int otherIdx)
std::string getOtherObjectiveResultValue (int solIdx, int otherIdx)
std::string getOtherObjectiveResultDescription (int solIdx, int otherIdx)
int getOtherObjectiveResultNumberOfObj (int solIdx, int otherIdx)
int getOtherObjectiveResultObjIdx (int solIdx, int otherIdx, int objIdx)
std::string getOtherObjectiveResultObj (int solIdx, int otherIdx, int objIdx)
int getNumberOfDualValues (int solIdx)
int getDualValueIdx (int solIdx, int conIdx)
double getDualValue (int solIdx, int conIdx)
std::vector< IndexValuePair * > getOptimalDualVariableValues (int solIdx)
 Get one solution of optimal dual variable values.
int getNumberOfOtherConstraintResults (int solIdx)
std::string getOtherConstraintResultName (int solIdx, int otherIdx)
std::string getOtherConstraintResultValue (int solIdx, int otherIdx)
std::string getOtherConstraintResultDescription (int solIdx, int otherIdx)
int getOtherConstraintResultNumberOfCon (int solIdx, int otherIdx)
int getOtherConstraintResultConIdx (int solIdx, int otherIdx, int conIdx)
std::string getOtherConstraintResultCon (int solIdx, int otherIdx, int conIdx)
int getNumberOfOtherSolutionResults (int solIdx)
std::string getOtherSolutionResultName (int solIdx, int otherIdx)
std::string getOtherSolutionResultCategory (int solIdx, int otherIdx)
std::string getOtherSolutionResultDescription (int solIdx, int otherIdx)
int getOtherSolutionResultNumberOfItems (int solIdx, int otherIdx)
std::string getOtherSolutionResultItem (int solIdx, int otherIdx, int itemIdx)
int getNumberOfSolverOutputs ()
std::string getSolverOutputName (int otherIdx)
std::string getSolverOutputCategory (int otherIdx)
std::string getSolverOutputDescription (int otherIdx)
int getSolverOutputNumberOfItems (int otherIdx)
std::string getSolverOutputItem (int otherIdx, int itemIdx)
bool setGeneralStatus (GeneralStatus *status)
 Set the general status.
bool setGeneralStatusType (std::string type)
 Set the general status type, which can be: success, error, warning.
bool setNumberOfGeneralSubstatuses (int num)
 Set the number of substatus elements.
bool setGeneralStatusDescription (std::string description)
 Set the general status description.
bool setGeneralSubstatusName (int idx, std::string name)
 Set the general substatus name.
bool setGeneralSubstatusDescription (int idx, std::string description)
 Set the general substatus description.
bool setGeneralMessage (std::string message)
 Set the general message.
bool setServiceName (std::string serviceName)
 Set service name.
bool setServiceURI (std::string serviceURI)
 Set service uri.
bool setInstanceName (std::string instanceName)
 Set instance name.
bool setJobID (std::string jobID)
 Set job id.
bool setSolverInvoked (std::string solverInvoked)
 Set solver invoked.
bool setTimeStamp (std::string timeStamp)
 Set time stamp.
bool setNumberOfOtherGeneralResults (int num)
 Set number of other general results.
bool setOtherGeneralResultName (int idx, std::string name)
 Set the general otherResult name.
bool setOtherGeneralResultValue (int idx, std::string value)
 Set the general otherResult value.
bool setOtherGeneralResultDescription (int idx, std::string description)
 Set the general otherResult description.
bool setSystemInformation (std::string systemInformation)
 Set the system information.
bool setAvailableDiskSpaceUnit (std::string unit)
 Set the unit in which available disk space is measured.
bool setAvailableDiskSpaceDescription (std::string description)
 Set the description of available disk space.
bool setAvailableDiskSpaceValue (double value)
 Set the amount of available disk space.
bool setAvailableMemoryUnit (std::string unit)
 Set the unit in which available memory is measured.
bool setAvailableMemoryDescription (std::string description)
 Set the description of available memory.
bool setAvailableMemoryValue (double value)
 Set the amount of available memory.
bool setAvailableCPUSpeedUnit (std::string unit)
 Set the unit in which available CPU speed is measured.
bool setAvailableCPUSpeedDescription (std::string description)
 Set the description of available CPU speed.
bool setAvailableCPUSpeedValue (double value)
 Set the available CPU speed.
bool setAvailableCPUNumberDescription (std::string description)
 Set the description of available number of CPUs.
bool setAvailableCPUNumberValue (int value)
 Set the available number of CPUs.
bool setNumberOfOtherSystemResults (int num)
 Set number of other system results.
bool setOtherSystemResultName (int idx, std::string name)
 Set the system otherResult name.
bool setOtherSystemResultValue (int idx, std::string value)
 Set the system otherResult value.
bool setOtherSystemResultDescription (int idx, std::string description)
 Set the system otherResult description.
bool setCurrentState (std::string currentState)
 Set the current state of the service.
bool setCurrentJobCount (int jobCount)
 Set the current job count.
bool setTotalJobsSoFar (int number)
 Set the total number of jobs so far.
bool setTimeServiceStarted (std::string startTime)
 Set the time the service was started.
bool setServiceUtilization (double value)
 Set the service utilitzation.
bool setNumberOfOtherServiceResults (int num)
 Set number of other service results.
bool setOtherServiceResultName (int idx, std::string name)
 Set the service otherResult name.
bool setOtherServiceResultValue (int idx, std::string value)
 Set the service otherResult value.
bool setOtherServiceResultDescription (int idx, std::string description)
 Set the service otherResult description.
bool setJobStatus (std::string status)
 Set the job status.
bool setJobSubmitTime (std::string submitTime)
 Set the time when the job was submitted.
bool setScheduledStartTime (std::string scheduledStartTime)
 Set the job's scheduled start time.
bool setActualStartTime (std::string actualStartTime)
 Set the job's actual start time.
bool setJobEndTime (std::string endTime)
 Set the time when the job finished.
bool setTime (double time)
 Set time.
bool addTimingInformation (std::string type, std::string category, std::string unit, std::string description, double value)
 Add timing information.
bool setTimingInformation (int idx, std::string type, std::string category, std::string unit, std::string description, double value)
 Set timing information.
bool setNumberOfTimes (int numberOfTimes)
 Set the number of time measurements and initial the time array.
bool setTimeNumber (int timeNumber)
 Set the number of time measurements.
bool setUsedDiskSpaceUnit (std::string unit)
 Set the unit in which used disk space is measured.
bool setUsedDiskSpaceDescription (std::string description)
 Set the description of used disk space.
bool setUsedDiskSpaceValue (double value)
 Set the amount of used disk space.
bool setUsedMemoryUnit (std::string unit)
 Set the unit in which used memory is measured.
bool setUsedMemoryDescription (std::string description)
 Set the description of used memory.
bool setUsedMemoryValue (double value)
 Set the amount of used memory.
bool setUsedCPUSpeedUnit (std::string unit)
 Set the unit in which used CPU speed is measured.
bool setUsedCPUSpeedDescription (std::string description)
 Set the description of used CPU speed.
bool setUsedCPUSpeedValue (double value)
 Set the used CPU speed.
bool setUsedCPUNumberDescription (std::string description)
 Set the description of used number of CPUs.
bool setUsedCPUNumberValue (int value)
 Set the used number of CPUs.
bool setNumberOfOtherJobResults (int num)
 Set number of other job results.
bool setOtherJobResultName (int idx, std::string name)
 Set the job otherResult name.
bool setOtherJobResultValue (int idx, std::string value)
 Set the job otherResult value.
bool setOtherJobResultDescription (int idx, std::string description)
 Set the job otherResult description.
bool setVariableNumber (int variableNumber)
 Set the variable number.
bool setObjectiveNumber (int objectiveNumber)
 Set the objective number.
bool setConstraintNumber (int constraintNumber)
 Set the constraint number.
bool setSolutionNumber (int number)
 set the number of solutions.
bool setSolutionStatus (int solIdx, std::string type, std::string description)
 Set the [i]th optimization solution status, where i equals the given solution index.
bool setSolutionStatusType (int solIdx, std::string type)
 Set the [i]th optimization solution status type.
bool setNumberOfSolutionSubstatuses (int solIdx, int num)
 Set the [i]th optimization solution's number of substatus elements.
bool setSolutionStatusDescription (int solIdx, std::string description)
 Set the [i]th optimization solution status description.
bool setSolutionSubstatusType (int solIdx, int substatusIdx, std::string type)
 Set the solution substatus type.
bool setSolutionSubstatusDescription (int solIdx, int substatusIdx, std::string description)
 Set the solution substatus description.
bool setSolutionTargetObjectiveIdx (int solIdx, int objectiveIdx)
 Set the [i]th optimization solution's objective index, where i equals the given solution index.
bool setSolutionWeightedObjectives (int solIdx, bool weightedObjectives)
 Record whether the [i]th optimization solution uses weighted objectives, where i equals the given solution index.
bool setSolutionMessage (int solIdx, std::string msg)
 Set the [i]th optimization solution's message, where i equals the given solution index.
bool setNumberOfPrimalVariableValues (int solIdx, int n)
 Set the [i]th optimization solution's number of primal variable values, where i equals the given solution index.
bool setPrimalVariableValuesSparse (int solIdx, std::vector< IndexValuePair * > x)
 Set the [i]th optimization solution's primal variable values, where i equals the given solution index.
bool setPrimalVariableValuesDense (int solIdx, double *x)
 Set the [i]th optimization solution's primal variable values, where i equals the given solution index.
bool setNumberOfVarValues (int solIdx, int numberOfVar)
 Set the number of primal variables to be given a value.
bool setVarValue (int solIdx, int number, int idx, double val)
 Set a primal variable value.
bool setNumberOfVarValuesString (int solIdx, int numberOfVar)
 Set the number of string-valued primal variables to be given a value.
bool setVarValueString (int solIdx, int number, int idx, std::string str)
 Set a string-valued primal variable value.
bool setBasisStatus (int solIdx, char object, int status, int *i, int ni)
 Set the basis status of a number of variables/constraints/objectives.
bool setNumberOfOtherVariableResults (int solIdx, int numberOfOtherVariableResults)
 Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.
bool setAnOtherVariableResultSparse (int solIdx, int otherIdx, std::string name, std::string value, std::string description, int *idx, std::string *s, int n)
 Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.
bool setAnOtherVariableResultDense (int solIdx, int otherIdx, std::string name, std::string value, std::string description, std::string *s)
 Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.
bool setOtherVariableResultNumberOfVar (int solIdx, int otherIdx, int numberOfVar)
 Set the number of children of another (non-standard/solver specific) variable-related result, for the [i]th solution.
bool setOtherVariableResultNumberOfEnumerations (int solIdx, int otherIdx, int numberOfVar)
 Set the number of <enumeration> children of another (non-standard/solver specific) variable-related result, for the [i]th solution.
bool setOtherVariableResultName (int solIdx, int otherIdx, std::string name)
 Set the name of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherVariableResultValue (int solIdx, int otherIdx, std::string value)
 Set the value of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherVariableResultDescription (int solIdx, int otherIdx, std::string description)
 Set the description of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherVariableResultVarIdx (int solIdx, int otherIdx, int varIdx, int idx)
 Set the index of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherVariableResultVar (int solIdx, int otherIdx, int varIdx, std::string value)
 Set the value of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherOptionEnumeration (int solIdx, int otherIdx, char object, int enumIdx, std::string value, std::string description, int *i, int ni)
 Set the value and corresponding indices of another (non-standard/solver specific) variable-related result, for the [k]th solution, where k equals the given solution index.
bool setNumberOfOtherObjectiveResults (int solIdx, int numberOfOtherObjectiveResults)
 Set the [i]th optimization solution's other (non-standard/solver specific) objective-related results, where i equals the given solution index.
bool setNumberOfObjValues (int solIdx, int numberOfObj)
 Set the number of objectives to be given a value.
bool setNumberOfObjectiveValues (int solIdx, int n)
 Set the [i]th optimization solution's number of objective values, where i equals the given solution index.
bool setObjectiveValuesSparse (int solIdx, std::vector< IndexValuePair * > x)
 Set the [i]th optimization solution's objective values, where i equals the given solution index.
bool setObjectiveValuesDense (int solIdx, double *objectiveValues)
 Set the [i]th optimization solution's objective values, where i equals the given solution index.
bool setObjValue (int solIdx, int number, int idx, double val)
 Set an objective value.
bool setOtherObjectiveResultNumberOfObj (int solIdx, int otherIdx, int numberOfObj)
 Set the number of <obj> children of another (non-standard/solver specific) objective-related result, for the [i]th solution.
bool setOtherObjectiveResultNumberOfEnumerations (int solIdx, int otherIdx, int numberOfObj)
 Set the number of <enumeration> children of another (non-standard/solver specific) objective-related result, for the [i]th solution.
bool setOtherObjectiveResultName (int solIdx, int otherIdx, std::string name)
 Set the name of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherObjectiveResultValue (int solIdx, int otherIdx, std::string value)
 Set the value of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherObjectiveResultDescription (int solIdx, int otherIdx, std::string description)
 Set the description of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherObjectiveResultObjIdx (int solIdx, int otherIdx, int objIdx, int idx)
 Set the index of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherObjectiveResultObj (int solIdx, int otherIdx, int objIdx, std::string value)
 Set the value of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
bool setNumberOfOtherConstraintResults (int solIdx, int numberOfOtherConstraintResults)
 Set the [i]th optimization solution's other (non-standard/solver specific) constraint-related results, where i equals the given solution index.
bool setNumberOfDualValues (int solIdx, int numberOfCon)
 Set the number of constraints to be given a value.
bool setNumberOfDualVariableValues (int solIdx, int n)
 Set the [i]th optimization solution's number of dual variable values, where i equals the given solution index.
bool setDualVariableValuesSparse (int solIdx, std::vector< IndexValuePair * > x)
 Set the [i]th optimization solution's dual variable values, where i equals the given solution index.
bool setDualVariableValuesDense (int solIdx, double *y)
 Set the [i]th optimization solution's dual variable values, where i equals the given solution index.
bool setConstraintValuesDense (int solIdx, double *constraintValues)
 Set the [i]th optimization solution's constraint values, where i equals the given solution index.
bool setDualValue (int solIdx, int number, int idx, double val)
 Set a dual value.
bool setOtherConstraintResultNumberOfCon (int solIdx, int otherIdx, int numberOfCon)
 Set the number of <con> children of another (non-standard/solver specific) constraint-related result, for the [i]th solution.
bool setOtherConstraintResultNumberOfEnumerations (int solIdx, int otherIdx, int numberOfCon)
 Set the number of <enumeration> children of another (non-standard/solver specific) constraint-related result, for the [i]th solution.
bool setOtherConstraintResultName (int solIdx, int otherIdx, std::string name)
 Set the name of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherConstraintResultValue (int solIdx, int otherIdx, std::string value)
 Set the value of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherConstraintResultDescription (int solIdx, int otherIdx, std::string description)
 Set the description of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherConstraintResultConIdx (int solIdx, int otherIdx, int conIdx, int idx)
 Set the index of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherConstraintResultCon (int solIdx, int otherIdx, int conIdx, std::string value)
 Set the value of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setNumberOfOtherSolutionResults (int solIdx, int numberOfOtherSolutionResults)
 Set the [i]th optimization solution's other (non-standard/solver specific) solution-related results, where i equals the given solution index.
bool setOtherSolutionResultName (int solIdx, int otherIdx, std::string name)
 Set the name associated with the [j]th other solution result of solution [i].
bool setOtherSolutionResultCategory (int solIdx, int otherIdx, std::string category)
 Set the category associated with the [j]th other solution result of solution [i].
bool setOtherSolutionResultDescription (int solIdx, int otherIdx, std::string description)
 Set the description associated with the [j]th other solution result of solution [i].
bool setOtherSolutionResultNumberOfItems (int solIdx, int otherIdx, int numberOfItems)
 Set the number of items associated with the [j]th other solution result of solution [i].
bool setOtherSolutionResultItem (int solIdx, int otherIdx, int itemIdx, std::string item)
 Set one item associated with the [j]th other solution result of solution [i].
bool setNumberOfSolverOutputs (int numberOfSolverOutputs)
 Set the number of other solver outputs.
bool setSolverOutputName (int otherIdx, std::string name)
 Set the name associated with the [j]th solver output.
bool setSolverOutputCategory (int otherIdx, std::string category)
 Set the category associated with the [j]th solver output.
bool setSolverOutputDescription (int otherIdx, std::string description)
 Set the description associated with the [j]th solver output.
bool setSolverOutputNumberOfItems (int otherIdx, int numberOfItems)
 Set the number of items associated with the [j]th solver output.
bool setSolverOutputItem (int otherIdx, int itemIdx, std::string item)
 Set one item associated with the [j]th solver output.
 OSResult ()
 Default constructor.
 ~OSResult ()
 Class destructor.
GeneralStatusgetGeneralStatus ()
 Get the general status.
std::string getGeneralStatusType ()
 Get the general status type, which can be: success, error, warning.
std::string getGeneralStatusDescription ()
 Get the general status description.
std::string getServiceName ()
 Get service name.
std::string getServiceURI ()
 Get service uri.
std::string getInstanceName ()
 Get instance name.
std::string getJobID ()
 Get the job id.
std::string getGeneralMessage ()
 Get the general message.
int getTimeNumber ()
 Get the number of time measurements.
double getTimeValue ()
 Get the time measurement.
double * getOptimalPrimalVariableValues (int objIdx)
 Get one solution of optimal primal variable values.
double * getOptimalDualVariableValues (int objIdx)
 Get one solution of optimal dual variable values.
OptimizationSolutionStatusgetSolutionStatus (int solIdx)
 Get the [i]th optimization solution status, where i equals the given solution index.
std::string getSolutionStatusType (int solIdx)
 Get the [i]th optimization solution status type, where i equals the given solution index.
std::string getSolutionStatusDescription (int solIdx)
 Get the [i]th optimization solution status description, where i equals the given solution index.
std::string getSolutionMessage (int solIdx)
 Get the [i]th optimization solution message, where i equals the given solution index.
int getVariableNumber ()
 Get variable number.
int getObjectiveNumber ()
 Get objective number.
int getConstraintNumber ()
 Get constraint number.
int getSolutionNumber ()
 get the number of solutions.
int getNumberOfOtherVariableResults (int solIdx)
 Get numberOfOtherVariableResult.
bool setGeneralStatus (GeneralStatus *status)
 Set the general status.
bool setGeneralStatusType (std::string type)
 Set the general status type, which can be: success, error, warning.
bool setGeneralStatusDescription (std::string description)
 Set the general status description.
bool setGeneralMessage (std::string message)
 Set the general message.
bool setServiceName (std::string serviceName)
 Set service name.
bool setServiceURI (std::string serviceURI)
 Set service uri.
bool setInstanceName (std::string instanceName)
 Set instance name.
bool setJobID (std::string jobID)
 Set job id.
bool setTime (double time)
 Set time.
bool addTimingInformation (std::string type, std::string category, std::string unit, std::string description, double value)
 Add timing information.
bool setTimeNumber (int timeNumber)
 Set the number of time measurements.
bool setVariableNumber (int variableNumber)
 Set the variable number.
bool setObjectiveNumber (int objectiveNumber)
 Set the objective number.
bool setConstraintNumber (int constraintNumber)
 Set the constraint number.
bool setSolutionNumber (int number)
 set the number of solutions.
bool setSolutionStatus (int solIdx, std::string type, std::string description)
 Set the [i]th optimization solution status, where i equals the given solution index.
bool setSolutionObjectiveIndex (int solIdx, int objectiveIdx)
 Set the [i]th optimization solution's objective index, where i equals the given solution index.
bool setNumberOfPrimalVariableValues (int solIdx, int n)
 Set the [i]th optimization solution's number of primal variable values, where i equals the given solution index.
bool setPrimalVariableValues (int solIdx, double *x, int n)
 Set the [i]th optimization solution's primal variable values, where i equals the given solution index.
bool setNumberOfOtherVariableResults (int solIdx, int numberOfOtherVariableResults)
 Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.
bool setAnOtherVariableResult (int solIdx, int otherIdx, std::string name, std::string description, int *indexes, std::string *s, int n)
 Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.
bool setObjectiveValues (int solIdx, double *objectiveValues, int n)
 Set the [i]th optimization solution's objective values, where i equals the given solution index.
bool setDualVariableValues (int solIdx, double *lbValues, double *ubValues, int n)
 Set the [i]th optimization solution's dual variable values, where i equals the given solution index.
bool setDualVariableValues (int solIdx, double *y, int n)
 Set the [i]th optimization solution's dual variable values, where i equals the given solution index.
bool setConstraintValues (int solIdx, double *constraintValues, int n)
 Set the [i]th optimization solution's constraint values, where i equals the given solution index.

Public Attributes

GeneralResultgeneral
 general holds the first child of the OSResult specified by the OSrL Schema.
SystemResultsystem
 system holds the second child of the OSResult specified by the OSrL Schema.
ServiceResultservice
 service holds the third child of the OSResult specified by the OSrL Schema.
JobResultjob
 job holds the fourth child of the OSResult specified by the OSrL Schema.
OptimizationResultoptimization
 optimization holds the fifth child of the OSResult specified by the OSrL Schema.
int m_iVariableNumber
 m_iVariableNumber holds the variable number.
int m_iObjectiveNumber
 m_iObjectiveNumber holds the objective number.
int m_iConstraintNumber
 m_iConstraintNumber holds the constraint number.
int m_iNumberOfOtherVariableResults
 m_iNumberOfOtherVariableResults holds the number of OtherVariableResult objects.
double * m_mdPrimalValues
 m_mdPrimalValues a vector of primal variables.
double * m_mdDualValues
 m_mdDualValues a vector of dual variables.
std::vector< IndexValuePair * > primalVals
std::vector< IndexValuePair * > dualVals
GeneralResultgeneral
 general holds the first child of the OSResult specified by the OSrL Schema.
SystemResultsystem
 system holds the second child of the OSResult specified by the OSrL Schema.
ServiceResultservice
 service holds the third child of the OSResult specified by the OSrL Schema.
JobResultjob
 job holds the fourth child of the OSResult specified by the OSrL Schema.
OptimizationResultoptimization
 optimization holds the fifth child of the OSResult specified by the OSrL Schema.
double * m_mdPrimalValues
 m_mdPrimalValues a vector of primal variables.
double * m_mdDualValues
 m_mdDualValues a vector of primal variables.

Detailed Description

The Result Class.

Author:
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
A class for holding all the solution information.

Definition at line 2034 of file OSResult.h.


Constructor & Destructor Documentation

OSResult::OSResult (  ) 

Default constructor.

Definition at line 1076 of file OSResult.cpp.

References general, job, optimization, service, and system.

OSResult::~OSResult (  ) 

Class destructor.

Definition at line 1095 of file OSResult.cpp.

References dualVals, general, job, m_mdDualValues, m_mdPrimalValues, optimization, primalVals, service, and system.

OSResult::OSResult (  ) 

Default constructor.

OSResult::~OSResult (  ) 

Class destructor.


Member Function Documentation

bool OSResult::IsEqual ( OSResult that  ) 

A function to check for the equality of two objects.

Definition at line 4553 of file OSResult.cpp.

References general, job, optimization, service, and system.

Referenced by main().

GeneralStatus * OSResult::getGeneralStatus (  ) 

Get the general status.

Returns:
the general status.

Definition at line 1142 of file OSResult.cpp.

References general, and GeneralResult::generalStatus.

string OSResult::getGeneralStatusType (  ) 

Get the general status type, which can be: success, error, warning.

Returns:
the general status type, null if none.

Definition at line 1147 of file OSResult.cpp.

References general, GeneralResult::generalStatus, and GeneralStatus::type.

Referenced by OSrL2Gams::writeSolution().

string OSResult::getGeneralStatusDescription (  ) 

Get the general status description.

Returns:
the general status description, null or empty std::string if none.

Definition at line 1153 of file OSResult.cpp.

References GeneralStatus::description, general, and GeneralResult::generalStatus.

int OSResult::getNumberOfGeneralSubstatuses (  ) 

Get the number of substatuses.

Returns:
the number of substatuses, -1 if general status does not exist.

Definition at line 1159 of file OSResult.cpp.

References general, GeneralResult::generalStatus, and GeneralStatus::numberOfSubstatuses.

string OSResult::getGeneralSubstatusName ( int  i  ) 

Get the i_th general substatus name.

Parameters:
i the number of the substatus (must be between 0 and numberOfSubstatuses)
Returns:
the general substatus name, null if none.

Definition at line 1165 of file OSResult.cpp.

References general, GeneralResult::generalStatus, GeneralSubstatus::name, GeneralStatus::numberOfSubstatuses, and GeneralStatus::substatus.

string OSResult::getGeneralSubstatusDescription ( int  i  ) 

Get the i_th general substatus description.

Parameters:
i the number of the substatus (must be between 0 and numberOfSubstatuses)
Returns:
the general substatus description, null or empty std::string if none.

Definition at line 1174 of file OSResult.cpp.

References GeneralSubstatus::description, general, GeneralResult::generalStatus, GeneralStatus::numberOfSubstatuses, and GeneralStatus::substatus.

string OSResult::getGeneralMessage (  ) 

Get the general message.

Returns:
the general message.

Definition at line 1183 of file OSResult.cpp.

References general, and GeneralResult::message.

Referenced by OSrL2Gams::writeSolution().

string OSResult::getServiceName (  ) 

Get service name.

Returns:
the service name.

Definition at line 1188 of file OSResult.cpp.

References general, and GeneralResult::serviceName.

string OSResult::getServiceURI (  ) 

Get service uri.

Returns:
the service uri.

Definition at line 1193 of file OSResult.cpp.

References general, and GeneralResult::serviceURI.

string OSResult::getInstanceName (  ) 

Get instance name.

Returns:
the instance name.

Definition at line 1198 of file OSResult.cpp.

References general, and GeneralResult::instanceName.

string OSResult::getJobID (  ) 

Get the job id.

Returns:
the job id.

Definition at line 1203 of file OSResult.cpp.

References general, and GeneralResult::jobID.

string OSResult::getSolverInvoked (  ) 

Get the solver invoked.

Returns:
the solver invoked.

Definition at line 1208 of file OSResult.cpp.

References general, and GeneralResult::solverInvoked.

string OSResult::getTimeStamp (  ) 

Get the time stamp.

Returns:
the time stamp.

Definition at line 1213 of file OSResult.cpp.

References general, and GeneralResult::timeStamp.

int OSResult::getNumberOfOtherGeneralResults (  ) 

Get the number of other results in the <general> element.

Returns:
the number of other <general> results.

Definition at line 1218 of file OSResult.cpp.

References general, OtherResults::numberOfOtherResults, and GeneralResult::otherResults.

string OSResult::getOtherGeneralResultName ( int  idx  ) 

Get the name of the i-th other result in the <general> element.

Parameters:
i holds the number of the result whose name is saught.
Returns:
the name of the other <general> result.

Definition at line 1224 of file OSResult.cpp.

References general, OtherResult::name, OtherResults::numberOfOtherResults, OtherResults::other, and GeneralResult::otherResults.

string OSResult::getOtherGeneralResultValue ( int  idx  ) 

Definition at line 1233 of file OSResult.cpp.

References general, OtherResults::numberOfOtherResults, OtherResults::other, GeneralResult::otherResults, and OtherResult::value.

string OSResult::getOtherGeneralResultDescription ( int  idx  ) 

Definition at line 1242 of file OSResult.cpp.

References OtherResult::description, general, OtherResults::numberOfOtherResults, OtherResults::other, and GeneralResult::otherResults.

string OSResult::getSystemInformation (  ) 

Definition at line 1251 of file OSResult.cpp.

References system, and SystemResult::systemInformation.

string OSResult::getAvailableDiskSpaceUnit (  ) 

Definition at line 1256 of file OSResult.cpp.

References SystemResult::availableDiskSpace, system, and DiskSpace::unit.

string OSResult::getAvailableDiskSpaceDescription (  ) 

Definition at line 1262 of file OSResult.cpp.

References SystemResult::availableDiskSpace, DiskSpace::description, and system.

double OSResult::getAvailableDiskSpaceValue (  ) 

Definition at line 1268 of file OSResult.cpp.

References SystemResult::availableDiskSpace, system, and DiskSpace::value.

string OSResult::getAvailableMemoryUnit (  ) 

Definition at line 1274 of file OSResult.cpp.

References SystemResult::availableMemory, system, and MemorySize::unit.

string OSResult::getAvailableMemoryDescription (  ) 

Definition at line 1280 of file OSResult.cpp.

References SystemResult::availableMemory, MemorySize::description, and system.

double OSResult::getAvailableMemoryValue (  ) 

Definition at line 1286 of file OSResult.cpp.

References SystemResult::availableMemory, system, and MemorySize::value.

string OSResult::getAvailableCPUSpeedUnit (  ) 

Definition at line 1292 of file OSResult.cpp.

References SystemResult::availableCPUSpeed, system, and CPUSpeed::unit.

string OSResult::getAvailableCPUSpeedDescription (  ) 

Definition at line 1298 of file OSResult.cpp.

References SystemResult::availableCPUSpeed, CPUSpeed::description, and system.

double OSResult::getAvailableCPUSpeedValue (  ) 

Definition at line 1304 of file OSResult.cpp.

References SystemResult::availableCPUSpeed, system, and CPUSpeed::value.

string OSResult::getAvailableCPUNumberDescription (  ) 

Definition at line 1310 of file OSResult.cpp.

References SystemResult::availableCPUNumber, CPUNumber::description, and system.

int OSResult::getAvailableCPUNumberValue (  ) 

Definition at line 1316 of file OSResult.cpp.

References SystemResult::availableCPUNumber, system, and CPUNumber::value.

int OSResult::getNumberOfOtherSystemResults (  ) 

Definition at line 1322 of file OSResult.cpp.

References OtherResults::numberOfOtherResults, SystemResult::otherResults, and system.

string OSResult::getOtherSystemResultName ( int  idx  ) 

Definition at line 1328 of file OSResult.cpp.

References OtherResult::name, OtherResults::numberOfOtherResults, OtherResults::other, SystemResult::otherResults, and system.

string OSResult::getOtherSystemResultValue ( int  idx  ) 

Definition at line 1337 of file OSResult.cpp.

References OtherResults::numberOfOtherResults, OtherResults::other, SystemResult::otherResults, system, and OtherResult::value.

string OSResult::getOtherSystemResultDescription ( int  idx  ) 

Definition at line 1346 of file OSResult.cpp.

References OtherResult::description, OtherResults::numberOfOtherResults, OtherResults::other, SystemResult::otherResults, and system.

string OSResult::getCurrentState (  ) 

Definition at line 1355 of file OSResult.cpp.

References ServiceResult::currentState, and service.

int OSResult::getCurrentJobCount (  ) 

Definition at line 1360 of file OSResult.cpp.

References ServiceResult::currentJobCount, and service.

int OSResult::getTotalJobsSoFar (  ) 

Definition at line 1365 of file OSResult.cpp.

References service, and ServiceResult::totalJobsSoFar.

string OSResult::getTimeServiceStarted (  ) 

Definition at line 1370 of file OSResult.cpp.

References service, and ServiceResult::timeServiceStarted.

double OSResult::getServiceUtilization (  ) 

Definition at line 1375 of file OSResult.cpp.

References service, and ServiceResult::serviceUtilization.

int OSResult::getNumberOfOtherServiceResults (  ) 

Definition at line 1380 of file OSResult.cpp.

References OtherResults::numberOfOtherResults, ServiceResult::otherResults, and service.

string OSResult::getOtherServiceResultName ( int  idx  ) 

Definition at line 1386 of file OSResult.cpp.

References OtherResult::name, OtherResults::numberOfOtherResults, OtherResults::other, ServiceResult::otherResults, and service.

string OSResult::getOtherServiceResultValue ( int  idx  ) 

Definition at line 1395 of file OSResult.cpp.

References OtherResults::numberOfOtherResults, OtherResults::other, ServiceResult::otherResults, service, and OtherResult::value.

string OSResult::getOtherServiceResultDescription ( int  idx  ) 

Definition at line 1404 of file OSResult.cpp.

References OtherResult::description, OtherResults::numberOfOtherResults, OtherResults::other, ServiceResult::otherResults, and service.

string OSResult::getJobStatus (  ) 

Definition at line 1413 of file OSResult.cpp.

References job, and JobResult::status.

string OSResult::getJobSubmitTime (  ) 

Definition at line 1418 of file OSResult.cpp.

References job, and JobResult::submitTime.

string OSResult::getScheduledStartTime (  ) 

Definition at line 1423 of file OSResult.cpp.

References job, and JobResult::scheduledStartTime.

string OSResult::getActualStartTime (  ) 

Definition at line 1428 of file OSResult.cpp.

References JobResult::actualStartTime, and job.

string OSResult::getJobEndTime (  ) 

Definition at line 1433 of file OSResult.cpp.

References JobResult::endTime, and job.

int OSResult::getTimeNumber (  ) 

Get the number of time measurements.

Returns:
the number of time measurements

Definition at line 1595 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, and JobResult::timingInformation.

double OSResult::getTimeValue (  ) 

Get the time measurement.

In the first instance, assume that there is only a single measure, which is the total elapsed time in seconds

Returns:
the time measurement

Definition at line 1588 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, TimingInformation::time, JobResult::timingInformation, and Time::value.

int OSResult::getNumberOfTimes (  ) 

Definition at line 1438 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, and JobResult::timingInformation.

string OSResult::getTimingInfoUnit ( int  idx  ) 

Definition at line 1444 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, TimingInformation::time, JobResult::timingInformation, and Time::unit.

string OSResult::getTimingInfoType ( int  idx  ) 

Definition at line 1453 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, TimingInformation::time, JobResult::timingInformation, and Time::type.

string OSResult::getTimingInfoCategory ( int  idx  ) 

Definition at line 1462 of file OSResult.cpp.

References Time::category, job, TimingInformation::numberOfTimes, TimingInformation::time, and JobResult::timingInformation.

string OSResult::getTimingInfoDescription ( int  idx  ) 

Definition at line 1471 of file OSResult.cpp.

References Time::description, job, TimingInformation::numberOfTimes, TimingInformation::time, and JobResult::timingInformation.

double OSResult::getTimingInfoValue ( int  idx  ) 

Definition at line 1480 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, OSNAN, TimingInformation::time, JobResult::timingInformation, and Time::value.

string OSResult::getUsedDiskSpaceUnit (  ) 

Definition at line 1489 of file OSResult.cpp.

References job, DiskSpace::unit, and JobResult::usedDiskSpace.

string OSResult::getUsedDiskSpaceDescription (  ) 

Definition at line 1495 of file OSResult.cpp.

References DiskSpace::description, job, and JobResult::usedDiskSpace.

double OSResult::getUsedDiskSpaceValue (  ) 

Definition at line 1501 of file OSResult.cpp.

References job, JobResult::usedDiskSpace, and DiskSpace::value.

string OSResult::getUsedMemoryUnit (  ) 

Definition at line 1507 of file OSResult.cpp.

References job, MemorySize::unit, and JobResult::usedMemory.

string OSResult::getUsedMemoryDescription (  ) 

Definition at line 1513 of file OSResult.cpp.

References MemorySize::description, job, and JobResult::usedMemory.

double OSResult::getUsedMemoryValue (  ) 

Definition at line 1519 of file OSResult.cpp.

References job, JobResult::usedMemory, and MemorySize::value.

string OSResult::getUsedCPUSpeedUnit (  ) 

Definition at line 1525 of file OSResult.cpp.

References job, CPUSpeed::unit, and JobResult::usedCPUSpeed.

string OSResult::getUsedCPUSpeedDescription (  ) 

Definition at line 1531 of file OSResult.cpp.

References CPUSpeed::description, job, and JobResult::usedCPUSpeed.

double OSResult::getUsedCPUSpeedValue (  ) 

Definition at line 1537 of file OSResult.cpp.

References job, JobResult::usedCPUSpeed, and CPUSpeed::value.

string OSResult::getUsedCPUNumberDescription (  ) 

Definition at line 1543 of file OSResult.cpp.

References CPUNumber::description, job, and JobResult::usedCPUNumber.

int OSResult::getUsedCPUNumberValue (  ) 

Definition at line 1549 of file OSResult.cpp.

References job, JobResult::usedCPUNumber, and CPUNumber::value.

int OSResult::getNumberOfOtherJobResults (  ) 

Definition at line 1555 of file OSResult.cpp.

References job, OtherResults::numberOfOtherResults, and JobResult::otherResults.

string OSResult::getOtherJobResultName ( int  idx  ) 

Definition at line 1561 of file OSResult.cpp.

References job, OtherResult::name, OtherResults::numberOfOtherResults, OtherResults::other, and JobResult::otherResults.

string OSResult::getOtherJobResultValue ( int  idx  ) 

Definition at line 1570 of file OSResult.cpp.

References job, OtherResults::numberOfOtherResults, OtherResults::other, JobResult::otherResults, and OtherResult::value.

string OSResult::getOtherJobResultDescription ( int  idx  ) 

Definition at line 1579 of file OSResult.cpp.

References OtherResult::description, job, OtherResults::numberOfOtherResults, OtherResults::other, and JobResult::otherResults.

int OSResult::getVariableNumber (  ) 

Get variable number.

Returns:
variable number, -1 if no information.

Definition at line 1602 of file OSResult.cpp.

References m_iVariableNumber, OptimizationResult::numberOfVariables, and optimization.

Referenced by main(), setNumberOfPrimalVariableValues(), setOtherVariableResultDescription(), setOtherVariableResultName(), setOtherVariableResultValue(), setPrimalVariableValuesDense(), and OSrL2Gams::writeSolution().

int OSResult::getObjectiveNumber (  ) 

Get objective number.

Returns:
objective number, -1 if no information.

Definition at line 1610 of file OSResult.cpp.

References m_iObjectiveNumber, OptimizationResult::numberOfObjectives, and optimization.

Referenced by setNumberOfObjectiveValues(), setObjectiveValuesDense(), setOtherObjectiveResultDescription(), setOtherObjectiveResultName(), and setOtherObjectiveResultValue().

int OSResult::getConstraintNumber (  ) 

Get constraint number.

Returns:
constraint number, -1 if no information.

Definition at line 1618 of file OSResult.cpp.

References m_iConstraintNumber, OptimizationResult::numberOfConstraints, and optimization.

Referenced by main(), setConstraintValuesDense(), setDualVariableValuesDense(), setNumberOfDualVariableValues(), setOtherConstraintResultDescription(), setOtherConstraintResultName(), setOtherConstraintResultValue(), and OSrL2Gams::writeSolution().

int OSResult::getSolutionNumber (  ) 

get the number of solutions.

Returns:
the number of solutions, 0 if none.

Definition at line 1626 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, optimization, and OptimizationResult::solution.

Referenced by getAnOtherVariableResultNumberOfVar(), getDualValue(), getDualValueIdx(), getNumberOfDualValues(), getNumberOfObjValues(), getNumberOfOtherConstraintResults(), getNumberOfOtherObjectiveResults(), getNumberOfOtherSolutionResults(), getObjValue(), getObjValueIdx(), getOptimalDualVariableValues(), getOptimalObjValue(), getOptimalPrimalVariableValues(), getOtherConstraintResultCon(), getOtherConstraintResultConIdx(), getOtherConstraintResultDescription(), getOtherConstraintResultName(), getOtherConstraintResultNumberOfCon(), getOtherConstraintResultValue(), getOtherObjectiveResultDescription(), getOtherObjectiveResultName(), getOtherObjectiveResultNumberOfObj(), getOtherObjectiveResultObj(), getOtherObjectiveResultObjIdx(), getOtherObjectiveResultValue(), getOtherSolutionResultCategory(), getOtherSolutionResultDescription(), getOtherSolutionResultItem(), getOtherSolutionResultName(), getOtherSolutionResultNumberOfItems(), getOtherVariableResultDescription(), getOtherVariableResultName(), getOtherVariableResultNumberOfVar(), getOtherVariableResultValue(), getOtherVariableResultVar(), getOtherVariableResultVarIdx(), setConstraintValues(), setConstraintValuesDense(), setDualVariableValues(), setDualVariableValuesDense(), setDualVariableValuesSparse(), setNumberOfDualVariableValues(), setNumberOfObjectiveValues(), setNumberOfOtherConstraintResults(), setNumberOfOtherObjectiveResults(), setNumberOfOtherSolutionResults(), setNumberOfOtherVariableResults(), setNumberOfPrimalVariableValues(), setNumberOfSolutionSubstatuses(), setObjectiveValues(), setObjectiveValuesDense(), setObjectiveValuesSparse(), setOtherConstraintResultCon(), setOtherConstraintResultConIdx(), setOtherConstraintResultDescription(), setOtherConstraintResultName(), setOtherConstraintResultNumberOfCon(), setOtherConstraintResultNumberOfEnumerations(), setOtherConstraintResultValue(), setOtherObjectiveResultDescription(), setOtherObjectiveResultName(), setOtherObjectiveResultNumberOfEnumerations(), setOtherObjectiveResultNumberOfObj(), setOtherObjectiveResultObj(), setOtherObjectiveResultObjIdx(), setOtherObjectiveResultValue(), setOtherSolutionResultCategory(), setOtherSolutionResultDescription(), setOtherSolutionResultItem(), setOtherSolutionResultName(), setOtherSolutionResultNumberOfItems(), setOtherVariableResultDescription(), setOtherVariableResultName(), setOtherVariableResultNumberOfEnumerations(), setOtherVariableResultNumberOfVar(), setOtherVariableResultValue(), setOtherVariableResultVar(), setOtherVariableResultVarIdx(), setPrimalVariableValues(), setPrimalVariableValuesDense(), setPrimalVariableValuesSparse(), setSolutionMessage(), setSolutionObjectiveIndex(), setSolutionStatusDescription(), setSolutionStatusType(), setSolutionSubstatusDescription(), setSolutionSubstatusType(), setSolutionTargetObjectiveIdx(), setSolutionWeightedObjectives(), and OSrL2Gams::writeSolution().

OptimizationSolutionStatus * OSResult::getSolutionStatus ( int  solIdx  ) 

Get the [i]th optimization solution status, where i equals the given solution index.

The solution status includes the status type, optional descriptions and possibly substatuses.

Parameters:
solIdx holds the solution index to get the solution status.
Returns:
the optimization solution status that corresponds to solIdx, null if none.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OptimizationSolutionStatus

Definition at line 1633 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, optimization, OptimizationResult::solution, and OptimizationSolution::status.

string OSResult::getSolutionStatusType ( int  solIdx  ) 

Get the [i]th optimization solution status type, where i equals the given solution index.

The solution status type can be: unbounded, globallyOptimal, locallyOptimal, optimal, bestSoFar, feasible, infeasible, stoppedByLimit, unsure, error, other

Parameters:
solIdx holds the solution index to get the solution status type.
Returns:
the optimization solution status type that corresponds to solIdx, null or empty std::string if none.

Definition at line 1642 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, optimization, OptimizationResult::solution, OptimizationSolution::status, and OptimizationSolutionStatus::type.

Referenced by getOSResult(), main(), OSDipBlockCoinSolver::solve(), OSColGenApp::solveRestrictedMasterRelaxation(), and OSrL2Gams::writeSolution().

string OSResult::getSolutionStatusDescription ( int  solIdx  ) 

Get the [i]th optimization solution status description, where i equals the given solution index.

Parameters:
solIdx holds the solution index to get the solution status description.
Returns:
the optimization solution status description that corresponds to solIdx, null or empty std::string if none.

Definition at line 1652 of file OSResult.cpp.

References OptimizationSolutionStatus::description, OptimizationResult::numberOfSolutions, optimization, OptimizationResult::solution, and OptimizationSolution::status.

Referenced by getOSResult().

int OSResult::getNumberOfSolutionSubstatuses ( int  solIdx  ) 

Definition at line 1662 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, OptimizationSolutionStatus::numberOfSubstatuses, optimization, OptimizationResult::solution, and OptimizationSolution::status.

string OSResult::getSolutionSubstatusType ( int  solIdx,
int  substatusIdx 
)

Definition at line 1672 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, OptimizationSolutionStatus::numberOfSubstatuses, optimization, OptimizationResult::solution, OptimizationSolution::status, OptimizationSolutionStatus::substatus, and OptimizationSolutionSubstatus::type.

string OSResult::getSolutionSubstatusDescription ( int  solIdx,
int  substatusIdx 
)

Definition at line 1684 of file OSResult.cpp.

References OptimizationSolutionSubstatus::description, OptimizationResult::numberOfSolutions, OptimizationSolutionStatus::numberOfSubstatuses, optimization, OptimizationResult::solution, OptimizationSolution::status, and OptimizationSolutionStatus::substatus.

int OSResult::getSolutionTargetObjectiveIdx ( int  solIdx  ) 

Definition at line 1696 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, optimization, OptimizationResult::solution, and OptimizationSolution::targetObjectiveIdx.

bool OSResult::getSolutionWeightedObjectives ( int  solIdx  ) 

Get the [i]th optimization solution form of the objective.

Parameters:
solIdx holds the solution index to get the solution status description.
Returns:
whether weighting is applied to the objective.

Definition at line 1705 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, optimization, OptimizationResult::solution, and OptimizationSolution::weightedObjectives.

string OSResult::getSolutionMessage ( int  solIdx  ) 

Get the [i]th optimization solution message, where i equals the given solution index.

Parameters:
solIdx holds the solution index to get the solution message.
Returns:
the optimization solution message that corresponds to solIdx, null or empty if none.

Definition at line 1714 of file OSResult.cpp.

References OptimizationSolution::message, OptimizationResult::numberOfSolutions, optimization, and OptimizationResult::solution.

int OSResult::getNumberOfPrimalVariableValues ( int  solIdx  ) 

Definition at line 1722 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::values, and OptimizationSolution::variables.

int OSResult::getNumberOfVarValues ( int  solIdx  ) 

Definition at line 1733 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::values, and OptimizationSolution::variables.

int OSResult::getVarValueIdx ( int  solIdx,
int  varIdx 
)

Definition at line 1744 of file OSResult.cpp.

References VarValue::idx, OptimizationResult::numberOfSolutions, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

double OSResult::getVarValue ( int  solIdx,
int  varIdx 
)

Definition at line 1757 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValues::numberOfVar, optimization, OSNAN, OptimizationResult::solution, VarValue::value, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

double * OSResult::getOptimalPrimalVariableValues ( int  solIdx  ) 

Get one solution of optimal primal variable values.

Parameters:
solIdx holds the solution index the optimal solution corresponds to.
Returns:
a vector of variable indexes and values, an empty vector if no optimal value.

Definition at line 1770 of file OSResult.cpp.

References getSolutionNumber(), VarValue::idx, IndexValuePair::idx, m_mdPrimalValues, VariableValues::numberOfVar, optimization, primalVals, OptimizationResult::solution, OptimizationSolution::status, OptimizationSolutionStatus::type, VarValue::value, IndexValuePair::value, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

Referenced by OS_DipInterface::generateInitialMaster(), getOSResult(), main(), and OSDipBlockCoinSolver::solve().

int OSResult::getNumberOfVarValuesString ( int  solIdx  ) 

Definition at line 1797 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValuesString::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::valuesString, and OptimizationSolution::variables.

int OSResult::getVarValueStringIdx ( int  solIdx,
int  varIdx 
)

Definition at line 1808 of file OSResult.cpp.

References VarValueString::idx, OptimizationResult::numberOfSolutions, VariableValuesString::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::valuesString, VariableValuesString::var, and OptimizationSolution::variables.

std::string OSResult::getVarValueString ( int  solIdx,
int  varIdx 
)

Definition at line 1821 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValuesString::numberOfVar, optimization, OptimizationResult::solution, VarValueString::value, VariableSolution::valuesString, VariableValuesString::var, and OptimizationSolution::variables.

int OSResult::getNumberOfBasisVar ( int  solIdx  ) 

int OSResult::getBasisVarIdx ( int  solIdx,
int  varIdx 
)

std::string OSResult::getBasisVar ( int  solIdx,
int  varIdx 
)

int OSResult::getNumberOfOtherVariableResults ( int  solIdx  ) 

Get numberOfOtherVariableResult.

Returns:
numberOfOtherVariableResult, -1 if no information.

Definition at line 1873 of file OSResult.cpp.

References m_iNumberOfOtherVariableResults, VariableSolution::numberOfOtherVariableResults, OptimizationResult::numberOfSolutions, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

int OSResult::getAnOtherVariableResultNumberOfVar ( int  solIdx,
int  iOther 
)

Get getAnOtherVariableResultNumberOfVar.

Returns:
the number of variables in the i'th other variable result, -1 if no information.

Definition at line 1887 of file OSResult.cpp.

References getSolutionNumber(), VariableSolution::numberOfOtherVariableResults, OtherVariableResult::numberOfVar, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

string OSResult::getOtherVariableResultName ( int  solIdx,
int  otherIdx 
)

Definition at line 1901 of file OSResult.cpp.

References getSolutionNumber(), OtherVariableResult::name, VariableSolution::numberOfOtherVariableResults, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

string OSResult::getOtherVariableResultValue ( int  solIdx,
int  otherIdx 
)

Definition at line 1916 of file OSResult.cpp.

References getSolutionNumber(), VariableSolution::numberOfOtherVariableResults, optimization, VariableSolution::other, OptimizationResult::solution, OtherVariableResult::value, and OptimizationSolution::variables.

string OSResult::getOtherVariableResultDescription ( int  solIdx,
int  otherIdx 
)

Definition at line 1931 of file OSResult.cpp.

References OtherVariableResult::description, getSolutionNumber(), VariableSolution::numberOfOtherVariableResults, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

int OSResult::getOtherVariableResultNumberOfVar ( int  solIdx,
int  otherIdx 
)

Definition at line 1946 of file OSResult.cpp.

References getSolutionNumber(), VariableSolution::numberOfOtherVariableResults, OtherVariableResult::numberOfVar, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

int OSResult::getOtherVariableResultVarIdx ( int  solIdx,
int  otherIdx,
int  varIdx 
)

Definition at line 1961 of file OSResult.cpp.

References getSolutionNumber(), OtherVarResult::idx, VariableSolution::numberOfOtherVariableResults, OtherVariableResult::numberOfVar, optimization, VariableSolution::other, OptimizationResult::solution, OtherVariableResult::var, and OptimizationSolution::variables.

string OSResult::getOtherVariableResultVar ( int  solIdx,
int  otherIdx,
int  varIdx 
)

Definition at line 1979 of file OSResult.cpp.

References getSolutionNumber(), VariableSolution::numberOfOtherVariableResults, OtherVariableResult::numberOfVar, optimization, VariableSolution::other, OptimizationResult::solution, OtherVarResult::value, OtherVariableResult::var, and OptimizationSolution::variables.

int OSResult::getNumberOfObjValues ( int  solIdx  ) 

Definition at line 1997 of file OSResult.cpp.

References getSolutionNumber(), ObjectiveValues::numberOfObj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, and ObjectiveSolution::values.

int OSResult::getObjValueIdx ( int  solIdx,
int  objIdx 
)

Definition at line 2009 of file OSResult.cpp.

References getSolutionNumber(), ObjValue::idx, ObjectiveValues::numberOfObj, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, and ObjectiveSolution::values.

double OSResult::getObjValue ( int  solIdx,
int  objIdx 
)

Definition at line 2023 of file OSResult.cpp.

References getSolutionNumber(), ObjectiveValues::numberOfObj, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OSNAN, OptimizationResult::solution, ObjValue::value, and ObjectiveSolution::values.

double OSResult::getOptimalObjValue ( int  objIdx,
int  solIdx 
)

Get one solution of optimal objective values.

Parameters:
objIdx holds the objective index the optimal value corresponds to.
solIdx holds the solution index the optimal value corresponds to.
Returns:
a double with the optimal objective function value.

Definition at line 2037 of file OSResult.cpp.

References getSolutionNumber().

Referenced by getOSResult(), main(), and OSDipBlockCoinSolver::solve().

int OSResult::getNumberOfOtherObjectiveResults ( int  solIdx  ) 

Definition at line 2056 of file OSResult.cpp.

References getSolutionNumber(), ObjectiveSolution::numberOfOtherObjectiveResults, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

string OSResult::getOtherObjectiveResultName ( int  solIdx,
int  otherIdx 
)

Definition at line 2068 of file OSResult.cpp.

References getSolutionNumber(), OtherObjectiveResult::name, ObjectiveSolution::numberOfOtherObjectiveResults, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

string OSResult::getOtherObjectiveResultValue ( int  solIdx,
int  otherIdx 
)

Definition at line 2083 of file OSResult.cpp.

References getSolutionNumber(), ObjectiveSolution::numberOfOtherObjectiveResults, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, OptimizationResult::solution, and OtherObjectiveResult::value.

string OSResult::getOtherObjectiveResultDescription ( int  solIdx,
int  otherIdx 
)

Definition at line 2098 of file OSResult.cpp.

References OtherObjectiveResult::description, getSolutionNumber(), ObjectiveSolution::numberOfOtherObjectiveResults, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

int OSResult::getOtherObjectiveResultNumberOfObj ( int  solIdx,
int  otherIdx 
)

Definition at line 2113 of file OSResult.cpp.

References getSolutionNumber(), OtherObjectiveResult::numberOfObj, ObjectiveSolution::numberOfOtherObjectiveResults, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

int OSResult::getOtherObjectiveResultObjIdx ( int  solIdx,
int  otherIdx,
int  objIdx 
)

Definition at line 2128 of file OSResult.cpp.

References getSolutionNumber(), OtherObjResult::idx, OtherObjectiveResult::numberOfObj, ObjectiveSolution::numberOfOtherObjectiveResults, OtherObjectiveResult::obj, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

string OSResult::getOtherObjectiveResultObj ( int  solIdx,
int  otherIdx,
int  objIdx 
)

Definition at line 2146 of file OSResult.cpp.

References getSolutionNumber(), OtherObjectiveResult::numberOfObj, ObjectiveSolution::numberOfOtherObjectiveResults, OtherObjectiveResult::obj, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, OptimizationResult::solution, and OtherObjResult::value.

int OSResult::getNumberOfDualValues ( int  solIdx  ) 

Definition at line 2164 of file OSResult.cpp.

References OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVariableValues::numberOfCon, optimization, and OptimizationResult::solution.

int OSResult::getDualValueIdx ( int  solIdx,
int  conIdx 
)

Definition at line 2176 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVarValue::idx, DualVariableValues::numberOfCon, optimization, and OptimizationResult::solution.

double OSResult::getDualValue ( int  solIdx,
int  conIdx 
)

Definition at line 2190 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVariableValues::numberOfCon, optimization, OSNAN, OptimizationResult::solution, and DualVarValue::value.

double * OSResult::getOptimalDualVariableValues ( int  solIdx  ) 

Get one solution of optimal dual variable values.

Parameters:
solIdx holds the solution index the optimal solution corresponds to.
Returns:
a vector of variable indexes and values, an empty vector if no optimal value.

Definition at line 2204 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, dualVals, ConstraintSolution::dualValues, getSolutionNumber(), DualVarValue::idx, IndexValuePair::idx, m_mdDualValues, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, OptimizationSolution::status, OptimizationSolutionStatus::type, DualVarValue::value, and IndexValuePair::value.

Referenced by main().

int OSResult::getNumberOfOtherConstraintResults ( int  solIdx  ) 

Definition at line 2231 of file OSResult.cpp.

References OptimizationSolution::constraints, getSolutionNumber(), ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, and OptimizationResult::solution.

string OSResult::getOtherConstraintResultName ( int  solIdx,
int  otherIdx 
)

Definition at line 2243 of file OSResult.cpp.

References OptimizationSolution::constraints, getSolutionNumber(), OtherConstraintResult::name, ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, and OptimizationResult::solution.

string OSResult::getOtherConstraintResultValue ( int  solIdx,
int  otherIdx 
)

Definition at line 2258 of file OSResult.cpp.

References OptimizationSolution::constraints, getSolutionNumber(), ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, OptimizationResult::solution, and OtherConstraintResult::value.

string OSResult::getOtherConstraintResultDescription ( int  solIdx,
int  otherIdx 
)

Definition at line 2273 of file OSResult.cpp.

References OptimizationSolution::constraints, OtherConstraintResult::description, getSolutionNumber(), ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, and OptimizationResult::solution.

int OSResult::getOtherConstraintResultNumberOfCon ( int  solIdx,
int  otherIdx 
)

Definition at line 2288 of file OSResult.cpp.

References OptimizationSolution::constraints, getSolutionNumber(), OtherConstraintResult::numberOfCon, ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, and OptimizationResult::solution.

int OSResult::getOtherConstraintResultConIdx ( int  solIdx,
int  otherIdx,
int  conIdx 
)

Definition at line 2303 of file OSResult.cpp.

References OtherConstraintResult::con, OptimizationSolution::constraints, getSolutionNumber(), OtherConResult::idx, OtherConstraintResult::numberOfCon, ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, and OptimizationResult::solution.

string OSResult::getOtherConstraintResultCon ( int  solIdx,
int  otherIdx,
int  conIdx 
)

Definition at line 2321 of file OSResult.cpp.

References OtherConstraintResult::con, OptimizationSolution::constraints, getSolutionNumber(), OtherConstraintResult::numberOfCon, ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, OptimizationResult::solution, and OtherConResult::value.

int OSResult::getNumberOfOtherSolutionResults ( int  solIdx  ) 

Definition at line 2339 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResults::numberOfOtherSolutionResults, optimization, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

string OSResult::getOtherSolutionResultName ( int  solIdx,
int  otherIdx 
)

Definition at line 2350 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResult::name, OtherSolutionResults::numberOfOtherSolutionResults, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

string OSResult::getOtherSolutionResultCategory ( int  solIdx,
int  otherIdx 
)

Definition at line 2364 of file OSResult.cpp.

References OtherSolutionResult::category, getSolutionNumber(), OtherSolutionResults::numberOfOtherSolutionResults, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

string OSResult::getOtherSolutionResultDescription ( int  solIdx,
int  otherIdx 
)

Definition at line 2378 of file OSResult.cpp.

References OtherSolutionResult::description, getSolutionNumber(), OtherSolutionResults::numberOfOtherSolutionResults, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

int OSResult::getOtherSolutionResultNumberOfItems ( int  solIdx,
int  otherIdx 
)

Definition at line 2392 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResult::numberOfItems, OtherSolutionResults::numberOfOtherSolutionResults, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

string OSResult::getOtherSolutionResultItem ( int  solIdx,
int  otherIdx,
int  itemIdx 
)

Definition at line 2406 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResult::item, OtherSolutionResult::numberOfItems, OtherSolutionResults::numberOfOtherSolutionResults, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

int OSResult::getNumberOfSolverOutputs (  ) 

Definition at line 2423 of file OSResult.cpp.

References OtherSolverOutput::numberOfSolverOutputs, optimization, and OptimizationResult::otherSolverOutput.

string OSResult::getSolverOutputName ( int  otherIdx  ) 

Definition at line 2428 of file OSResult.cpp.

References SolverOutput::name, OtherSolverOutput::numberOfSolverOutputs, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

string OSResult::getSolverOutputCategory ( int  otherIdx  ) 

Definition at line 2437 of file OSResult.cpp.

References SolverOutput::category, OtherSolverOutput::numberOfSolverOutputs, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

string OSResult::getSolverOutputDescription ( int  otherIdx  ) 

Definition at line 2446 of file OSResult.cpp.

References SolverOutput::description, OtherSolverOutput::numberOfSolverOutputs, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

int OSResult::getSolverOutputNumberOfItems ( int  otherIdx  ) 

Definition at line 2455 of file OSResult.cpp.

References SolverOutput::numberOfItems, OtherSolverOutput::numberOfSolverOutputs, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

string OSResult::getSolverOutputItem ( int  otherIdx,
int  itemIdx 
)

Definition at line 2464 of file OSResult.cpp.

References SolverOutput::item, SolverOutput::numberOfItems, OtherSolverOutput::numberOfSolverOutputs, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

bool OSResult::setGeneralStatus ( GeneralStatus status  ) 

Set the general status.

Parameters:
status holds the general status.
Returns:
whether the general status is set successfully.

Definition at line 2478 of file OSResult.cpp.

References general, and GeneralResult::generalStatus.

bool OSResult::setGeneralStatusType ( std::string  type  ) 

Set the general status type, which can be: success, error, warning.

Parameters:
type holds the general status type
Returns:
whether the general status type is set successfully or not.

Referenced by LindoSolver::buildSolverInstance(), KnitroSolver::buildSolverInstance(), CouenneSolver::buildSolverInstance(), CoinSolver::buildSolverInstance(), BonminSolver::buildSolverInstance(), IpoptProblem::finalize_solution(), LindoSolver::generateLindoModel(), CoinSolver::getCoinSolverType(), getJobID(), kill(), knock(), main(), LindoSolver::optimize(), LindoSolver::processConstraints(), LindoSolver::processNonlinearExpressions(), LindoSolver::processQuadraticTerms(), LindoSolver::processVariables(), retrieve(), send(), CoinSolver::setCoinPackedMatrix(), LindoSolver::setSolverOptions(), CouenneSolver::setSolverOptions(), BonminSolver::setSolverOptions(), solve(), LindoSolver::solve(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setNumberOfGeneralSubstatuses ( int  num  ) 

Set the number of substatus elements.

Parameters:
num holds the number of substatuses (a nonegative integer)
Returns:
whether the number of substatuses is set successfully or not.

Definition at line 2497 of file OSResult.cpp.

References general, GeneralResult::generalStatus, GeneralStatus::numberOfSubstatuses, and GeneralStatus::substatus.

bool OSResult::setGeneralStatusDescription ( std::string  description  ) 

Set the general status description.

Parameters:
description holds the general status description.
Returns:
whether the general status description is set successfully or not.

bool OSResult::setGeneralSubstatusName ( int  idx,
std::string  name 
)

Set the general substatus name.

Parameters:
name holds the general substatus name
idx holds the index of the substatus in the array
Returns:
whether the general substatus name is set successfully or not.

bool OSResult::setGeneralSubstatusDescription ( int  idx,
std::string  description 
)

Set the general substatus description.

Parameters:
description holds the general substatus description.
idx holds the index of the substatus in the array
Returns:
whether the general status description is set successfully or not.

bool OSResult::setGeneralMessage ( std::string  message  ) 

Set the general message.

Parameters:
message holds the general message.
Returns:
whether process message is set successfully.

Referenced by LindoSolver::buildSolverInstance(), KnitroSolver::buildSolverInstance(), CouenneSolver::buildSolverInstance(), CoinSolver::buildSolverInstance(), BonminSolver::buildSolverInstance(), IpoptProblem::finalize_solution(), LindoSolver::generateLindoModel(), CoinSolver::getCoinSolverType(), getJobID(), kill(), knock(), main(), LindoSolver::optimize(), LindoSolver::processConstraints(), LindoSolver::processNonlinearExpressions(), LindoSolver::processQuadraticTerms(), LindoSolver::processVariables(), retrieve(), send(), CoinSolver::setCoinPackedMatrix(), LindoSolver::setSolverOptions(), CouenneSolver::setSolverOptions(), BonminSolver::setSolverOptions(), solve(), LindoSolver::solve(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setServiceName ( std::string  serviceName  ) 

Set service name.

Parameters:
serviceName holds the name of the service.
Returns:
whether the service name is set successfully.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setServiceURI ( std::string  serviceURI  ) 

Set service uri.

Parameters:
serviceURI holds the uri of the service.
Returns:
whether the service uri is set successfully.

bool OSResult::setInstanceName ( std::string  instanceName  ) 

Set instance name.

Parameters:
instanceName holds the name of the instance.
Returns:
whether the instance name is set successfully.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setJobID ( std::string  jobID  ) 

Set job id.

Parameters:
jobID holds the job id.
Returns:
whether the job id is set successfully.

bool OSResult::setSolverInvoked ( std::string  solverInvoked  ) 

Set solver invoked.

Parameters:
solverInvoked holds the solver invoked.
Returns:
whether the solver invoked is set successfully.

Referenced by IpoptProblem::finalize_solution(), LindoSolver::optimize(), CoinSolver::solve(), CouenneSolver::writeResult(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setTimeStamp ( std::string  timeStamp  ) 

Set time stamp.

Parameters:
time holds the time stamp.
Returns:
whether the time stamp is set successfully.

bool OSResult::setNumberOfOtherGeneralResults ( int  num  ) 

Set number of other general results.

Parameters:
num holds the number of other general results.
Returns:
whether the number was set successfully.

Definition at line 2559 of file OSResult.cpp.

References general, OtherResults::numberOfOtherResults, OtherResults::other, and GeneralResult::otherResults.

bool OSResult::setOtherGeneralResultName ( int  idx,
std::string  name 
)

Set the general otherResult name.

Parameters:
name holds the general otherResult name
idx holds the index of the otherResult in the array
Returns:
whether the general otherResult name is set successfully or not.

bool OSResult::setOtherGeneralResultValue ( int  idx,
std::string  value 
)

Set the general otherResult value.

Parameters:
name holds the general otherResult value
idx holds the index of the otherResult in the array
Returns:
whether the general otherResult value is set successfully or not.

bool OSResult::setOtherGeneralResultDescription ( int  idx,
std::string  description 
)

Set the general otherResult description.

Parameters:
name holds the general otherResult description
idx holds the index of the otherResult in the array
Returns:
whether the general otherResult description is set successfully or not.

bool OSResult::setSystemInformation ( std::string  systemInformation  ) 

Set the system information.

Parameters:
systemInformation holds the system information
Returns:
whether the system information was set successfully or not.

bool OSResult::setAvailableDiskSpaceUnit ( std::string  unit  ) 

Set the unit in which available disk space is measured.

Parameters:
unit holds unit (byte, kilobyte, megabtye, gigabyte, terabyte, petabyte)
Returns:
whether the system information was set successfully or not.

Definition at line 2602 of file OSResult.cpp.

References SystemResult::availableDiskSpace, system, DiskSpace::unit, and verifyStorageUnit().

bool OSResult::setAvailableDiskSpaceDescription ( std::string  description  ) 

Set the description of available disk space.

Parameters:
description holds further information about available disk space
Returns:
whether the system information was set successfully or not.

Definition at line 2611 of file OSResult.cpp.

References SystemResult::availableDiskSpace, DiskSpace::description, and system.

bool OSResult::setAvailableDiskSpaceValue ( double  value  ) 

Set the amount of available disk space.

Parameters:
value holds the number of disk space units
Returns:
whether the system information was set successfully or not.

Definition at line 2617 of file OSResult.cpp.

References SystemResult::availableDiskSpace, system, and DiskSpace::value.

bool OSResult::setAvailableMemoryUnit ( std::string  unit  ) 

Set the unit in which available memory is measured.

Parameters:
unit holds unit (byte, kilobyte, megabtye, gigabyte, terabyte)
Returns:
whether the system information was set successfully or not.

Definition at line 2623 of file OSResult.cpp.

References SystemResult::availableMemory, system, MemorySize::unit, and verifyStorageUnit().

bool OSResult::setAvailableMemoryDescription ( std::string  description  ) 

Set the description of available memory.

Parameters:
description holds further information about available memory
Returns:
whether the system information was set successfully or not.

Definition at line 2632 of file OSResult.cpp.

References SystemResult::availableMemory, MemorySize::description, and system.

bool OSResult::setAvailableMemoryValue ( double  value  ) 

Set the amount of available memory.

Parameters:
value holds the number of memory units
Returns:
whether the system information was set successfully or not.

Definition at line 2638 of file OSResult.cpp.

References SystemResult::availableMemory, system, and MemorySize::value.

bool OSResult::setAvailableCPUSpeedUnit ( std::string  unit  ) 

Set the unit in which available CPU speed is measured.

Parameters:
unit holds unit
Returns:
whether the system information was set successfully or not.

Definition at line 2644 of file OSResult.cpp.

References SystemResult::availableCPUSpeed, system, CPUSpeed::unit, and verifyCPUSpeedUnit().

bool OSResult::setAvailableCPUSpeedDescription ( std::string  description  ) 

Set the description of available CPU speed.

Parameters:
description holds further information about the CPU speed
Returns:
whether the system information was set successfully or not.

Definition at line 2653 of file OSResult.cpp.

References SystemResult::availableCPUSpeed, CPUSpeed::description, and system.

bool OSResult::setAvailableCPUSpeedValue ( double  value  ) 

Set the available CPU speed.

Parameters:
value holds the available CPU speed
Returns:
whether the system information was set successfully or not.

Definition at line 2659 of file OSResult.cpp.

References SystemResult::availableCPUSpeed, system, and CPUSpeed::value.

bool OSResult::setAvailableCPUNumberDescription ( std::string  description  ) 

Set the description of available number of CPUs.

Parameters:
description is used to impart further info about the CPUs
Returns:
whether the system information was set successfully or not.

Definition at line 2665 of file OSResult.cpp.

References SystemResult::availableCPUNumber, CPUNumber::description, and system.

bool OSResult::setAvailableCPUNumberValue ( int  value  ) 

Set the available number of CPUs.

Parameters:
value holds the available number of CPUs
Returns:
whether the system information was set successfully or not.

Definition at line 2671 of file OSResult.cpp.

References SystemResult::availableCPUNumber, system, and CPUNumber::value.

bool OSResult::setNumberOfOtherSystemResults ( int  num  ) 

Set number of other system results.

Parameters:
num holds the number of other system results.
Returns:
whether the number was set successfully.

Definition at line 2677 of file OSResult.cpp.

References OtherResults::numberOfOtherResults, OtherResults::other, SystemResult::otherResults, and system.

bool OSResult::setOtherSystemResultName ( int  idx,
std::string  name 
)

Set the system otherResult name.

Parameters:
name holds the system otherResult name
idx holds the index of the otherResult in the array
Returns:
whether the system otherResult name is set successfully or not.

bool OSResult::setOtherSystemResultValue ( int  idx,
std::string  value 
)

Set the system otherResult value.

Parameters:
name holds the system otherResult value
idx holds the index of the otherResult in the array
Returns:
whether the system otherResult value is set successfully or not.

bool OSResult::setOtherSystemResultDescription ( int  idx,
std::string  description 
)

Set the system otherResult description.

Parameters:
name holds the system otherResult description
idx holds the index of the otherResult in the array
Returns:
whether the system otherResult description is set successfully or not.

bool OSResult::setCurrentState ( std::string  currentState  ) 

Set the current state of the service.

Parameters:
currentState holds the current state
Returns:
whether the service information was set successfully or not.

Definition at line 2715 of file OSResult.cpp.

References ServiceResult::currentState, service, and verifySystemCurrentState().

bool OSResult::setCurrentJobCount ( int  jobCount  ) 

Set the current job count.

Parameters:
jobCount holds the current job count
Returns:
whether the service information was set successfully or not.

Definition at line 2721 of file OSResult.cpp.

References ServiceResult::currentJobCount, and service.

bool OSResult::setTotalJobsSoFar ( int  number  ) 

Set the total number of jobs so far.

Parameters:
number holds the total number of jobs
Returns:
whether the service information was set successfully or not.

Definition at line 2726 of file OSResult.cpp.

References service, and ServiceResult::totalJobsSoFar.

bool OSResult::setTimeServiceStarted ( std::string  startTime  ) 

Set the time the service was started.

Parameters:
startTime holds the starting time
Returns:
whether the service information was set successfully or not.

Definition at line 2731 of file OSResult.cpp.

References service, and ServiceResult::timeServiceStarted.

bool OSResult::setServiceUtilization ( double  value  ) 

Set the service utilitzation.

Parameters:
value holds the service utilitzation
Returns:
whether the service information was set successfully or not.

Definition at line 2736 of file OSResult.cpp.

References service, and ServiceResult::serviceUtilization.

bool OSResult::setNumberOfOtherServiceResults ( int  num  ) 

Set number of other service results.

Parameters:
num holds the number of other service results.
Returns:
whether the number was set successfully.

Definition at line 2741 of file OSResult.cpp.

References OtherResults::numberOfOtherResults, OtherResults::other, ServiceResult::otherResults, and service.

bool OSResult::setOtherServiceResultName ( int  idx,
std::string  name 
)

Set the service otherResult name.

Parameters:
name holds the service otherResult name
idx holds the index of the otherResult in the array
Returns:
whether the service otherResult name is set successfully or not.

bool OSResult::setOtherServiceResultValue ( int  idx,
std::string  value 
)

Set the service otherResult value.

Parameters:
name holds the service otherResult value
idx holds the index of the otherResult in the array
Returns:
whether the service otherResult value is set successfully or not.

bool OSResult::setOtherServiceResultDescription ( int  idx,
std::string  description 
)

Set the service otherResult description.

Parameters:
name holds the service otherResult description
idx holds the index of the otherResult in the array
Returns:
whether the service otherResult description is set successfully or not.

bool OSResult::setJobStatus ( std::string  status  ) 

Set the job status.

Parameters:
status holds the job status
Returns:
whether the job status was set successfully or not.

Definition at line 2778 of file OSResult.cpp.

References job, JobResult::status, and verifyJobStatus().

bool OSResult::setJobSubmitTime ( std::string  submitTime  ) 

Set the time when the job was submitted.

Parameters:
submitTime holds the time when the job was submitted
Returns:
whether the information was set successfully or not.

Definition at line 2785 of file OSResult.cpp.

References job, and JobResult::submitTime.

bool OSResult::setScheduledStartTime ( std::string  scheduledStartTime  ) 

Set the job's scheduled start time.

Parameters:
scheduledStartTime holds the scheduled start time
Returns:
whether the information was set successfully or not.

Definition at line 2790 of file OSResult.cpp.

References job, and JobResult::scheduledStartTime.

bool OSResult::setActualStartTime ( std::string  actualStartTime  ) 

Set the job's actual start time.

Parameters:
actualStartTime holds the actual start time
Returns:
whether the information was set successfully or not.

Definition at line 2795 of file OSResult.cpp.

References JobResult::actualStartTime, and job.

bool OSResult::setJobEndTime ( std::string  endTime  ) 

Set the time when the job finished.

Parameters:
endTime holds the time when the job finished
Returns:
whether the information was set successfully or not.

Definition at line 2800 of file OSResult.cpp.

References JobResult::endTime, and job.

bool OSResult::setTime ( double  time  ) 

Set time.

Parameters:
time holds the time.
Returns:
whether the time is set successfully.

Definition at line 2805 of file OSResult.cpp.

References addTimingInformation().

Referenced by LindoSolver::solve(), and CoinSolver::writeResult().

bool OSResult::addTimingInformation ( std::string  type,
std::string  category,
std::string  unit,
std::string  description,
double  value 
)

Add timing information.

Parameters:
type holds the timer type (cpuTime/elapsedTime/other).
category holds the timer category (total/input/preprocessing, etc.)
unit holds the timer unit (tick/milliscond/second/minute/etc.)
description holds further information about the timer.
value holds the time measurement.
Returns:
whether the time is set successfully.

Definition at line 2810 of file OSResult.cpp.

References Time::category, Time::description, job, TimingInformation::numberOfTimes, TimingInformation::time, JobResult::timingInformation, Time::type, Time::unit, Time::value, and verifyTimeUnit().

Referenced by setTime().

bool OSResult::setTimingInformation ( int  idx,
std::string  type,
std::string  category,
std::string  unit,
std::string  description,
double  value 
)

Set timing information.

Parameters:
idx holds the index within the time array of the item to be set
type holds the timer type (cpuTime/elapsedTime/other).
category holds the timer category (total/input/preprocessing, etc.)
unit holds the timer unit (tick/milliscond/second/minute/etc.)
description holds further information about the timer.
value holds the time measurement.
Returns:
whether the time is set successfully.

Definition at line 2841 of file OSResult.cpp.

References Time::category, Time::description, job, TimingInformation::numberOfTimes, TimingInformation::time, JobResult::timingInformation, Time::type, Time::unit, Time::value, verifyTimeCategory(), verifyTimeType(), and verifyTimeUnit().

bool OSResult::setNumberOfTimes ( int  numberOfTimes  ) 

Set the number of time measurements and initial the time array.

Parameters:
numberOfTimes holds the number of measurements
Returns:
whether the function completed successfully or not.

Definition at line 2863 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, TimingInformation::time, and JobResult::timingInformation.

bool OSResult::setTimeNumber ( int  timeNumber  ) 

Set the number of time measurements.

Parameters:
timeNumber holds the number of measurements
Returns:
whether the time number is set successfully or not.

Definition at line 2877 of file OSResult.cpp.

References job, TimingInformation::numberOfTimes, and JobResult::timingInformation.

bool OSResult::setUsedDiskSpaceUnit ( std::string  unit  ) 

Set the unit in which used disk space is measured.

Parameters:
unit holds unit (byte, kilobyte, megabtye, gigabyte, terabyte, petabyte)
Returns:
whether the information was set successfully or not.

Definition at line 2886 of file OSResult.cpp.

References job, DiskSpace::unit, JobResult::usedDiskSpace, and verifyStorageUnit().

bool OSResult::setUsedDiskSpaceDescription ( std::string  description  ) 

Set the description of used disk space.

Parameters:
description holds further information about used disk space
Returns:
whether the information was set successfully or not.

Definition at line 2895 of file OSResult.cpp.

References DiskSpace::description, job, and JobResult::usedDiskSpace.

bool OSResult::setUsedDiskSpaceValue ( double  value  ) 

Set the amount of used disk space.

Parameters:
value holds the number of disk space units
Returns:
whether the information was set successfully or not.

Definition at line 2903 of file OSResult.cpp.

References job, JobResult::usedDiskSpace, and DiskSpace::value.

bool OSResult::setUsedMemoryUnit ( std::string  unit  ) 

Set the unit in which used memory is measured.

Parameters:
unit holds unit (byte, kilobyte, megabtye, gigabyte, terabyte)
Returns:
whether the information was set successfully or not.

Definition at line 2911 of file OSResult.cpp.

References job, MemorySize::unit, JobResult::usedMemory, and verifyStorageUnit().

bool OSResult::setUsedMemoryDescription ( std::string  description  ) 

Set the description of used memory.

Parameters:
description holds further information about used memory
Returns:
whether the information was set successfully or not.

Definition at line 2920 of file OSResult.cpp.

References MemorySize::description, job, and JobResult::usedMemory.

bool OSResult::setUsedMemoryValue ( double  value  ) 

Set the amount of used memory.

Parameters:
value holds the number of memory units
Returns:
whether the information was set successfully or not.

Definition at line 2928 of file OSResult.cpp.

References job, JobResult::usedMemory, and MemorySize::value.

bool OSResult::setUsedCPUSpeedUnit ( std::string  unit  ) 

Set the unit in which used CPU speed is measured.

Parameters:
unit holds unit
Returns:
whether the information was set successfully or not.

Definition at line 2936 of file OSResult.cpp.

References job, CPUSpeed::unit, JobResult::usedCPUSpeed, and verifyCPUSpeedUnit().

bool OSResult::setUsedCPUSpeedDescription ( std::string  description  ) 

Set the description of used CPU speed.

Parameters:
description holds further information about the CPU speed
Returns:
whether the information was set successfully or not.

Definition at line 2945 of file OSResult.cpp.

References CPUSpeed::description, job, and JobResult::usedCPUSpeed.

bool OSResult::setUsedCPUSpeedValue ( double  value  ) 

Set the used CPU speed.

Parameters:
value holds the used CPU speed
Returns:
whether the information was set successfully or not.

Definition at line 2953 of file OSResult.cpp.

References job, JobResult::usedCPUSpeed, and CPUSpeed::value.

bool OSResult::setUsedCPUNumberDescription ( std::string  description  ) 

Set the description of used number of CPUs.

Parameters:
description is used to impart further info about the CPUs
Returns:
whether the system information was set successfully or not.

Definition at line 2961 of file OSResult.cpp.

References CPUNumber::description, job, and JobResult::usedCPUNumber.

bool OSResult::setUsedCPUNumberValue ( int  value  ) 

Set the used number of CPUs.

Parameters:
value holds the used number of CPUs
Returns:
whether the information was set successfully or not.

Definition at line 2969 of file OSResult.cpp.

References job, JobResult::usedCPUNumber, and CPUNumber::value.

bool OSResult::setNumberOfOtherJobResults ( int  num  ) 

Set number of other job results.

Parameters:
num holds the number of other job results.
Returns:
whether the number was set successfully.

Definition at line 2977 of file OSResult.cpp.

References job, OtherResults::numberOfOtherResults, OtherResults::other, and JobResult::otherResults.

bool OSResult::setOtherJobResultName ( int  idx,
std::string  name 
)

Set the job otherResult name.

Parameters:
name holds the job otherResult name
idx holds the index of the otherResult in the array
Returns:
whether the job otherResult name is set successfully or not.

bool OSResult::setOtherJobResultValue ( int  idx,
std::string  value 
)

Set the job otherResult value.

Parameters:
name holds the job otherResult value
idx holds the index of the otherResult in the array
Returns:
whether the job otherResult value is set successfully or not.

bool OSResult::setOtherJobResultDescription ( int  idx,
std::string  description 
)

Set the job otherResult description.

Parameters:
name holds the job otherResult description
idx holds the index of the otherResult in the array
Returns:
whether the job otherResult description is set successfully or not.

bool OSResult::setVariableNumber ( int  variableNumber  ) 

Set the variable number.

Parameters:
variableNumber holds the number of variables
Returns:
whether the variable number is set successfully or not.

Definition at line 3023 of file OSResult.cpp.

References OptimizationResult::numberOfVariables, and optimization.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setObjectiveNumber ( int  objectiveNumber  ) 

Set the objective number.

Parameters:
objectiveNumber holds the number of objectives
Returns:
whether the objective number is set successfully or not.

Definition at line 3031 of file OSResult.cpp.

References OptimizationResult::numberOfObjectives, and optimization.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setConstraintNumber ( int  constraintNumber  ) 

Set the constraint number.

Parameters:
constraintNumber holds the number of constraints
Returns:
whether the constraint number is set successfully or not.

Definition at line 3039 of file OSResult.cpp.

References OptimizationResult::numberOfConstraints, and optimization.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setSolutionNumber ( int  number  ) 

set the number of solutions.

This method must be called before setting other optimization solution related results. Before this method is called, the setVariableNumber(int), setObjectiveNumber(int), setConstraintNumber(int) methods have to be called first.

Parameters:
number holds the number of solutions to set.
Returns:
whether the solution number is set successfully.
See also:
setVariableNumber(int)

setObjectiveNumber(int)

setConstraintNumber(int)

Definition at line 3047 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, optimization, and OptimizationResult::solution.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), CoinSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setSolutionStatus ( int  solIdx,
std::string  type,
std::string  description 
)

Set the [i]th optimization solution status, where i equals the given solution index.

The solution status includes the status type, optional descriptions and possibly substatuses. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the solution status.
status holds the optimization solution status to set.
Returns:
whether the optimization solution status is set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OptimizationSolutionStatus

setSolutionNumber(int)

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::solve(), BonminSolver::solve(), CouenneSolver::writeResult(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setSolutionStatusType ( int  solIdx,
std::string  type 
)

Set the [i]th optimization solution status type.

Parameters:
solIdx holds the solution index whose status to set.
type holds the solution status type
Returns:
whether the solution status type is set successfully or not.

Definition at line 3077 of file OSResult.cpp.

References getSolutionNumber(), optimization, OptimizationResult::solution, OptimizationSolution::status, OptimizationSolutionStatus::type, and verifySolutionStatus().

bool OSResult::setNumberOfSolutionSubstatuses ( int  solIdx,
int  num 
)

Set the [i]th optimization solution's number of substatus elements.

Parameters:
solIdx holds the solution index whose status to set.
num holds the number of substatuses (a nonegative integer)
Returns:
whether the number of substatuses is set successfully or not.

Definition at line 3110 of file OSResult.cpp.

References getSolutionNumber(), OptimizationSolutionStatus::numberOfSubstatuses, optimization, OptimizationResult::solution, OptimizationSolution::status, and OptimizationSolutionStatus::substatus.

bool OSResult::setSolutionStatusDescription ( int  solIdx,
std::string  description 
)

Set the [i]th optimization solution status description.

Parameters:
solIdx holds the solution index whose status to set.
description holds the solution status description.
Returns:
whether the solution status description is set successfully or not.

Definition at line 3094 of file OSResult.cpp.

References OptimizationSolutionStatus::description, getSolutionNumber(), optimization, OptimizationResult::solution, and OptimizationSolution::status.

bool OSResult::setSolutionSubstatusType ( int  solIdx,
int  substatusIdx,
std::string  type 
)

Set the solution substatus type.

Parameters:
solIdx holds the solution index whose status to set.
substatusIdx holds the index of the substatus in the array
type holds the general substatus type
Returns:
whether the general substatus type is set successfully or not.

Definition at line 3134 of file OSResult.cpp.

References getSolutionNumber(), OptimizationSolutionStatus::numberOfSubstatuses, optimization, OptimizationResult::solution, OptimizationSolution::status, OptimizationSolutionStatus::substatus, OptimizationSolutionSubstatus::type, and verifySolutionSubstatusType().

bool OSResult::setSolutionSubstatusDescription ( int  solIdx,
int  substatusIdx,
std::string  description 
)

Set the solution substatus description.

Parameters:
solIdx holds the solution index whose status to set.
substatusIdx holds the index of the substatus in the array
description holds the general substatus description.
Returns:
whether the solution status description is set successfully or not.

Definition at line 3150 of file OSResult.cpp.

References OptimizationSolutionSubstatus::description, getSolutionNumber(), OptimizationSolutionStatus::numberOfSubstatuses, optimization, OptimizationResult::solution, OptimizationSolution::status, and OptimizationSolutionStatus::substatus.

bool OSResult::setSolutionTargetObjectiveIdx ( int  solIdx,
int  objectiveIdx 
)

Set the [i]th optimization solution's objective index, where i equals the given solution index.

The first objective's index should be -1, the second -2, and so on. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective index.
objectiveIdx holds the objective index to set. All the objective indexes are negative starting from -1 downward.
Returns:
whether the optimization objective index is set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3163 of file OSResult.cpp.

References getSolutionNumber(), optimization, OptimizationResult::solution, and OptimizationSolution::targetObjectiveIdx.

bool OSResult::setSolutionWeightedObjectives ( int  solIdx,
bool  weightedObjectives 
)

Record whether the [i]th optimization solution uses weighted objectives, where i equals the given solution index.

Parameters:
solIdx holds the solution index to set the objective index.
weightedObjectives holds the value "true" or "false".
Returns:
whether the information was set successfully or not.

Definition at line 3178 of file OSResult.cpp.

References getSolutionNumber(), optimization, OptimizationResult::solution, and OptimizationSolution::weightedObjectives.

bool OSResult::setSolutionMessage ( int  solIdx,
std::string  msg 
)

Set the [i]th optimization solution's message, where i equals the given solution index.

The first objective's index should be -1, the second -2, and so on. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective index.
msg holds the solution message to set.
Returns:
whether the optimization objective index is set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3191 of file OSResult.cpp.

References getSolutionNumber(), OptimizationSolution::message, optimization, and OptimizationResult::solution.

Referenced by IpoptProblem::finalize_solution(), BonminSolver::solve(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setNumberOfPrimalVariableValues ( int  solIdx,
int  n 
)

Set the [i]th optimization solution's number of primal variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
n holds the number of elements in the array x
Returns:
whether primal variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3205 of file OSResult.cpp.

References getSolutionNumber(), getVariableNumber(), VariableValues::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

bool OSResult::setPrimalVariableValuesSparse ( int  solIdx,
std::vector< IndexValuePair * >  x 
)

Set the [i]th optimization solution's primal variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
x holds a vector of type IndexValuePair; the idx component holds the index of the variable; the value component holds its value. The vector could be null if all variables are 0.
Returns:
whether primal variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3230 of file OSResult.cpp.

References getSolutionNumber(), VarValue::idx, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VarValue::value, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

bool OSResult::setPrimalVariableValuesDense ( int  solIdx,
double *  x 
)

Set the [i]th optimization solution's primal variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
x holds a double dense array of variable values to set; it could be null if all variables are 0.
Returns:
whether primal variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3262 of file OSResult.cpp.

References getSolutionNumber(), getVariableNumber(), VarValue::idx, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VarValue::value, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::writeResult(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setNumberOfVarValues ( int  solIdx,
int  numberOfVar 
)

Set the number of primal variables to be given a value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
numberOfVar holds the number of primal variables that are to be set
Returns:
whether the information was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3294 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

bool OSResult::setVarValue ( int  solIdx,
int  number,
int  idx,
double  val 
)

Set a primal variable value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
number holds the location within the sparse array var that is to be used
idx holds the index of the primal variable that is to be set
val holds the variable value to set.
Returns:
whether primal variable value was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3319 of file OSResult.cpp.

References VarValue::idx, OptimizationResult::numberOfSolutions, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VarValue::value, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

bool OSResult::setNumberOfVarValuesString ( int  solIdx,
int  numberOfVar 
)

Set the number of string-valued primal variables to be given a value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
numberOfVar holds the number of primal variables that are to be set
Returns:
whether the information was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3356 of file OSResult.cpp.

References OptimizationResult::numberOfSolutions, VariableValuesString::numberOfVar, optimization, OptimizationResult::solution, VariableSolution::valuesString, VariableValuesString::var, and OptimizationSolution::variables.

bool OSResult::setVarValueString ( int  solIdx,
int  number,
int  idx,
std::string  str 
)

Set a string-valued primal variable value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
number holds the location within the sparse array var that is to be used
idx holds the index of the primal variable that is to be set
str holds the variable value to set.
Returns:
whether primal variable value was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3385 of file OSResult.cpp.

References VarValueString::idx, OptimizationResult::numberOfSolutions, VariableValuesString::numberOfVar, optimization, OptimizationResult::solution, VarValueString::value, VariableSolution::valuesString, VariableValuesString::var, and OptimizationSolution::variables.

bool OSResult::setBasisStatus ( int  solIdx,
char  object,
int  status,
int *  i,
int  ni 
)

Set the basis status of a number of variables/constraints/objectives.

Parameters:
solIdx holds the index of the solution to which the basis values belong.
object holds the type of basis object to be used ("variables", "objectives", "constraints" are legal values)
status holds the status which is to be used (leagal values are "basic", "atLower", "atUpper", "isFree", "superbasic", "unknown")
i holds the integer array whose values are to be transferred.
ni holds the number of elements of i
Returns:
whether primal variable value was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3421 of file OSResult.cpp.

References ConstraintSolution::basisStatus, ObjectiveSolution::basisStatus, VariableSolution::basisStatus, OptimizationSolution::constraints, OptimizationResult::numberOfSolutions, OptimizationSolution::objectives, optimization, BasisStatus::setBasisStatusIntVector(), OptimizationResult::solution, and OptimizationSolution::variables.

bool OSResult::setNumberOfOtherVariableResults ( int  solIdx,
int  numberOfOtherVariableResults 
)

Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first. This method then allocates the memory for the new OtherVariableResult objects

Parameters:
solIdx is the solution index
numberOfOtherVariableResult holds the number of OtherVariableResult objects Each other variable result contains the name (required), an optional description (std::string) and an optional value (std::string). Each other variable result can also optionally contain an array OtherVarResult for each variable. The OtherVarResult contains a variable idx (required) and an optional std::string value.
Returns:
whether the other variable results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3465 of file OSResult.cpp.

References getSolutionNumber(), VariableSolution::numberOfOtherVariableResults, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), and CoinSolver::writeResult().

bool OSResult::setAnOtherVariableResultSparse ( int  solIdx,
int  otherIdx,
std::string  name,
std::string  value,
std::string  description,
int *  idx,
std::string *  s,
int  n 
)

Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the new OtherVariableResult object
name holds the name of the other element
value holds the value of the other element
idx holds a pointer to the indexes of the var element
s holds a pointer to the array of values of the var element
n holds the number of elements of the array
Returns:
whether the other variable results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Referenced by IpoptProblem::finalize_solution(), and CoinSolver::writeResult().

bool OSResult::setAnOtherVariableResultDense ( int  solIdx,
int  otherIdx,
std::string  name,
std::string  value,
std::string  description,
std::string *  s 
)

Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the new OtherVariableResult object
name holds the name of the other element
value holds the value of the other element
s holds a pointer to the array of values of the var element
Returns:
whether the other variable results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Referenced by main(), and LindoSolver::optimize().

bool OSResult::setOtherVariableResultNumberOfVar ( int  solIdx,
int  otherIdx,
int  numberOfVar 
)

Set the number of children of another (non-standard/solver specific) variable-related result, for the [i]th solution.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
numberOfVar holds the number of children
Returns:
whether the other variable result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3546 of file OSResult.cpp.

References getSolutionNumber(), OtherVariableResult::numberOfVar, optimization, VariableSolution::other, OptimizationResult::solution, OtherVariableResult::var, and OptimizationSolution::variables.

bool OSResult::setOtherVariableResultNumberOfEnumerations ( int  solIdx,
int  otherIdx,
int  numberOfVar 
)

Set the number of <enumeration> children of another (non-standard/solver specific) variable-related result, for the [i]th solution.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
numberOfVar holds the number of children
Returns:
whether the other variable result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3567 of file OSResult.cpp.

References OtherVariableResult::enumeration, getSolutionNumber(), OtherVariableResult::numberOfEnumerations, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

bool OSResult::setOtherVariableResultName ( int  solIdx,
int  otherIdx,
std::string  name 
)

Set the name of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
name holds the name of the other element
Returns:
whether the other variable result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3587 of file OSResult.cpp.

References getSolutionNumber(), getVariableNumber(), OtherVariableResult::name, optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

bool OSResult::setOtherVariableResultValue ( int  solIdx,
int  otherIdx,
std::string  value 
)

Set the value of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
value holds the name of the other element
Returns:
whether the other variable result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3605 of file OSResult.cpp.

References getSolutionNumber(), getVariableNumber(), optimization, VariableSolution::other, OptimizationResult::solution, OtherVariableResult::value, and OptimizationSolution::variables.

bool OSResult::setOtherVariableResultDescription ( int  solIdx,
int  otherIdx,
std::string  description 
)

Set the description of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
description holds the name of the other element
Returns:
whether the other variable result's description was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3623 of file OSResult.cpp.

References OtherVariableResult::description, getSolutionNumber(), getVariableNumber(), optimization, VariableSolution::other, OptimizationResult::solution, and OptimizationSolution::variables.

bool OSResult::setOtherVariableResultVarIdx ( int  solIdx,
int  otherIdx,
int  varIdx,
int  idx 
)

Set the index of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
varIdx holds the index of the location to which the information is stored
idx holds the index of the variable to which the information belongs
Returns:
whether the other variable result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3641 of file OSResult.cpp.

References getSolutionNumber(), OtherVarResult::idx, optimization, VariableSolution::other, OptimizationResult::solution, OtherVariableResult::var, and OptimizationSolution::variables.

bool OSResult::setOtherVariableResultVar ( int  solIdx,
int  otherIdx,
int  varIdx,
std::string  value 
)

Set the value of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
varIdx holds the index of the location to which the information is stored
value holds the value of the variable to which the information belongs
Returns:
whether the other variable result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3655 of file OSResult.cpp.

References getSolutionNumber(), optimization, VariableSolution::other, OptimizationResult::solution, OtherVarResult::value, OtherVariableResult::var, and OptimizationSolution::variables.

bool OSResult::setOtherOptionEnumeration ( int  solIdx,
int  otherIdx,
char  object,
int  enumIdx,
std::string  value,
std::string  description,
int *  i,
int  ni 
)

Set the value and corresponding indices of another (non-standard/solver specific) variable-related result, for the [k]th solution, where k equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherVariableResult object
object holds the object to which this enumeration pertains --- variables, objectives and constraints can be handled identically
enumIdx holds the index of the OtherOptionEnumeration object
value holds the value of this result
description holds a description of this result
i holds the indices of the variables that take on this value
ni holds the dimension of the index vector i
Returns:
whether the other variable result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

Definition at line 3669 of file OSResult.cpp.

References OptimizationSolution::constraints, OtherConstraintResult::enumeration, OtherObjectiveResult::enumeration, OtherVariableResult::enumeration, OtherConstraintResult::numberOfEnumerations, OtherObjectiveResult::numberOfEnumerations, OtherVariableResult::numberOfEnumerations, OptimizationResult::numberOfSolutions, OptimizationSolution::objectives, optimization, ConstraintSolution::other, ObjectiveSolution::other, VariableSolution::other, OtherOptionEnumeration::setOtherOptionEnumeration(), OptimizationResult::solution, and OptimizationSolution::variables.

bool OSResult::setNumberOfOtherObjectiveResults ( int  solIdx,
int  numberOfOtherObjectiveResults 
)

Set the [i]th optimization solution's other (non-standard/solver specific) objective-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first. This method then allocates the memory for the new OtherObjectiveResult objects

Parameters:
solIdx is the solution index
numberOfOtherObjectiveResult holds the number of OtherObjectiveResult objects Each other objective result contains the name (required), an optional description (std::string) and an optional value (std::string). Each other objective result can also optionally contain an array OtherObjResult for each objective. The OtherObjResult contains an objective idx (required) and an optional std::string value.
Returns:
whether the other objective results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 3726 of file OSResult.cpp.

References getSolutionNumber(), ObjectiveSolution::numberOfOtherObjectiveResults, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

bool OSResult::setNumberOfObjValues ( int  solIdx,
int  numberOfObj 
)

Set the number of objectives to be given a value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective values.
numberOfObj holds the number of objectives that are to be set
Returns:
whether the information was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3750 of file OSResult.cpp.

References ObjectiveValues::numberOfObj, OptimizationResult::numberOfSolutions, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, and ObjectiveSolution::values.

bool OSResult::setNumberOfObjectiveValues ( int  solIdx,
int  n 
)

Set the [i]th optimization solution's number of objective values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
n holds the number of elements in the array x
Returns:
whether objctive values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3780 of file OSResult.cpp.

References getObjectiveNumber(), getSolutionNumber(), ObjectiveValues::numberOfObj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, and ObjectiveSolution::values.

bool OSResult::setObjectiveValuesSparse ( int  solIdx,
std::vector< IndexValuePair * >  x 
)

Set the [i]th optimization solution's objective values, where i equals the given solution index.

Usually one of the objective is what the solution was solved for (or based on). Its index should be indicated in the solution's objectiveIdx attribute. Based on this objective's solution, the rest of the objective values are (optionally) calculated. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective values.
x holds a vector of type IndexValuePair; the idx component holds the index of the objective; the value component holds its value. The vector could be null if all objectives are 0. Possibly only the objective that the solution is based on has the value, and the rest of the objective values all get a Double.NaN value, meaning that they are not calculated.
Returns:
whether objective values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3805 of file OSResult.cpp.

References getSolutionNumber(), ObjValue::idx, ObjectiveValues::numberOfObj, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, ObjValue::value, and ObjectiveSolution::values.

bool OSResult::setObjectiveValuesDense ( int  solIdx,
double *  objectiveValues 
)

Set the [i]th optimization solution's objective values, where i equals the given solution index.

Usually one of the objective is what the solution was solved for (or based on). Its index should be indicated in the solution's objectiveIdx attribute. Based on this objective's solution, the rest of the objective values are (optionally) calculated. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective values.
objectiveValues holds the double sparse array of objective values to set. Possibly only the objective that the solution is based on has the value, and the rest of the objective values all get a Double.NaN value, meaning that they are not calculated.
Returns:
whether objective values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3839 of file OSResult.cpp.

References getObjectiveNumber(), getSolutionNumber(), ObjValue::idx, ObjectiveValues::numberOfObj, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, ObjValue::value, and ObjectiveSolution::values.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), CouenneSolver::writeResult(), CoinSolver::writeResult(), and BonminSolver::writeResult().

bool OSResult::setObjValue ( int  solIdx,
int  number,
int  idx,
double  val 
)

Set an objective value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective values.
number holds the location within the sparse array obj that is to be used
idx holds the index of the objective that is to be set
val holds the objective value to set.
Returns:
whether primal variable value was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 3876 of file OSResult.cpp.

References ObjValue::idx, ObjectiveValues::numberOfObj, OptimizationResult::numberOfSolutions, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, ObjValue::value, and ObjectiveSolution::values.

bool OSResult::setOtherObjectiveResultNumberOfObj ( int  solIdx,
int  otherIdx,
int  numberOfObj 
)

Set the number of <obj> children of another (non-standard/solver specific) objective-related result, for the [i]th solution.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
numberOfObj holds the number of <obj> children
Returns:
whether the other objective result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 3912 of file OSResult.cpp.

References getSolutionNumber(), OtherObjectiveResult::numberOfObj, OtherObjectiveResult::obj, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherObjectiveResultNumberOfEnumerations ( int  solIdx,
int  otherIdx,
int  numberOfObj 
)

Set the number of <enumeration> children of another (non-standard/solver specific) objective-related result, for the [i]th solution.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
numberOfObj holds the number of <obj> children
Returns:
whether the other objective result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 3936 of file OSResult.cpp.

References OtherObjectiveResult::enumeration, getSolutionNumber(), OtherObjectiveResult::numberOfEnumerations, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherObjectiveResultName ( int  solIdx,
int  otherIdx,
std::string  name 
)

Set the name of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
name holds the name of the other element
Returns:
whether the other objective result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 3956 of file OSResult.cpp.

References getObjectiveNumber(), getSolutionNumber(), OtherObjectiveResult::name, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherObjectiveResultValue ( int  solIdx,
int  otherIdx,
std::string  value 
)

Set the value of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
value holds the name of the other element
Returns:
whether the other objective result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 3974 of file OSResult.cpp.

References getObjectiveNumber(), getSolutionNumber(), OptimizationSolution::objectives, optimization, ObjectiveSolution::other, OptimizationResult::solution, and OtherObjectiveResult::value.

bool OSResult::setOtherObjectiveResultDescription ( int  solIdx,
int  otherIdx,
std::string  description 
)

Set the description of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
description holds the name of the other element
Returns:
whether the other objective result's description was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 3992 of file OSResult.cpp.

References OtherObjectiveResult::description, getObjectiveNumber(), getSolutionNumber(), OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherObjectiveResultObjIdx ( int  solIdx,
int  otherIdx,
int  objIdx,
int  idx 
)

Set the index of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
objIdx holds the index of the location to which the information is stored
idx holds the index of the objective to which the information belongs
Returns:
whether the other variable result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 4010 of file OSResult.cpp.

References getSolutionNumber(), OtherObjResult::idx, OtherObjectiveResult::obj, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherObjectiveResultObj ( int  solIdx,
int  otherIdx,
int  objIdx,
std::string  value 
)

Set the value of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherObjectiveResult object
objIdx holds the index of the location to which the information is stored
value holds the value of the objective to which the information belongs
Returns:
whether the other objective result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherObjectiveResult

org.optimizationservices.oscommon.datastructure.osresult.OtherObjResult

setSolutionNumber(int)

Definition at line 4025 of file OSResult.cpp.

References getSolutionNumber(), OtherObjectiveResult::obj, OptimizationSolution::objectives, optimization, ObjectiveSolution::other, OptimizationResult::solution, and OtherObjResult::value.

bool OSResult::setNumberOfOtherConstraintResults ( int  solIdx,
int  numberOfOtherConstraintResults 
)

Set the [i]th optimization solution's other (non-standard/solver specific) constraint-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first. This method then allocates the memory for the new OtherConstraintResult objects

Parameters:
solIdx is the solution index
numberOfOtherConstraintResults holds the number of OtherConstraintResult objects Each other objective result contains the name (required), an optional description (std::string) and an optional value (std::string). Each other constraint result can also optionally contain an array OtherConResult for each constraint. The OtherConResult contains a constraint idx (required) and an optional std::string value.
Returns:
whether the other objective results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4039 of file OSResult.cpp.

References OptimizationSolution::constraints, getSolutionNumber(), ConstraintSolution::numberOfOtherConstraintResults, optimization, ConstraintSolution::other, and OptimizationResult::solution.

bool OSResult::setNumberOfDualValues ( int  solIdx,
int  numberOfCon 
)

Set the number of constraints to be given a value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
numberOfCon holds the number of constraint that are to be set
Returns:
whether the information was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 4063 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, DualVariableValues::numberOfCon, OptimizationResult::numberOfSolutions, optimization, and OptimizationResult::solution.

bool OSResult::setNumberOfDualVariableValues ( int  solIdx,
int  n 
)

Set the [i]th optimization solution's number of dual variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the dual variable values.
n holds the number of elements in the array x
Returns:
whether dual variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 4093 of file OSResult.cpp.

References OptimizationSolution::constraints, ConstraintSolution::dualValues, getConstraintNumber(), getSolutionNumber(), DualVariableValues::numberOfCon, optimization, and OptimizationResult::solution.

bool OSResult::setDualVariableValuesSparse ( int  solIdx,
std::vector< IndexValuePair * >  x 
)

Set the [i]th optimization solution's dual variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the dual variable values.
x holds a vector of type IndexValuePair; the idx component holds the index of the constraint; the value component holds its value. The vector could be null if all dual variables are 0.
Returns:
whether dual variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 4118 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVarValue::idx, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, and DualVarValue::value.

bool OSResult::setDualVariableValuesDense ( int  solIdx,
double *  y 
)

Set the [i]th optimization solution's dual variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the dual variable values.
y holds a double dense array of variable dual values; it could be NULL if all values are 0.
Returns:
whether dual variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 4154 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getConstraintNumber(), getSolutionNumber(), DualVarValue::idx, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, and DualVarValue::value.

Referenced by IpoptProblem::finalize_solution(), main(), LindoSolver::optimize(), KnitroSolver::solve(), and CoinSolver::writeResult().

bool OSResult::setConstraintValuesDense ( int  solIdx,
double *  constraintValues 
)

Set the [i]th optimization solution's constraint values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
constraintValues holds the a double dense array of constraint values to set; it could be null if all constraint values are 0.
Returns:
whether constraint values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 4190 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getConstraintNumber(), getSolutionNumber(), DualVarValue::idx, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, and DualVarValue::value.

bool OSResult::setDualValue ( int  solIdx,
int  number,
int  idx,
double  val 
)

Set a dual value.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
number holds the location within the sparse array con that is to be used
idx holds the index of the constraint that is to be set
val holds the constraint value to set.
Returns:
whether dual variable value was set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 4227 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, DualVarValue::idx, DualVariableValues::numberOfCon, OptimizationResult::numberOfSolutions, optimization, OptimizationResult::solution, and DualVarValue::value.

bool OSResult::setOtherConstraintResultNumberOfCon ( int  solIdx,
int  otherIdx,
int  numberOfCon 
)

Set the number of <con> children of another (non-standard/solver specific) constraint-related result, for the [i]th solution.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
numberOfCon holds the number of <con> children
Returns:
whether the other constraint result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4263 of file OSResult.cpp.

References OtherConstraintResult::con, OptimizationSolution::constraints, getSolutionNumber(), OtherConstraintResult::numberOfCon, optimization, ConstraintSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherConstraintResultNumberOfEnumerations ( int  solIdx,
int  otherIdx,
int  numberOfCon 
)

Set the number of <enumeration> children of another (non-standard/solver specific) constraint-related result, for the [i]th solution.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
numberOfCon holds the number of <con> children
Returns:
whether the other constraint result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4285 of file OSResult.cpp.

References OptimizationSolution::constraints, OtherConstraintResult::enumeration, getSolutionNumber(), OtherConstraintResult::numberOfEnumerations, optimization, ConstraintSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherConstraintResultName ( int  solIdx,
int  otherIdx,
std::string  name 
)

Set the name of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
name holds the name of the other element
Returns:
whether the other constraint result's name was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4305 of file OSResult.cpp.

References OptimizationSolution::constraints, getConstraintNumber(), getSolutionNumber(), OtherConstraintResult::name, optimization, ConstraintSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherConstraintResultValue ( int  solIdx,
int  otherIdx,
std::string  value 
)

Set the value of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
value holds the name of the other element
Returns:
whether the other constraint result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4323 of file OSResult.cpp.

References OptimizationSolution::constraints, getConstraintNumber(), getSolutionNumber(), optimization, ConstraintSolution::other, OptimizationResult::solution, and OtherConstraintResult::value.

bool OSResult::setOtherConstraintResultDescription ( int  solIdx,
int  otherIdx,
std::string  description 
)

Set the description of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
description holds the name of the other element
Returns:
whether the other constraint result's description was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4341 of file OSResult.cpp.

References OptimizationSolution::constraints, OtherConstraintResult::description, getConstraintNumber(), getSolutionNumber(), optimization, ConstraintSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherConstraintResultConIdx ( int  solIdx,
int  otherIdx,
int  conIdx,
int  idx 
)

Set the index of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
conIdx holds the index of the location to which the information is stored
idx holds the index of the onstraint to which the information belongs
Returns:
whether the other variable result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4359 of file OSResult.cpp.

References OtherConstraintResult::con, OptimizationSolution::constraints, getSolutionNumber(), OtherConResult::idx, optimization, ConstraintSolution::other, and OptimizationResult::solution.

bool OSResult::setOtherConstraintResultCon ( int  solIdx,
int  otherIdx,
int  conIdx,
std::string  value 
)

Set the value of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the OtherConstraintResult object
conIdx holds the index of the location to which the information is stored
value holds the value of the constraint to which the information belongs
Returns:
whether the other constraint result's value was set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherConstraintResult

org.optimizationservices.oscommon.datastructure.osresult.OtherConResult

setSolutionNumber(int)

Definition at line 4373 of file OSResult.cpp.

References OtherConstraintResult::con, OptimizationSolution::constraints, getSolutionNumber(), optimization, ConstraintSolution::other, OptimizationResult::solution, and OtherConResult::value.

bool OSResult::setNumberOfOtherSolutionResults ( int  solIdx,
int  numberOfOtherSolutionResults 
)

Set the [i]th optimization solution's other (non-standard/solver specific) solution-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first. This method then allocates the memory for the new OtherSolutionResult objects

Parameters:
solIdx is the solution index
numberOfOtherSolutionResults holds the number of OtherSolutionResult objects Each other objective result contains the name (required), an optional description (std::string) and an optional category (std::string). Each other solution result can also optionally contain an array Item for each result. The Item content is string-valued.
Returns:
whether the other objective results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherSolutionResult

org.optimizationservices.oscommon.datastructure.osresult.Item

setSolutionNumber(int)

Definition at line 4387 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResults::numberOfOtherSolutionResults, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

bool OSResult::setOtherSolutionResultName ( int  solIdx,
int  otherIdx,
std::string  name 
)

Set the name associated with the [j]th other solution result of solution [i].

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
otherIdx holds the index of the otherSolutionResult
name holds the name of the otherSolutionResult
Returns:
whether the other solution result was set successfully or not.

Definition at line 4411 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResult::name, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

bool OSResult::setOtherSolutionResultCategory ( int  solIdx,
int  otherIdx,
std::string  category 
)

Set the category associated with the [j]th other solution result of solution [i].

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
otherIdx holds the index of the otherSolutionResult
category holds the category of the otherSolutionResult
Returns:
whether the other solution result was set successfully or not.

Definition at line 4424 of file OSResult.cpp.

References OtherSolutionResult::category, getSolutionNumber(), optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

bool OSResult::setOtherSolutionResultDescription ( int  solIdx,
int  otherIdx,
std::string  description 
)

Set the description associated with the [j]th other solution result of solution [i].

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
otherIdx holds the index of the otherSolutionResult
category holds the description of the otherSolutionResult
Returns:
whether the other solution result was set successfully or not.

Definition at line 4438 of file OSResult.cpp.

References OtherSolutionResult::description, getSolutionNumber(), optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

bool OSResult::setOtherSolutionResultNumberOfItems ( int  solIdx,
int  otherIdx,
int  numberOfItems 
)

Set the number of items associated with the [j]th other solution result of solution [i].

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
otherIdx holds the index of the otherSolutionResult
numberOfItems holds the number of items
Returns:
whether the other solution result was set successfully or not.

Definition at line 4452 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResult::item, OtherSolutionResult::numberOfItems, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

bool OSResult::setOtherSolutionResultItem ( int  solIdx,
int  otherIdx,
int  itemIdx,
std::string  item 
)

Set one item associated with the [j]th other solution result of solution [i].

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
otherIdx holds the index of the otherSolutionResult
itemIdx holds the index of the item
item holds the value of the item
Returns:
whether the other solution result item was set successfully or not.

Definition at line 4470 of file OSResult.cpp.

References getSolutionNumber(), OtherSolutionResult::item, optimization, OtherSolutionResults::otherSolutionResult, OptimizationSolution::otherSolutionResults, and OptimizationResult::solution.

bool OSResult::setNumberOfSolverOutputs ( int  numberOfSolverOutputs  ) 

Set the number of other solver outputs.

Parameters:
numberOfOtherSolverOutputs holds the number of SolverOutput objects Each solver output can also optionally contain an array Item for each result. The Item content is string-valued.
Returns:
whether the results were set successfully or not.

Definition at line 4484 of file OSResult.cpp.

References OtherSolverOutput::numberOfSolverOutputs, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

bool OSResult::setSolverOutputName ( int  otherIdx,
std::string  name 
)

Set the name associated with the [j]th solver output.

Parameters:
otherIdx holds the index of the solverOutput object
name holds the name of the solver output
Returns:
whether the solver output was set successfully or not.

Definition at line 4501 of file OSResult.cpp.

References SolverOutput::name, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

bool OSResult::setSolverOutputCategory ( int  otherIdx,
std::string  category 
)

Set the category associated with the [j]th solver output.

Parameters:
otherIdx holds the index of the solverOutput object
name holds the category of the solver output
Returns:
whether the solver output was set successfully or not.

Definition at line 4509 of file OSResult.cpp.

References SolverOutput::category, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

bool OSResult::setSolverOutputDescription ( int  otherIdx,
std::string  description 
)

Set the description associated with the [j]th solver output.

Parameters:
otherIdx holds the index of the solverOutput object
name holds the description of the solver output
Returns:
whether the solver output was set successfully or not.

Definition at line 4517 of file OSResult.cpp.

References SolverOutput::description, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

bool OSResult::setSolverOutputNumberOfItems ( int  otherIdx,
int  numberOfItems 
)

Set the number of items associated with the [j]th solver output.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
otherIdx holds the index of the solverOutput object
numberOfItems holds the number of items
Returns:
whether the information was set successfully or not.

Definition at line 4525 of file OSResult.cpp.

References SolverOutput::item, SolverOutput::numberOfItems, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

bool OSResult::setSolverOutputItem ( int  otherIdx,
int  itemIdx,
std::string  item 
)

Set one item associated with the [j]th solver output.

Parameters:
otherIdx holds the index of the otherSolutionResult
itemIdx holds the index of the item
item holds the value of the item
Returns:
whether the information was set successfully or not.

Definition at line 4538 of file OSResult.cpp.

References SolverOutput::item, optimization, OptimizationResult::otherSolverOutput, and OtherSolverOutput::solverOutput.

GeneralStatus* OSResult::getGeneralStatus (  ) 

Get the general status.

Returns:
the general status.

std::string OSResult::getGeneralStatusType (  ) 

Get the general status type, which can be: success, error, warning.

Returns:
the general status type, null if none.

std::string OSResult::getGeneralStatusDescription (  ) 

Get the general status description.

Returns:
the general status description, null or empty std::string if none.

std::string OSResult::getServiceName (  ) 

Get service name.

Returns:
the service name.

std::string OSResult::getServiceURI (  ) 

Get service uri.

Returns:
the service uri.

std::string OSResult::getInstanceName (  ) 

Get instance name.

Returns:
the instance name.

std::string OSResult::getJobID (  ) 

Get the job id.

Returns:
the job id.

std::string OSResult::getGeneralMessage (  ) 

Get the general message.

Returns:
the general message.

int OSResult::getTimeNumber (  ) 

Get the number of time measurements.

Returns:
the number of time measurements

double OSResult::getTimeValue (  ) 

Get the time measurement.

In the first instance, assume that there is only a single measure, which is the total elapsed time in seconds

Returns:
the time measurement

double* OSResult::getOptimalPrimalVariableValues ( int  objIdx  ) 

Get one solution of optimal primal variable values.

Parameters:
objIdx holds the objective index the optimal value corresponds to.
Returns:
a double dense array of the optimal values, null if no optimal value.

double* OSResult::getOptimalDualVariableValues ( int  objIdx  ) 

Get one solution of optimal dual variable values.

Parameters:
objIdx holds the objective index the optimal value corresponds to.
Returns:
a double dense array of the optimal dual values, null if no optimal value.

OptimizationSolutionStatus* OSResult::getSolutionStatus ( int  solIdx  ) 

Get the [i]th optimization solution status, where i equals the given solution index.

The solution status includes the status type, optional descriptions and possibly substatuses.

Parameters:
solIdx holds the solution index to get the solution status.
Returns:
the optimization solution status that corresponds to solIdx, null if none.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OptimizationSolutionStatus

std::string OSResult::getSolutionStatusType ( int  solIdx  ) 

Get the [i]th optimization solution status type, where i equals the given solution index.

The solution status type can be: unbounded, globallyOptimal, locallyOptimal, optimal, bestSoFar, feasible, infeasible, stoppedByLimit, unsure, error, other

Parameters:
solIdx holds the solution index to get the solution status type.
Returns:
the optimization solution status type that corresponds to solIdx, null or empty std::string if none.

std::string OSResult::getSolutionStatusDescription ( int  solIdx  ) 

Get the [i]th optimization solution status description, where i equals the given solution index.

Parameters:
solIdx holds the solution index to get the solution status description.
Returns:
the optimization solution status description that corresponds to solIdx, null or empty std::string if none.

std::string OSResult::getSolutionMessage ( int  solIdx  ) 

Get the [i]th optimization solution message, where i equals the given solution index.

Parameters:
solIdx holds the solution index to get the solution message.
Returns:
the optimization solution message that corresponds to solIdx, null or empty if none.

int OSResult::getVariableNumber (  ) 

Get variable number.

Returns:
variable number, -1 if no information.

int OSResult::getObjectiveNumber (  ) 

Get objective number.

Returns:
objective number, -1 if no information.

int OSResult::getConstraintNumber (  ) 

Get constraint number.

Returns:
constraint number, -1 if no information.

int OSResult::getSolutionNumber (  ) 

get the number of solutions.

Returns:
the number of solutions, 0 if none.

int OSResult::getNumberOfOtherVariableResults ( int  solIdx  ) 

Get numberOfOtherVariableResult.

Returns:
numberOfOtherVariableResult, -1 if no information.

bool OSResult::setGeneralStatus ( GeneralStatus status  ) 

Set the general status.

Parameters:
status holds the general status.
Returns:
whether the general status is set successfully.

bool OSResult::setGeneralStatusType ( std::string  type  ) 

Set the general status type, which can be: success, error, warning.

Parameters:
type holds the general status type
Returns:
whether the general status type is set successfully or not.

bool OSResult::setGeneralStatusDescription ( std::string  description  ) 

Set the general status description.

Parameters:
description holds the general status description.
Returns:
whether the general status description is set successfully or not.

bool OSResult::setGeneralMessage ( std::string  message  ) 

Set the general message.

Parameters:
message holds the general message.
Returns:
whether process message is set successfully.

bool OSResult::setServiceName ( std::string  serviceName  ) 

Set service name.

Parameters:
serviceName holds the name of the service.
Returns:
whether the service name is set successfully.

bool OSResult::setServiceURI ( std::string  serviceURI  ) 

Set service uri.

Parameters:
serviceURI holds the uri of the service.
Returns:
whether the service uri is set successfully.

bool OSResult::setInstanceName ( std::string  instanceName  ) 

Set instance name.

Parameters:
instanceName holds the name of the instance.
Returns:
whether the instance name is set successfully.

bool OSResult::setJobID ( std::string  jobID  ) 

Set job id.

Parameters:
jobID holds the job id.
Returns:
whether the job id is set successfully.

bool OSResult::setTime ( double  time  ) 

Set time.

Parameters:
time holds the time.
Returns:
whether the time is set successfully.

bool OSResult::addTimingInformation ( std::string  type,
std::string  category,
std::string  unit,
std::string  description,
double  value 
)

Add timing information.

Parameters:
type holds the timer type (cpuTime/elapsedTime/other).
category holds the timer category (total/input/preprocessing, etc.)
unit holds the timer unit (tick/milliscond/second/minute/etc.)
description holds further information about the timer.
value holds the time measurement.
Returns:
whether the time is set successfully.

bool OSResult::setTimeNumber ( int  timeNumber  ) 

Set the number of time measurements.

Parameters:
timeNumber holds the number of measurements
Returns:
whether the time number is set successfully or not.

bool OSResult::setVariableNumber ( int  variableNumber  ) 

Set the variable number.

Parameters:
variableNumber holds the number of variables
Returns:
whether the variable number is set successfully or not.

bool OSResult::setObjectiveNumber ( int  objectiveNumber  ) 

Set the objective number.

Parameters:
objectiveNumber holds the number of objectives
Returns:
whether the objective number is set successfully or not.

bool OSResult::setConstraintNumber ( int  constraintNumber  ) 

Set the constraint number.

Parameters:
constraintNumber holds the number of constraints
Returns:
whether the constraint number is set successfully or not.

bool OSResult::setSolutionNumber ( int  number  ) 

set the number of solutions.

This method must be called before setting other optimization solution related results. Before this method is called, the setVariableNumber(int), setObjectiveNumber(int), setConstraintNumber(int) methods have to be called first.

Parameters:
number holds the number of solutions to set.
Returns:
whether the solution number is set successfully.
See also:
setVariableNumber(int)

setObjectiveNumber(int)

setConstraintNumber(int)

bool OSResult::setSolutionStatus ( int  solIdx,
std::string  type,
std::string  description 
)

Set the [i]th optimization solution status, where i equals the given solution index.

The solution status includes the status type, optional descriptions and possibly substatuses. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the solution status.
status holds the optimization solution status to set.
Returns:
whether the optimization solution status is set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OptimizationSolutionStatus

setSolutionNumber(int)

bool OSResult::setSolutionObjectiveIndex ( int  solIdx,
int  objectiveIdx 
)

Set the [i]th optimization solution's objective index, where i equals the given solution index.

The first objective's index should be -1, the second -2, and so on. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective index.
objectiveIdx holds the objective index to set. All the objective indexes are negative starting from -1 downward.
Returns:
whether the optimization objective index is set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 990 of file OSResult.cpp.

References getSolutionNumber(), optimization, OptimizationResult::solution, and OptimizationSolution::targetObjectiveIdx.

bool OSResult::setNumberOfPrimalVariableValues ( int  solIdx,
int  n 
)

Set the [i]th optimization solution's number of primal variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
n holds the number of elements in the array x
Returns:
whether primal variable values are set successfully or not.
See also:
setSolutionNumber(int)

bool OSResult::setPrimalVariableValues ( int  solIdx,
double *  x,
int  n 
)

Set the [i]th optimization solution's primal variable values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the primal variable values.
x holds the a double dense array of variable values to set; it could be null if all variables are 0.
n holds the number of elements in the array x
Returns:
whether primal variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 1028 of file OSResult.cpp.

References getSolutionNumber(), VarValue::idx, VariableValues::numberOfVar, optimization, OptimizationResult::solution, VarValue::value, VariableSolution::values, VariableValues::var, and OptimizationSolution::variables.

bool OSResult::setNumberOfOtherVariableResults ( int  solIdx,
int  numberOfOtherVariableResults 
)

Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first. This method then allocates the memory for the new OtherVariableResult objects

Parameters:
solIdx is the solution index
numberOfOtherVariableResult holds the number of OtherVariableResult objects Each other variable result contains the name (required), an optional description (std::string) and an optional value (std::string). Each other variable result can also optionally contain an array OtherVarResult for each variable. The OtherVarResult contains a variable idx (required) and an optional std::string value.
Returns:
whether the other variable results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

bool OSResult::setAnOtherVariableResult ( int  solIdx,
int  otherIdx,
std::string  name,
std::string  description,
int *  indexes,
std::string *  s,
int  n 
)

Set the [i]th optimization solution's other (non-standard/solver specific)variable-related results, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index
otherIdx holds the index of the new OtherVariableResult object
name holds the name of the other element
s holds a pointer to the array of values of the var element
n holds the number of elements of the array
Returns:
whether the other variable results are set successfully or not.
See also:
org.optimizationservices.oscommon.datastructure.osresult.OtherVariableResult

org.optimizationservices.oscommon.datastructure.osresult.OtherVarResult

setSolutionNumber(int)

bool OSResult::setObjectiveValues ( int  solIdx,
double *  objectiveValues,
int  n 
)

Set the [i]th optimization solution's objective values, where i equals the given solution index.

Usually one of the objective is what the solution was solved for (or based on). Its index should be indicated in the solution's objectiveIdx attribute. Based on this objective's solution, the rest of the objective values are (optionally) calculated. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the objective values.
objectiveValues holds the a double dense array of objective values to set. Possibly only the objective that the solution is based on has the value, and the rest of the objective values all get a Double.NaN value, meaning that they are not calculated.
n holds the dimension of the objectiveValues array
Returns:
whether objective values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 1130 of file OSResult.cpp.

References getSolutionNumber(), ObjValue::idx, ObjectiveValues::numberOfObj, ObjectiveValues::obj, OptimizationSolution::objectives, optimization, OptimizationResult::solution, ObjValue::value, and ObjectiveSolution::values.

bool OSResult::setDualVariableValues ( int  solIdx,
double *  lbValues,
double *  ubValues,
int  n 
)

Set the [i]th optimization solution's dual variable values, where i equals the given solution index.

The method allows setting dual values at both the constraints' lower and upper bounds. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the dual variable values.
lbValues holds the a double dense array of variable dual values to set at the lower bounds; it could be null if all values are 0.
ubValues holds the a double dense array of variable dual values to set at the upper bounds; it could be null if all values are 0.
n holds the number of values in the lbValues and ubValues arrays
Returns:
whether dual variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 1184 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVarValue::idx, DualVarValue::lbValue, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, and DualVarValue::ubValue.

bool OSResult::setDualVariableValues ( int  solIdx,
double *  y,
int  n 
)

Set the [i]th optimization solution's dual variable values, where i equals the given solution index.

The method allows setting dual values at both the constraints' lower and upper bounds. Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the dual variable values.
y holds a double dense array of variable dual values; it could be NULL if all values are 0.
n holds the number of elements of the array y.
Returns:
whether dual variable values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 1261 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVarValue::idx, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, and DualVarValue::value.

bool OSResult::setConstraintValues ( int  solIdx,
double *  constraintValues,
int  n 
)

Set the [i]th optimization solution's constraint values, where i equals the given solution index.

Before this method is called, the setSolutionNumber(int) method has to be called first.

Parameters:
solIdx holds the solution index to set the constraint values.
constraintValues holds the a double dense array of constraint values to set; it could be null if all constraint values are 0.
n holds the dimension of the array constraintValues.
Returns:
whether constraint values are set successfully or not.
See also:
setSolutionNumber(int)

Definition at line 1293 of file OSResult.cpp.

References DualVariableValues::con, OptimizationSolution::constraints, ConstraintSolution::dualValues, getSolutionNumber(), DualVarValue::idx, DualVariableValues::numberOfCon, optimization, OptimizationResult::solution, and DualVarValue::value.


Member Data Documentation

GeneralResult* OSResult::general

general holds the first child of the OSResult specified by the OSrL Schema.

Definition at line 2041 of file OSResult.h.

Referenced by getGeneralMessage(), getGeneralStatus(), getGeneralStatusDescription(), getGeneralStatusType(), getGeneralSubstatusDescription(), getGeneralSubstatusName(), getInstanceName(), getJobID(), getNumberOfGeneralSubstatuses(), getNumberOfOtherGeneralResults(), getOtherGeneralResultDescription(), getOtherGeneralResultName(), getOtherGeneralResultValue(), getServiceName(), getServiceURI(), getSolverInvoked(), getTimeStamp(), IsEqual(), OSResult(), setGeneralStatus(), setNumberOfGeneralSubstatuses(), setNumberOfOtherGeneralResults(), OSrLWriter::writeOSrL(), OSrL2Gams::writeSolution(), and ~OSResult().

SystemResult* OSResult::system

system holds the second child of the OSResult specified by the OSrL Schema.

Definition at line 2046 of file OSResult.h.

Referenced by getAvailableCPUNumberDescription(), getAvailableCPUNumberValue(), getAvailableCPUSpeedDescription(), getAvailableCPUSpeedUnit(), getAvailableCPUSpeedValue(), getAvailableDiskSpaceDescription(), getAvailableDiskSpaceUnit(), getAvailableDiskSpaceValue(), getAvailableMemoryDescription(), getAvailableMemoryUnit(), getAvailableMemoryValue(), getNumberOfOtherSystemResults(), getOtherSystemResultDescription(), getOtherSystemResultName(), getOtherSystemResultValue(), getSystemInformation(), IsEqual(), OSResult(), setAvailableCPUNumberDescription(), setAvailableCPUNumberValue(), setAvailableCPUSpeedDescription(), setAvailableCPUSpeedUnit(), setAvailableCPUSpeedValue(), setAvailableDiskSpaceDescription(), setAvailableDiskSpaceUnit(), setAvailableDiskSpaceValue(), setAvailableMemoryDescription(), setAvailableMemoryUnit(), setAvailableMemoryValue(), setNumberOfOtherSystemResults(), OSrLWriter::writeOSrL(), and ~OSResult().

ServiceResult* OSResult::service

service holds the third child of the OSResult specified by the OSrL Schema.

Definition at line 2051 of file OSResult.h.

Referenced by getCurrentJobCount(), getCurrentState(), getNumberOfOtherServiceResults(), getOtherServiceResultDescription(), getOtherServiceResultName(), getOtherServiceResultValue(), getServiceUtilization(), getTimeServiceStarted(), getTotalJobsSoFar(), IsEqual(), OSResult(), setCurrentJobCount(), setCurrentState(), setNumberOfOtherServiceResults(), setServiceUtilization(), setTimeServiceStarted(), setTotalJobsSoFar(), OSrLWriter::writeOSrL(), and ~OSResult().

JobResult* OSResult::job

job holds the fourth child of the OSResult specified by the OSrL Schema.

Definition at line 2056 of file OSResult.h.

Referenced by addTimingInformation(), getActualStartTime(), getJobEndTime(), getJobStatus(), getJobSubmitTime(), getNumberOfOtherJobResults(), getNumberOfTimes(), getOtherJobResultDescription(), getOtherJobResultName(), getOtherJobResultValue(), getScheduledStartTime(), getTimeNumber(), getTimeValue(), getTimingInfoCategory(), getTimingInfoDescription(), getTimingInfoType(), getTimingInfoUnit(), getTimingInfoValue(), getUsedCPUNumberDescription(), getUsedCPUNumberValue(), getUsedCPUSpeedDescription(), getUsedCPUSpeedUnit(), getUsedCPUSpeedValue(), getUsedDiskSpaceDescription(), getUsedDiskSpaceUnit(), getUsedDiskSpaceValue(), getUsedMemoryDescription(), getUsedMemoryUnit(), getUsedMemoryValue(), IsEqual(), OSResult(), setActualStartTime(), setJobEndTime(), setJobStatus(), setJobSubmitTime(), setNumberOfOtherJobResults(), setNumberOfTimes(), setScheduledStartTime(), setTimeNumber(), setTimingInformation(), setUsedCPUNumberDescription(), setUsedCPUNumberValue(), setUsedCPUSpeedDescription(), setUsedCPUSpeedUnit(), setUsedCPUSpeedValue(), setUsedDiskSpaceDescription(), setUsedDiskSpaceUnit(), setUsedDiskSpaceValue(), setUsedMemoryDescription(), setUsedMemoryUnit(), setUsedMemoryValue(), OSrLWriter::writeOSrL(), and ~OSResult().

OptimizationResult* OSResult::optimization

optimization holds the fifth child of the OSResult specified by the OSrL Schema.

Definition at line 2061 of file OSResult.h.

Referenced by getAnOtherVariableResultNumberOfVar(), getConstraintNumber(), getDualValue(), getDualValueIdx(), getNumberOfDualValues(), getNumberOfObjValues(), getNumberOfOtherConstraintResults(), getNumberOfOtherObjectiveResults(), getNumberOfOtherSolutionResults(), getNumberOfOtherVariableResults(), getNumberOfPrimalVariableValues(), getNumberOfSolutionSubstatuses(), getNumberOfSolverOutputs(), getNumberOfVarValues(), getNumberOfVarValuesString(), getObjectiveNumber(), getObjValue(), getObjValueIdx(), getOptimalDualVariableValues(), getOptimalPrimalVariableValues(), getOtherConstraintResultCon(), getOtherConstraintResultConIdx(), getOtherConstraintResultDescription(), getOtherConstraintResultName(), getOtherConstraintResultNumberOfCon(), getOtherConstraintResultValue(), getOtherObjectiveResultDescription(), getOtherObjectiveResultName(), getOtherObjectiveResultNumberOfObj(), getOtherObjectiveResultObj(), getOtherObjectiveResultObjIdx(), getOtherObjectiveResultValue(), getOtherSolutionResultCategory(), getOtherSolutionResultDescription(), getOtherSolutionResultItem(), getOtherSolutionResultName(), getOtherSolutionResultNumberOfItems(), getOtherVariableResultDescription(), getOtherVariableResultName(), getOtherVariableResultNumberOfVar(), getOtherVariableResultValue(), getOtherVariableResultVar(), getOtherVariableResultVarIdx(), getSolutionMessage(), getSolutionNumber(), getSolutionStatus(), getSolutionStatusDescription(), getSolutionStatusType(), getSolutionSubstatusDescription(), getSolutionSubstatusType(), getSolutionTargetObjectiveIdx(), getSolutionWeightedObjectives(), getSolverOutputCategory(), getSolverOutputDescription(), getSolverOutputItem(), getSolverOutputName(), getSolverOutputNumberOfItems(), getVariableNumber(), getVarValue(), getVarValueIdx(), getVarValueString(), getVarValueStringIdx(), IsEqual(), main(), OSResult(), setBasisStatus(), setConstraintNumber(), setConstraintValues(), setConstraintValuesDense(), setDualValue(), setDualVariableValues(), setDualVariableValuesDense(), setDualVariableValuesSparse(), setNumberOfDualValues(), setNumberOfDualVariableValues(), setNumberOfObjectiveValues(), setNumberOfObjValues(), setNumberOfOtherConstraintResults(), setNumberOfOtherObjectiveResults(), setNumberOfOtherSolutionResults(), setNumberOfOtherVariableResults(), setNumberOfPrimalVariableValues(), setNumberOfSolutionSubstatuses(), setNumberOfSolverOutputs(), setNumberOfVarValues(), setNumberOfVarValuesString(), setObjectiveNumber(), setObjectiveValues(), setObjectiveValuesDense(), setObjectiveValuesSparse(), setObjValue(), setOtherConstraintResultCon(), setOtherConstraintResultConIdx(), setOtherConstraintResultDescription(), setOtherConstraintResultName(), setOtherConstraintResultNumberOfCon(), setOtherConstraintResultNumberOfEnumerations(), setOtherConstraintResultValue(), setOtherObjectiveResultDescription(), setOtherObjectiveResultName(), setOtherObjectiveResultNumberOfEnumerations(), setOtherObjectiveResultNumberOfObj(), setOtherObjectiveResultObj(), setOtherObjectiveResultObjIdx(), setOtherObjectiveResultValue(), setOtherOptionEnumeration(), setOtherSolutionResultCategory(), setOtherSolutionResultDescription(), setOtherSolutionResultItem(), setOtherSolutionResultName(), setOtherSolutionResultNumberOfItems(), setOtherVariableResultDescription(), setOtherVariableResultName(), setOtherVariableResultNumberOfEnumerations(), setOtherVariableResultNumberOfVar(), setOtherVariableResultValue(), setOtherVariableResultVar(), setOtherVariableResultVarIdx(), setPrimalVariableValues(), setPrimalVariableValuesDense(), setPrimalVariableValuesSparse(), setSolutionMessage(), setSolutionNumber(), setSolutionObjectiveIndex(), setSolutionStatusDescription(), setSolutionStatusType(), setSolutionSubstatusDescription(), setSolutionSubstatusType(), setSolutionTargetObjectiveIdx(), setSolutionWeightedObjectives(), setSolverOutputCategory(), setSolverOutputDescription(), setSolverOutputItem(), setSolverOutputName(), setSolverOutputNumberOfItems(), setVariableNumber(), setVarValue(), setVarValueString(), OSrL2Gams::writeSolution(), and ~OSResult().

int OSResult::m_iVariableNumber

m_iVariableNumber holds the variable number.

Definition at line 2080 of file OSResult.h.

Referenced by getVariableNumber().

int OSResult::m_iObjectiveNumber

m_iObjectiveNumber holds the objective number.

Definition at line 2085 of file OSResult.h.

Referenced by getObjectiveNumber().

int OSResult::m_iConstraintNumber

m_iConstraintNumber holds the constraint number.

Definition at line 2090 of file OSResult.h.

Referenced by getConstraintNumber().

int OSResult::m_iNumberOfOtherVariableResults

m_iNumberOfOtherVariableResults holds the number of OtherVariableResult objects.

Definition at line 2095 of file OSResult.h.

Referenced by getNumberOfOtherVariableResults().

double* OSResult::m_mdPrimalValues

m_mdPrimalValues a vector of primal variables.

Definition at line 2100 of file OSResult.h.

Referenced by getOptimalPrimalVariableValues(), and ~OSResult().

double* OSResult::m_mdDualValues

m_mdDualValues a vector of dual variables.

Definition at line 2105 of file OSResult.h.

Referenced by getOptimalDualVariableValues(), and ~OSResult().

std::vector<IndexValuePair*> OSResult::primalVals

Definition at line 2108 of file OSResult.h.

Referenced by getOptimalPrimalVariableValues(), and ~OSResult().

std::vector<IndexValuePair*> OSResult::dualVals

Definition at line 2110 of file OSResult.h.

Referenced by getOptimalDualVariableValues(), and ~OSResult().

GeneralResult* OSResult::general

general holds the first child of the OSResult specified by the OSrL Schema.

Definition at line 1310 of file OSResult.h.

SystemResult* OSResult::system

system holds the second child of the OSResult specified by the OSrL Schema.

Definition at line 1315 of file OSResult.h.

ServiceResult* OSResult::service

service holds the third child of the OSResult specified by the OSrL Schema.

Definition at line 1320 of file OSResult.h.

JobResult* OSResult::job

job holds the fourth child of the OSResult specified by the OSrL Schema.

Definition at line 1325 of file OSResult.h.

OptimizationResult* OSResult::optimization

optimization holds the fifth child of the OSResult specified by the OSrL Schema.

Definition at line 1330 of file OSResult.h.

double* OSResult::m_mdPrimalValues

m_mdPrimalValues a vector of primal variables.

Definition at line 1368 of file OSResult.h.

double* OSResult::m_mdDualValues

m_mdDualValues a vector of primal variables.

Definition at line 1373 of file OSResult.h.


The documentation for this class was generated from the following files:
Generated on Fri Nov 19 13:32:44 2010 by  doxygen 1.4.7