OS  2.9.3
OSResult.h
Go to the documentation of this file.
1 /* $Id: OSResult.h 4894 2014-12-09 03:12:22Z Gassmann $ */
15 #ifndef OSRESULT_H
16 #define OSRESULT_H
17 #include <string>
18 #include <vector>
19 #include "OSGeneral.h"
20 
21 //#define DEBUG
22 
23 
29 {
33  int idx;
34 
37  std::string value;
38 
39 };
40 
41 
54 {
55 
56 public:
57 
59  std::string name;
60 
62  std::string description;
63 
74 
79  bool IsEqual(GeneralSubstatus *that);
80 
88  bool setRandom(double density, bool conformant);
89 
90 };//GeneralSubstatus
91 
92 
105 {
106 
107 public:
108 
111 
113  std::string type;
114 
116  std::string description;
117 
120 
125  GeneralStatus();
130  ~GeneralStatus();
131 
136  bool IsEqual(GeneralStatus *that);
137 
145  bool setRandom(double density, bool conformant);
146 
147 };//GeneralStatus
148 
149 
162 {
163 
164 public:
165 
167  std::string name;
168 
170  std::string value;
171 
173  std::string description;
174 
179  OtherResult();
184  ~OtherResult();
185 
190  bool IsEqual(OtherResult *that);
191 
199  bool setRandom(double density, bool conformant);
200 
201 };//OtherResult
202 
203 
216 {
217 
218 public:
219 
222 
225 
230  OtherResults();
235  ~OtherResults();
236 
241  bool IsEqual(OtherResults *that);
242 
250  bool setRandom(double density, bool conformant);
251 
252 };//OtherResults
253 
266 {
267 public:
268 
272 
275  std::string message;
276 
280  std::string serviceURI;
281 
285  std::string serviceName;
286 
289  std::string instanceName;
290 
294  std::string jobID;
295 
298  std::string solverInvoked;
299 
302  std::string timeStamp;
303 
307 
308 
313  GeneralResult();
318  ~GeneralResult();
319 
324  bool IsEqual(GeneralResult *that);
325 
333  bool setRandom(double density, bool conformant);
334 };//class GeneralResult
335 
336 
349 {
350 public:
351 
353  std::string systemInformation;
354 
358 
362 
366 
370 
374 
379  SystemResult();
384  ~SystemResult();
385 
390  bool IsEqual(SystemResult *that);
391 
399  bool setRandom(double density, bool conformant);
400 };//class SystemResult
401 
402 
415 {
416 public:
417 
419  std::string currentState;
420 
423 
426 
428  std::string timeServiceStarted;
429 
432 
436 
441  ServiceResult();
446  ~ServiceResult();
447 
452  bool IsEqual(ServiceResult *that);
453 
461  bool setRandom(double density, bool conformant);
462 };//class ServiceResult
463 
464 #if 0
465 
477 class Time
478 {
479 public:
480 
484  std::string type;
485 
489  std::string category;
490 
494  std::string unit;
495 
499  std::string description;
500 
504  double value;
505 
510  Time();
515  ~Time();
516 
521  bool IsEqual(Time *that);
522 
530  bool setRandom(double density, bool conformant);
531 };//class Time
532 #endif
533 
545 class TimeMeasurement : public TimeSpan
546 {
547 public:
548 
552  std::string type;
553 
557  std::string category;
558 
562  std::string description;
563 
568  TimeMeasurement();
574 
579  bool IsEqual(TimeMeasurement *that);
580 
588  bool setRandom(double density, bool conformant);
589 };//class TimeMeasurement
590 
591 
604 {
605 public:
606 
612 
618 
629 
634  bool IsEqual(TimingInformation *that);
635 
643  bool setRandom(double density, bool conformant);
644 };//class TimingInformation
645 
646 
659 {
660 public:
661 
663  std::string status;
664 
666  std::string submitTime;
667 
669  std::string scheduledStartTime;
670 
672  std::string actualStartTime;
673 
675  std::string endTime;
676 
679 
683 
687 
691 
695 
699 
704  JobResult();
709  ~JobResult();
710 
715  bool IsEqual(JobResult *that);
716 
724  bool setRandom(double density, bool conformant);
725 };//class JobResult
726 
727 
728 
729 
742 {
743 public:
744 
746  std::string type;
747 
749  std::string description;
750 
760 
766 
774  bool setRandom(double density, bool conformant);
775 
776 };//OptimizationSolutionSubstatus
777 
778 
791 {
792 public:
793 
796 
798  std::string type;
799 
801  std::string description;
802 
805 
815 
821 
829  bool setRandom(double density, bool conformant);
830 
831 };//OptimizationSolutionStatus
832 
833 
845 class VarValue
846 {
847 public:
848 
850  int idx;
851 
853  std::string name;
854 
855  /* value is the value of the variable indexed by idx
856  * in the solution
857  */
858  double value;
859 
864  VarValue();
869  ~VarValue();
870 
875  bool IsEqual(VarValue *that);
876 
884  bool setRandom(double density, bool conformant);
885 
886 };// class VarValue
887 
888 
900 {
901 public:
902 
906 
911 
912 
917  VariableValues();
918 
923  ~VariableValues();
924 
929  bool IsEqual(VariableValues *that);
930 
938  bool setRandom(double density, bool conformant);
939 
940 };// class VariableValues
941 
942 
955 {
956 public:
957 
959  int idx;
960 
962  std::string name;
963 
964  /* value is the value of the variable indexed by idx
965  * in the solution
966  */
967  std::string value;
968 
973  VarValueString();
974 
979  ~VarValueString();
980 
985  bool IsEqual(VarValueString *that);
986 
994  bool setRandom(double density, bool conformant);
995 
996 };// class VarValueString
997 
998 
1010 {
1011 public:
1012 
1016 
1021 
1022 
1028 
1034 
1039  bool IsEqual(VariableValuesString *that);
1040 
1048  bool setRandom(double density, bool conformant);
1049 
1050 };// class VariableValuesString
1051 
1052 
1064 {
1065 public:
1066 
1068  int idx;
1069 
1071  std::string name;
1072 
1079  std::string value;
1080 
1085  OtherVarResult();
1090  ~OtherVarResult();
1091 
1096  bool IsEqual(OtherVarResult *that);
1097 
1105  bool setRandom(double density, bool conformant);
1106 
1107 };//OtherVarResult
1108 
1109 
1110 
1123 {
1124 public:
1125 
1130 
1135 
1137  std::string name;
1138 
1142  std::string value;
1143 
1145  std::string type;
1146 
1148  std::string description;
1149 
1150  /* a pointer to OtherVarResult objects that will
1151  * give for each variable the index and value for
1152  * this user defined variable result
1153  */
1155 
1157  std::string varType;
1158 
1159  /* a pointer to OtherOptionEnumeration objects that will
1160  * give for each distinct value the set of indices for
1161  * this user defined variable result
1162  */
1164 
1166  std::string enumType;
1167 
1173 
1179 
1184  bool IsEqual(OtherVariableResult *that);
1185 
1193  bool setRandom(double density, bool conformant);
1194 
1195 };//OtherVariableResult
1196 
1197 
1210 {
1211 public:
1212 
1217 
1220 
1223 
1226 
1231 
1236  VariableSolution();
1237 
1243 
1248  bool IsEqual(VariableSolution *that);
1249 
1257  bool setRandom(double density, bool conformant);
1258 
1259 };// class VariableSolution
1260 
1261 
1274 {
1275 public:
1276 
1278  int idx;
1279 
1281  std::string name;
1282 
1284  double value;
1285 
1290  ObjValue();
1291 
1296  ~ObjValue();
1297 
1302  bool IsEqual(ObjValue *that);
1303 
1311  bool setRandom(double density, bool conformant);
1312 };//ObjValue
1313 
1325 {
1326 public:
1327 
1331 
1337 
1342  ObjectiveValues();
1343 
1348  ~ObjectiveValues();
1349 
1354  bool IsEqual(ObjectiveValues *that);
1355 
1363  bool setRandom(double density, bool conformant);
1364 
1365 };//ObjectiveValues
1366 
1367 
1380 {
1381 public:
1382 
1384  int idx;
1385 
1387  std::string name;
1388 
1392  std::string value;
1393 
1398  OtherObjResult();
1399 
1404  ~OtherObjResult();
1405 
1410  bool IsEqual(OtherObjResult *that);
1411 
1419  bool setRandom(double density, bool conformant);
1420 
1421 };//OtherObjResult
1422 
1423 
1436 {
1437 public:
1438 
1443 
1448 
1450  std::string name;
1451 
1455  std::string value;
1456 
1458  std::string type;
1459 
1461  std::string description;
1462 
1463  /* a pointer to OtherObjResult objects that will
1464  * give for each objective function the index and
1465  * value for this user defined objective function result
1466  */
1468 
1470  std::string objType;
1471 
1472  /* a pointer to OtherOptionEnumeration objects that will
1473  * give for each distinct value the set of indices for
1474  * this user defined variable result
1475  */
1477 
1479  std::string enumType;
1480 
1486 
1492 
1497  bool IsEqual(OtherObjectiveResult *that);
1498 
1506  bool setRandom(double density, bool conformant);
1507 
1508 };//OtherObjectiveResult
1509 
1510 
1511 
1524 {
1525 public:
1526 
1531 
1534 
1537 
1542 
1548 
1554 
1559  bool IsEqual(ObjectiveSolution *that);
1560 
1568  bool setRandom(double density, bool conformant);
1569 
1570 };//ObjectiveSolution
1571 
1572 
1573 
1585 {
1586 public:
1587 
1589  int idx;
1590 
1592  std::string name;
1593 
1597  double value;
1598 
1603  DualVarValue();
1604 
1609  ~DualVarValue();
1610 
1615  bool IsEqual(DualVarValue *that);
1616 
1624  bool setRandom(double density, bool conformant);
1625 
1626 };//DualVarValue
1627 
1628 
1629 
1641 {
1642 public:
1643 
1647 
1653 
1659 
1665 
1670  bool IsEqual(DualVariableValues *that);
1671 
1679  bool setRandom(double density, bool conformant);
1680 
1681 };//DualVariableValues
1682 
1683 
1696 {
1697 public:
1698 
1700  int idx;
1701 
1703  std::string name;
1704 
1710  std::string value;
1711 
1716  OtherConResult();
1717 
1722  ~OtherConResult();
1723 
1728  bool IsEqual(OtherConResult *that);
1729 
1737  bool setRandom(double density, bool conformant);
1738 
1739 };//OtherConResult
1740 
1741 
1754 {
1755 public:
1756 
1761 
1766 
1768  std::string name;
1769 
1773  std::string value;
1774 
1776  std::string type;
1777 
1779  std::string description;
1780 
1781 
1782  /* a vector of OtherConResult objects that will
1783  * give for each constraint the index and
1784  * value for this user defined objective function result
1785  */
1787 
1789  std::string conType;
1790 
1791  /* a pointer to OtherOptionEnumeration objects that will
1792  * give for each distinct value the set of indices for
1793  * this user defined variable result
1794  */
1796 
1798  std::string enumType;
1799 
1805 
1811 
1816  bool IsEqual(OtherConstraintResult *that);
1817 
1825  bool setRandom(double density, bool conformant);
1826 
1827 };//OtherConstraintResult
1828 
1829 
1842 {
1843 
1844 public:
1845 
1850 
1853 
1856 
1861 
1867 
1873 
1878  bool IsEqual(ConstraintSolution *that);
1879 
1887  bool setRandom(double density, bool conformant);
1888 
1889 };//ConstraintSolution
1890 
1891 
1892 
1893 
1906 {
1907 public:
1908 
1910  std::string name;
1911 
1913  std::string value;
1914 
1918  std::string category;
1919 
1921  std::string description;
1922 
1926 
1929  std::string *item;
1930 
1936 
1942 
1947  bool IsEqual(OtherSolutionResult *that);
1948 
1956  bool setRandom(double density, bool conformant);
1957 
1958 };//OtherSolutionResult
1959 
1960 
1961 
1962 
1975 {
1976 public:
1977 
1980 
1985 
1991 
1997 
2002  bool IsEqual(OtherSolutionResults *that);
2003 
2011  bool setRandom(double density, bool conformant);
2012 
2013 };//OtherSolutionResults
2014 
2015 
2016 
2033 {
2034 public:
2035 
2040 
2044  std::string targetObjectiveName;
2045 
2048 
2053 
2055  std::string message;
2056 
2061 
2066 
2071 
2076 
2082 
2088 
2093  bool IsEqual(OptimizationSolution *that);
2094 
2102  bool setRandom(double density, bool conformant);
2103 
2104 };// class OptimizationSolution
2105 
2106 
2119 {
2120 public:
2121 
2123  std::string name;
2124 
2128  std::string category;
2129 
2131  std::string description;
2132 
2136 
2139  std::string *item;
2140 
2145  SolverOutput();
2146 
2151  ~SolverOutput();
2152 
2157  bool IsEqual(SolverOutput *that);
2158 
2166  bool setRandom(double density, bool conformant);
2167 
2168 };//SolverOutput
2169 
2170 
2171 
2184 {
2185 public:
2186 
2190 
2194 
2200 
2206 
2211  bool IsEqual(OtherSolverOutput *that);
2212 
2220  bool setRandom(double density, bool conformant);
2221 
2222 };//OtherSolverOutput
2223 
2224 
2225 
2238 {
2239 public:
2240 
2245 
2250 
2255 
2260 
2265 
2270 
2276 
2282 
2287  bool IsEqual(OptimizationResult *that);
2288 
2296  bool setRandom(double density, bool conformant);
2297 
2298 };// class OptimizationResult
2299 
2300 
2301 
2313 {
2314 
2315 public:
2316 
2321 
2326 
2331 
2336 
2341 
2346 
2351  OSResult();
2352 
2357  ~OSResult();
2358 
2359 
2370  bool setHeader(std::string name, std::string source,
2371  std::string fileCreator, std::string description, std::string licence);
2372 
2373 public:
2374 
2379 
2384 
2389 
2394 
2399 
2404 
2405 
2406  std::vector<IndexValuePair*> primalVals;
2407 
2408  std::vector<IndexValuePair*> dualVals;
2409 
2410 
2411 public:
2416  bool IsEqual(OSResult *that);
2417 
2418 
2426  bool setRandom(double density, bool conformant);
2427 
2428 
2429 
2430 public:
2431 
2438 
2445  std::string getGeneralStatusType();
2446 
2452  std::string getGeneralStatusDescription();
2453 
2460 
2467  std::string getGeneralSubstatusName(int i);
2468 
2475  std::string getGeneralSubstatusDescription(int i);
2476 
2482  std::string getGeneralMessage();
2483 
2489  std::string getServiceName();
2490 
2496  std::string getServiceURI();
2497 
2503  std::string getInstanceName();
2504 
2510  std::string getJobID();
2511 
2517  std::string getSolverInvoked();
2518 
2524  std::string getTimeStamp();
2525 
2532 
2539  std::string getOtherGeneralResultName(int idx);
2540 
2541  /* */
2542  std::string getOtherGeneralResultValue(int idx);
2543  /* */
2544  std::string getOtherGeneralResultDescription(int idx);
2545  /* */
2546  std::string getSystemInformation();
2547  /* */
2548  std::string getAvailableDiskSpaceUnit();
2549  /* */
2550  std::string getAvailableDiskSpaceDescription();
2551  /* */
2552  double getAvailableDiskSpaceValue();
2553  /* */
2554  std::string getAvailableMemoryUnit();
2555  /* */
2556  std::string getAvailableMemoryDescription();
2557  /* */
2558  double getAvailableMemoryValue();
2559  /* */
2560  std::string getAvailableCPUSpeedUnit();
2561  /* */
2562  std::string getAvailableCPUSpeedDescription();
2563  /* */
2564  double getAvailableCPUSpeedValue();
2565  /* */
2566  std::string getAvailableCPUNumberDescription();
2567  /* */
2569  /* */
2571  /* */
2572  std::string getOtherSystemResultName(int idx);
2573  /* */
2574  std::string getOtherSystemResultValue(int idx);
2575  /* */
2576  std::string getOtherSystemResultDescription(int idx);
2577  /* */
2578  std::string getCurrentState();
2579  /* */
2580  int getCurrentJobCount();
2581  /* */
2582  int getTotalJobsSoFar();
2583  /* */
2584  std::string getTimeServiceStarted();
2585  /* */
2586  double getServiceUtilization();
2587  /* */
2589  /* */
2590  std::string getOtherServiceResultName(int idx);
2591  /* */
2592  std::string getOtherServiceResultValue(int idx);
2593  /* */
2594  std::string getOtherServiceResultDescription(int idx);
2595  /* */
2596  std::string getJobStatus();
2597  /* */
2598  std::string getJobSubmitTime();
2599  /* */
2600  std::string getScheduledStartTime();
2601  /* */
2602  std::string getActualStartTime();
2603  /* */
2604  std::string getJobEndTime();
2605 
2611  int getTimeNumber();
2612 
2619  double getTimeValue();
2620 
2621  /* */
2622  int getNumberOfTimes();
2623  /* */
2624  std::string getTimingInfoUnit(int idx);
2625  /* */
2626  std::string getTimingInfoType(int idx);
2627  /* */
2628  std::string getTimingInfoCategory(int idx);
2629  /* */
2630  std::string getTimingInfoDescription(int idx);
2631  /* */
2632  double getTimingInfoValue(int idx);
2633  /* */
2634  std::string getUsedDiskSpaceUnit();
2635  /* */
2636  std::string getUsedDiskSpaceDescription();
2637  /* */
2638  double getUsedDiskSpaceValue();
2639  /* */
2640  std::string getUsedMemoryUnit();
2641  /* */
2642  std::string getUsedMemoryDescription();
2643  /* */
2644  double getUsedMemoryValue();
2645  /* */
2646  std::string getUsedCPUSpeedUnit();
2647  /* */
2648  std::string getUsedCPUSpeedDescription();
2649  /* */
2650  double getUsedCPUSpeedValue();
2651  /* */
2652  std::string getUsedCPUNumberDescription();
2653  /* */
2654  int getUsedCPUNumberValue();
2655  /* */
2657  /* */
2658  std::string getOtherJobResultName(int idx);
2659  /* */
2660  std::string getOtherJobResultValue(int idx);
2661  /* */
2662  std::string getOtherJobResultDescription(int idx);
2663 
2669  int getVariableNumber();
2670 
2676  int getObjectiveNumber();
2677 
2683  int getConstraintNumber();
2684 
2690  int getSolutionNumber();
2691 
2692 
2702 
2712  std::string getSolutionStatusType(int solIdx);
2713 
2720  std::string getSolutionStatusDescription(int solIdx);
2721 
2722  /* */
2723  int getNumberOfSolutionSubstatuses(int solIdx);
2724  /* */
2725  std::string getSolutionSubstatusType(int solIdx, int substatusIdx);
2726  /* */
2727  std::string getSolutionSubstatusDescription(int solIdx, int substatusIdx);
2728  /* */
2729  int getSolutionTargetObjectiveIdx(int solIdx);
2730  /* */
2731  std::string getSolutionTargetObjectiveName(int solIdx);
2732 
2739  bool getSolutionWeightedObjectives(int solIdx);
2740 
2747  std::string getSolutionMessage(int solIdx);
2748 
2749  /* */
2750  int getNumberOfPrimalVariableValues(int solIdx);
2751  /* */
2752  int getNumberOfVarValues(int solIdx);
2753  /* */
2754  int getVarValueIdx(int solIdx, int varIdx);
2755  /* */
2756  std::string getVarValueName(int solIdx, int varIdx);
2757  /* */
2758  double getVarValue(int solIdx, int varIdx);
2759 
2766  std::vector<IndexValuePair*> getOptimalPrimalVariableValues(int solIdx);
2767 
2768  /* */
2769  int getNumberOfVarValuesString(int solIdx);
2770  /* */
2771  int getVarValueStringIdx(int solIdx, int varIdx);
2772  /* */
2773  std::string getVarValueStringName(int solIdx, int varIdx);
2774  /* */
2775  std::string getVarValueString(int solIdx, int varIdx);
2776 
2785  int getBasisStatusNumberOfEl(int solIdx, int object, int status);
2786 
2796  int getBasisStatusEl(int solIdx, int object, int status, int j);
2797 
2798 
2812  int getBasisInformationDense(int solIdx, int object, int* resultArray, int dim);
2813 
2819  int getNumberOfOtherVariableResults( int solIdx);
2820 
2826  int getAnOtherVariableResultNumberOfVar(int solIdx, int iOther);
2827 
2828  /* */
2829  std::string getOtherVariableResultName(int solIdx, int otherIdx);
2830  /* */
2831  std::string getOtherVariableResultType(int solIdx, int otherIdx);
2832  /* */
2833  std::string getOtherVariableResultValue(int solIdx, int otherIdx);
2834  /* */
2835  std::string getOtherVariableResultDescription(int solIdx, int otherIdx);
2836  /* */
2837  int getOtherVariableResultNumberOfVar(int solIdx, int otherIdx);
2838  /* */
2839  int getOtherVariableResultNumberOfEnumerations(int solIdx, int otherIdx);
2840  /* */
2841  int getOtherVariableResultVarIdx(int solIdx, int otherIdx, int varIdx);
2842  /* */
2843  std::string getOtherVariableResultVar(int solIdx, int otherIdx, int varIdx);
2844 
2852  std::string getOtherVariableResultArrayType(int solIdx,int otherIdx);
2853 
2861  std::string getOtherVariableResultEnumerationValue(int solIdx,int otherIdx, int enumIdx);
2862 
2870  std::string getOtherVariableResultEnumerationDescription(int solIdx,int otherIdx, int enumIdx);
2871 
2879  int getOtherVariableResultEnumerationNumberOfEl(int solIdx, int otherIdx, int enumIdx);
2880 
2889  int getOtherVariableResultEnumerationEl(int solIdx,int otherIdx, int enumIdx, int j);
2890 
2903  int getOtherVariableResultArrayDense(int solIdx, int otherIdx, std::string* resultArray, int dim);
2904 
2905 
2906  /* */
2907  int getNumberOfObjValues(int solIdx);
2908  /* */
2909  int getObjValueIdx(int solIdx, int objIdx);
2910  /* */
2911  std::string getObjValueName(int solIdx, int objIdx);
2912  /* */
2913  double getObjValue(int solIdx, int objIdx);
2914 
2922  double getOptimalObjValue(int objIdx, int solIdx);
2923 
2924  /* */
2925  int getNumberOfOtherObjectiveResults(int solIdx);
2926  /* */
2927  std::string getOtherObjectiveResultName(int solIdx, int otherIdx);
2928  /* */
2929  std::string getOtherObjectiveResultType(int solIdx, int otherIdx);
2930  /* */
2931  std::string getOtherObjectiveResultValue(int solIdx, int otherIdx);
2932  /* */
2933  std::string getOtherObjectiveResultDescription(int solIdx, int otherIdx);
2934  /* */
2935  int getOtherObjectiveResultNumberOfObj(int solIdx, int otherIdx);
2936  /* */
2937  int getOtherObjectiveResultNumberOfEnumerations(int solIdx, int otherIdx);
2938  /* */
2939  int getOtherObjectiveResultObjIdx(int solIdx, int otherIdx, int objIdx);
2940  /* */
2941  std::string getOtherObjectiveResultObj(int solIdx, int otherIdx, int objIdx);
2942 
2950  std::string getOtherObjectiveResultArrayType(int solIdx,int otherIdx);
2951 
2959  std::string getOtherObjectiveResultEnumerationValue(int solIdx,int otherIdx, int enumIdx);
2960 
2968  std::string getOtherObjectiveResultEnumerationDescription(int solIdx,int otherIdx, int enumIdx);
2969 
2977  int getOtherObjectiveResultEnumerationNumberOfEl(int solIdx,int otherIdx, int enumIdx);
2978 
2987  int getOtherObjectiveResultEnumerationEl(int solIdx,int otherIdx, int enumIdx, int j);
2988 
3001  int getOtherObjectiveResultArrayDense(int solIdx, int otherIdx, std::string* resultArray, int dim);
3002 
3003 
3004  /* */
3005  int getNumberOfDualValues(int solIdx);
3006  /* */
3007  int getDualValueIdx(int solIdx, int conIdx);
3008  /* */
3009  std::string getDualValueName(int solIdx, int objIdx);
3010  /* */
3011  double getDualValue(int solIdx, int conIdx);
3012 
3019  std::vector<IndexValuePair*> getOptimalDualVariableValues(int solIdx);
3020 
3021  /* */
3022  int getNumberOfOtherConstraintResults(int solIdx);
3023  /* */
3024  std::string getOtherConstraintResultName(int solIdx, int otherIdx);
3025  /* */
3026  std::string getOtherConstraintResultType(int solIdx, int otherIdx);
3027  /* */
3028  std::string getOtherConstraintResultValue(int solIdx, int otherIdx);
3029  /* */
3030  std::string getOtherConstraintResultDescription(int solIdx, int otherIdx);
3031  /* */
3032  int getOtherConstraintResultNumberOfCon(int solIdx, int otherIdx);
3033  /* */
3034  int getOtherConstraintResultNumberOfEnumerations(int solIdx, int otherIdx);
3035  /* */
3036  int getOtherConstraintResultConIdx(int solIdx, int otherIdx, int conIdx);
3037  /* */
3038  std::string getOtherConstraintResultCon(int solIdx, int otherIdx, int conIdx);
3039 
3040 
3048  std::string getOtherConstraintResultArrayType(int solIdx,int otherIdx);
3049 
3057  std::string getOtherConstraintResultEnumerationValue(int solIdx,int otherIdx, int enumIdx);
3058 
3066  std::string getOtherConstraintResultEnumerationDescription(int solIdx,int otherIdx, int enumIdx);
3067 
3075  int getOtherConstraintResultEnumerationNumberOfEl(int solIdx,int otherIdx, int enumIdx);
3076 
3085  int getOtherConstraintResultEnumerationEl(int solIdx,int otherIdx, int enumIdx, int j);
3086 
3099  int getOtherConstraintResultArrayDense(int solIdx, int otherIdx, std::string* resultArray, int dim);
3100 
3101 
3102 
3103  /* */
3104  int getNumberOfOtherSolutionResults(int solIdx);
3105  /* */
3106  std::string getOtherSolutionResultName(int solIdx, int otherIdx);
3107  /* */
3108  std::string getOtherSolutionResultValue(int solIdx, int otherIdx);
3109  /* */
3110  std::string getOtherSolutionResultCategory(int solIdx, int otherIdx);
3111  /* */
3112  std::string getOtherSolutionResultDescription(int solIdx, int otherIdx);
3113  /* */
3114  int getOtherSolutionResultNumberOfItems(int solIdx, int otherIdx);
3115  /* */
3116  std::string getOtherSolutionResultItem(int solIdx, int otherIdx, int itemIdx);
3117  /* */
3119  /* */
3120  std::string getSolverOutputName(int otherIdx);
3121  /* */
3122  std::string getSolverOutputCategory(int otherIdx);
3123  /* */
3124  std::string getSolverOutputDescription(int otherIdx);
3125  /* */
3126  int getSolverOutputNumberOfItems(int otherIdx);
3127  /* */
3128  std::string getSolverOutputItem(int otherIdx, int itemIdx);
3129 
3130  // set() methods
3131  //
3132 
3139  bool setGeneralStatus(GeneralStatus *status);
3140 
3148  bool setGeneralStatusType(std::string type);
3149 
3156  bool setNumberOfGeneralSubstatuses(int num);
3157 
3164  bool setGeneralStatusDescription(std::string description);
3165 
3173  bool setGeneralSubstatusName(int idx, std::string name);
3174 
3182  bool setGeneralSubstatusDescription(int idx, std::string description);
3183 
3190  bool setGeneralMessage(std::string message);
3191 
3198  bool setServiceName(std::string serviceName);
3199 
3206  bool setServiceURI(std::string serviceURI);
3207 
3214  bool setInstanceName(std::string instanceName);
3215 
3222  bool setJobID(std::string jobID);
3223 
3230  bool setSolverInvoked(std::string solverInvoked);
3231 
3238  bool setTimeStamp(std::string timeStamp);
3239 
3246  bool setNumberOfOtherGeneralResults(int num);
3247 
3255  bool setOtherGeneralResultName(int idx, std::string name);
3256 
3264  bool setOtherGeneralResultValue(int idx, std::string value);
3265 
3273  bool setOtherGeneralResultDescription(int idx, std::string description);
3274 
3281  bool setSystemInformation(std::string systemInformation);
3282 
3289  bool setAvailableDiskSpaceUnit(std::string unit);
3290 
3297  bool setAvailableDiskSpaceDescription(std::string description);
3298 
3305  bool setAvailableDiskSpaceValue(double value);
3306 
3313  bool setAvailableMemoryUnit(std::string unit);
3314 
3321  bool setAvailableMemoryDescription(std::string description);
3322 
3329  bool setAvailableMemoryValue(double value);
3330 
3337  bool setAvailableCPUSpeedUnit(std::string unit);
3338 
3345  bool setAvailableCPUSpeedDescription(std::string description);
3346 
3353  bool setAvailableCPUSpeedValue(double value);
3354 
3361  bool setAvailableCPUNumberDescription(std::string description);
3362 
3369  bool setAvailableCPUNumberValue(int value);
3370 
3377  bool setNumberOfOtherSystemResults(int num);
3378 
3386  bool setOtherSystemResultName(int idx, std::string name);
3387 
3395  bool setOtherSystemResultValue(int idx, std::string value);
3396 
3404  bool setOtherSystemResultDescription(int idx, std::string description);
3405 
3412  bool setCurrentState(std::string currentState);
3413 
3420  bool setCurrentJobCount(int jobCount);
3421 
3428  bool setTotalJobsSoFar(int number);
3429 
3436  bool setTimeServiceStarted(std::string startTime);
3437 
3445  bool setServiceUtilization(double value);
3446 
3447 
3454  bool setNumberOfOtherServiceResults(int num);
3455 
3463  bool setOtherServiceResultName(int idx, std::string name);
3464 
3472  bool setOtherServiceResultValue(int idx, std::string value);
3473 
3481  bool setOtherServiceResultDescription(int idx, std::string description);
3482 
3483 
3490  bool setJobStatus(std::string status);
3491 
3498  bool setJobSubmitTime(std::string submitTime);
3499 
3506  bool setScheduledStartTime(std::string scheduledStartTime);
3507 
3514  bool setActualStartTime(std::string actualStartTime);
3515 
3522  bool setJobEndTime(std::string endTime);
3523 
3524 
3531  bool setTime(double time);
3532 
3543  bool addTimingInformation(std::string type, std::string category,
3544  std::string unit, std::string description, double value);
3545 
3558  bool setTimingInformation(int idx, std::string type, std::string category,
3559  std::string unit, std::string description, double value);
3560 
3567  bool setNumberOfTimes(int numberOfTimes);
3568 
3575  bool setTimeNumber(int timeNumber);
3576 
3583  bool setUsedDiskSpaceUnit(std::string unit);
3584 
3591  bool setUsedDiskSpaceDescription(std::string description);
3592 
3599  bool setUsedDiskSpaceValue(double value);
3600 
3607  bool setUsedMemoryUnit(std::string unit);
3608 
3615  bool setUsedMemoryDescription(std::string description);
3616 
3623  bool setUsedMemoryValue(double value);
3624 
3631  bool setUsedCPUSpeedUnit(std::string unit);
3632 
3639  bool setUsedCPUSpeedDescription(std::string description);
3640 
3647  bool setUsedCPUSpeedValue(double value);
3648 
3655  bool setUsedCPUNumberDescription(std::string description);
3656 
3663  bool setUsedCPUNumberValue(int value);
3664 
3671  bool setNumberOfOtherJobResults(int num);
3672 
3680  bool setOtherJobResultName(int idx, std::string name);
3681 
3689  bool setOtherJobResultValue(int idx, std::string value);
3690 
3698  bool setOtherJobResultDescription(int idx, std::string description);
3699 
3700 
3707  bool setVariableNumber(int variableNumber);
3708 
3715  bool setObjectiveNumber(int objectiveNumber);
3716 
3723  bool setConstraintNumber(int constraintNumber);
3724 
3737  bool setSolutionNumber(int number);
3738 
3739 
3752  bool setSolutionStatus(int solIdx, std::string type, std::string description);
3753 
3761  bool setSolutionStatusType(int solIdx, std::string type);
3762 
3770  bool setNumberOfSolutionSubstatuses(int solIdx, int num);
3771 
3779  bool setSolutionStatusDescription(int solIdx, std::string description);
3780 
3789  bool setSolutionSubstatusType(int solIdx, int substatusIdx, std::string type);
3790 
3799  bool setSolutionSubstatusDescription(int solIdx, int substatusIdx, std::string description);
3800 
3801 
3814  bool setSolutionTargetObjectiveIdx(int solIdx, int objectiveIdx);
3815 
3827  bool setSolutionTargetObjectiveName(int solIdx, std::string objectiveName);
3828 
3838  bool setSolutionWeightedObjectives(int solIdx, bool weightedObjectives);
3839 
3851  bool setSolutionMessage(int solIdx, std::string msg);
3852 
3862  bool setNumberOfPrimalVariableValues(int solIdx, int n);
3863 
3874  bool setPrimalVariableValuesSparse(int solIdx, std::vector<IndexValuePair*> x);
3875 
3885  bool setPrimalVariableValuesDense(int solIdx, double *x);
3886 
3896  bool setNumberOfVarValues(int solIdx, int numberOfVar);
3897 
3910  bool setVarValue(int solIdx, int number, int idx, std::string name, double val);
3911 
3921  bool setNumberOfVarValuesString(int solIdx, int numberOfVar);
3922 
3935  bool setVarValueString(int solIdx, int number, int idx, std::string name, std::string str);
3936 
3937 
3953  bool setBasisStatus(int solIdx, int object, int status, int *i, int ni);
3954 
3971  bool setNumberOfOtherVariableResults(int solIdx, int numberOfOtherVariableResults);
3972 
3990  bool setAnOtherVariableResultSparse(int solIdx, int otherIdx, std::string name, std::string value, std::string description, int *idx, std::string *s, int n);
3991 
4015  bool setAnOtherVariableResultSparse(int solIdx, int otherIdx, std::string name, std::string value, std::string description, int *idx, std::string *s, int n, std::string type, std::string varType, std::string enumType);
4016 
4032  bool setAnOtherVariableResultDense(int solIdx, int otherIdx, std::string name, std::string value, std::string description, std::string *s);
4033 
4055  bool setAnOtherVariableResultDense(int solIdx, int otherIdx, std::string name, std::string value, std::string description, std::string *s, std::string type, std::string varType, std::string enumType);
4056 
4070  bool setOtherVariableResultNumberOfVar(int solIdx, int otherIdx, int numberOfVar);
4071 
4085  bool setOtherVariableResultNumberOfEnumerations(int solIdx, int otherIdx, int numberOfEnumerations);
4086 
4100  bool setOtherVariableResultName(int solIdx, int otherIdx, std::string name);
4101 
4115  bool setOtherVariableResultType(int solIdx, int otherIdx, std::string type);
4116 
4130  bool setOtherVariableResultVarType(int solIdx, int otherIdx, std::string varType);
4131 
4145  bool setOtherVariableResultEnumType(int solIdx, int otherIdx, std::string enumType);
4146 
4160  bool setOtherVariableResultValue(int solIdx, int otherIdx, std::string value);
4161 
4175  bool setOtherVariableResultDescription(int solIdx, int otherIdx, std::string description);
4176 
4191  bool setOtherVariableResultVarIdx(int solIdx, int otherIdx, int varIdx, int idx);
4192 
4207  bool setOtherVariableResultVarName(int solIdx, int otherIdx, int varIdx, std::string name);
4208 
4223  bool setOtherVariableResultVar(int solIdx, int otherIdx, int varIdx, std::string value);
4224 
4244  bool setOtherOptionEnumeration(int solIdx, int otherIdx, int object, int enumIdx, std::string value, std::string description, int *i, int ni);
4245 
4262  bool setNumberOfOtherObjectiveResults(int solIdx, int numberOfOtherObjectiveResults);
4263 
4273  bool setNumberOfObjValues(int solIdx, int numberOfObj);
4274 
4284  bool setNumberOfObjectiveValues(int solIdx, int n);
4285 
4286 
4302  bool setObjectiveValuesSparse(int solIdx, std::vector<IndexValuePair*> x);
4303 
4318  bool setObjectiveValuesDense(int solIdx, double *objectiveValues);
4319 
4332  bool setObjValue(int solIdx, int number, int idx, std::string name, double val);
4333 
4347  bool setOtherObjectiveResultNumberOfObj(int solIdx, int otherIdx, int numberOfObj);
4348 
4362  bool setOtherObjectiveResultNumberOfEnumerations(int solIdx, int otherIdx, int numberOfObj);
4363 
4377  bool setOtherObjectiveResultName(int solIdx, int otherIdx, std::string name);
4378 
4392  bool setOtherObjectiveResultType(int solIdx, int otherIdx, std::string type);
4393 
4407  bool setOtherObjectiveResultObjType(int solIdx, int otherIdx, std::string objType);
4408 
4422  bool setOtherObjectiveResultEnumType(int solIdx, int otherIdx, std::string enumType);
4423 
4437  bool setOtherObjectiveResultValue(int solIdx, int otherIdx, std::string value);
4438 
4453  bool setOtherObjectiveResultDescription(int solIdx, int otherIdx, std::string description);
4454 
4469  bool setOtherObjectiveResultObjIdx(int solIdx, int otherIdx, int objIdx, int idx);
4470 
4485  bool setOtherObjectiveResultObjName(int solIdx, int otherIdx, int objIdx, std::string name);
4486 
4501  bool setOtherObjectiveResultObj(int solIdx, int otherIdx, int objIdx, std::string value);
4502 
4519  bool setNumberOfOtherConstraintResults(int solIdx, int numberOfOtherConstraintResults);
4520 
4530  bool setNumberOfDualValues(int solIdx, int numberOfCon);
4531 
4532 
4542  bool setNumberOfDualVariableValues(int solIdx, int n);
4543 
4544 
4555  bool setDualVariableValuesSparse(int solIdx, std::vector<IndexValuePair*> x);
4556 
4557 
4566  bool setDualVariableValuesDense(int solIdx, double *y);
4567 
4577  bool setConstraintValuesDense(int solIdx, double *constraintValues);
4578 
4591  bool setDualValue(int solIdx, int number, int idx, std::string name, double val);
4592 
4606  bool setOtherConstraintResultNumberOfCon(int solIdx, int otherIdx, int numberOfCon);
4607 
4621  bool setOtherConstraintResultNumberOfEnumerations(int solIdx, int otherIdx, int numberOfCon);
4622 
4636  bool setOtherConstraintResultName(int solIdx, int otherIdx, std::string name);
4637 
4651  bool setOtherConstraintResultType(int solIdx, int otherIdx, std::string type);
4652 
4666  bool setOtherConstraintResultConType(int solIdx, int otherIdx, std::string conType);
4667 
4681  bool setOtherConstraintResultEnumType(int solIdx, int otherIdx, std::string enumType);
4682 
4696  bool setOtherConstraintResultValue(int solIdx, int otherIdx, std::string value);
4697 
4711  bool setOtherConstraintResultDescription(int solIdx, int otherIdx, std::string description);
4712 
4727  bool setOtherConstraintResultConIdx(int solIdx, int otherIdx, int conIdx, int idx);
4728 
4743  bool setOtherConstraintResultConName(int solIdx, int otherIdx, int conIdx, std::string name);
4744 
4759  bool setOtherConstraintResultCon(int solIdx, int otherIdx, int conIdx, std::string value);
4760 
4779  bool setNumberOfOtherSolutionResults(int solIdx, int numberOfOtherSolutionResults);
4780 
4790  bool setOtherSolutionResultName(int solIdx, int otherIdx, std::string name);
4791 
4802  bool setOtherSolutionResultValue(int solIdx, int otherIdx, std::string value);
4803 
4813  bool setOtherSolutionResultCategory(int solIdx, int otherIdx, std::string category);
4814 
4824  bool setOtherSolutionResultDescription(int solIdx, int otherIdx, std::string description);
4825 
4835  bool setOtherSolutionResultNumberOfItems(int solIdx, int otherIdx, int numberOfItems);
4836 
4847  bool setOtherSolutionResultItem(int solIdx, int otherIdx, int itemIdx, std::string item);
4848 
4861  bool setAnOtherSolutionResult(int solIdx, std::string name, std::string value, std::string category,
4862  std::string description, int numberOfItems, std::string* item);
4863 
4872  bool setNumberOfSolverOutputs(int numberOfSolverOutputs);
4873 
4881  bool setSolverOutputName(int otherIdx, std::string name);
4882 
4890  bool setSolverOutputCategory(int otherIdx, std::string category);
4891 
4899  bool setSolverOutputDescription(int otherIdx, std::string description);
4900 
4909  bool setSolverOutputNumberOfItems(int otherIdx, int numberOfItems);
4910 
4919  bool setSolverOutputItem(int otherIdx, int itemIdx, std::string item);
4920 
4921 
4922 };
4923 #endif
4924 
bool setOtherConstraintResultConName(int solIdx, int otherIdx, int conIdx, std::string name)
Set the name of another (non-standard/solver specific) constraint-related result, for the [i]th solut...
bool setOtherSystemResultName(int idx, std::string name)
Set the system otherResult name.
std::string enumType
type of the values in the enumeration array
Definition: OSResult.h:1798
bool setOtherGeneralResultValue(int idx, std::string value)
Set the general otherResult value.
int getUsedCPUNumberValue()
std::string getGeneralSubstatusName(int i)
Get the i_th general substatus name.
bool setDualVariableValuesDense(int solIdx, double *y)
Set the [i]th optimization solution's dual variable values, where i equals the given solution index...
TimeMeasurement()
Default constructor.
bool setSolverOutputName(int otherIdx, std::string name)
Set the name associated with the [j]th solver output.
std::string getOtherServiceResultName(int idx)
int getVarValueIdx(int solIdx, int varIdx)
OtherOptionEnumeration ** enumeration
Definition: OSResult.h:1795
The OtherVariableResult Class.
Definition: OSResult.h:1122
int getOtherVariableResultNumberOfEnumerations(int solIdx, int otherIdx)
CPUNumber * availableCPUNumber
a pointer to the CPUNumber class
Definition: OSResult.h:369
bool setOtherJobResultValue(int idx, std::string value)
Set the job otherResult value.
std::string getCurrentState()
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int currentJobCount
the number of jobs currently running
Definition: OSResult.h:422
int numberOfVar
the number of variables which have values for this particular type of result
Definition: OSResult.h:1129
bool setOtherObjectiveResultObjName(int solIdx, int otherIdx, int objIdx, std::string name)
Set the name of another (non-standard/solver specific) objective-related result, for the [i]th soluti...
int getOtherObjectiveResultNumberOfObj(int solIdx, int otherIdx)
int m_iVariableNumber
m_iVariableNumber holds the variable number.
Definition: OSResult.h:2378
std::string description
a brief description of the type of result
Definition: OSResult.h:2131
int getNumberOfOtherSystemResults()
The GeneralStatus Class.
Definition: OSResult.h:104
OptimizationResult()
Default constructor.
int getOtherConstraintResultEnumerationNumberOfEl(int solIdx, int otherIdx, int enumIdx)
Get the size of an enum associated with an result for some solution.
bool IsEqual(ObjValue *that)
A function to check for the equality of two objects.
std::string getAvailableCPUSpeedUnit()
bool setNumberOfVarValues(int solIdx, int numberOfVar)
Set the number of primal variables to be given a value.
bool IsEqual(OtherVarResult *that)
A function to check for the equality of two objects.
bool setUsedCPUSpeedUnit(std::string unit)
Set the unit in which used CPU speed is measured.
bool IsEqual(OptimizationResult *that)
A function to check for the equality of two objects.
ConstraintSolution()
Default constructor.
bool setObjectiveValuesDense(int solIdx, double *objectiveValues)
Set the [i]th optimization solution's objective values, where i equals the given solution index...
bool setSolverOutputDescription(int otherIdx, std::string description)
Set the description associated with the [j]th solver output.
bool setNumberOfSolverOutputs(int numberOfSolverOutputs)
Set the number of other solver outputs.
int getOtherObjectiveResultNumberOfEnumerations(int solIdx, int otherIdx)
bool setOtherJobResultDescription(int idx, std::string description)
Set the job otherResult description.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
GeneralStatus * getGeneralStatus()
Get the general status.
int getOtherConstraintResultNumberOfCon(int solIdx, int otherIdx)
std::string type
the type of status
Definition: OSResult.h:113
std::string getOtherObjectiveResultObj(int solIdx, int otherIdx, int objIdx)
bool IsEqual(GeneralStatus *that)
A function to check for the equality of two objects.
std::string getSolverInvoked()
Get the solver invoked.
int getOtherObjectiveResultArrayDense(int solIdx, int otherIdx, std::string *resultArray, int dim)
Get the values of an array or an associated with an result for some solut...
bool setSolutionStatus(int solIdx, std::string type, std::string description)
Set the [i]th optimization solution status, where i equals the given solution index.
ObjValue ** obj
obj is a pointer to an array of ObjValue objects that give an index and objective function value for ...
Definition: OSResult.h:1336
bool IsEqual(SolverOutput *that)
A function to check for the equality of two objects.
std::string getOtherConstraintResultName(int solIdx, int otherIdx)
bool setOtherConstraintResultEnumType(int solIdx, int otherIdx, std::string enumType)
Set the enumType of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string type
type of the result value (integer, double, boolean, string)
Definition: OSResult.h:1145
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setOtherGeneralResultName(int idx, std::string name)
Set the general otherResult name.
GeneralSubstatus()
Default constructor.
~OtherObjectiveResult()
Class destructor.
std::string enumType
type of the values in the enumeration array
Definition: OSResult.h:1166
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 soluti...
bool setOtherObjectiveResultObjType(int solIdx, int otherIdx, std::string objType)
Set the objType of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
VariableSolution()
Default constructor.
int numberOfVar
the number of variable values that are in the solution
Definition: OSResult.h:905
OtherResult()
Default constructor.
std::string getOtherConstraintResultArrayType(int solIdx, int otherIdx)
Get the type of values contained in the or array associated with an resul...
std::string conType
type of the values in the con array
Definition: OSResult.h:1789
The ObjectiveValues Class.
Definition: OSResult.h:1324
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(VariableSolution *that)
A function to check for the equality of two objects.
std::string getOtherObjectiveResultEnumerationValue(int solIdx, int otherIdx, int enumIdx)
Get the value of an enum associated with an result for some solution.
std::vector< IndexValuePair * > getOptimalPrimalVariableValues(int solIdx)
Get one solution of optimal primal variable values.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string getAvailableCPUSpeedDescription()
OtherVariableResult ** other
a pointer to an array of other pointer objects for variables
Definition: OSResult.h:1230
std::string getVarValueName(int solIdx, int varIdx)
The ObjectiveSolution Class.
Definition: OSResult.h:1523
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 solut...
std::string getGeneralMessage()
Get the general message.
the TimeSpan class.
Definition: OSGeneral.h:924
bool setNumberOfObjectiveValues(int solIdx, int n)
Set the [i]th optimization solution's number of objective values, where i equals the given solution i...
std::string serviceName
the serviceName is the name of the solver service that did the optimization
Definition: OSResult.h:285
std::string getTimingInfoType(int idx)
std::string getDualValueName(int solIdx, int objIdx)
OtherResult ** other
the array of other results
Definition: OSResult.h:224
int numberOfEnumerations
the number of distinct values for this particular type of result
Definition: OSResult.h:1447
bool setGeneralStatusDescription(std::string description)
Set the general status description.
OtherObjResult()
Default constructor.
~OtherSolutionResults()
Class destructor.
bool setScheduledStartTime(std::string scheduledStartTime)
Set the job's scheduled start time.
int getNumberOfGeneralSubstatuses()
Get the number of substatuses.
bool setNumberOfOtherSolutionResults(int solIdx, int numberOfOtherSolutionResults)
Set the [i]th optimization solution's other (non-standard/solver specific) solution-related results...
std::string getOtherSystemResultValue(int idx)
The OtherConResult Class.
Definition: OSResult.h:1695
The DualVarValue Class.
Definition: OSResult.h:1584
double getDualValue(int solIdx, int conIdx)
std::string value
value is a string that holds the value of the entity
Definition: OSResult.h:37
~OtherObjResult()
Class destructor.
bool setObjectiveNumber(int objectiveNumber)
Set the objective number.
int numberOfSubstatuses
the number of substatus objects
Definition: OSResult.h:795
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setOtherJobResultName(int idx, std::string name)
Set the job otherResult name.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setConstraintValuesDense(int solIdx, double *constraintValues)
Set the [i]th optimization solution's constraint values, where i equals the given solution index...
bool setActualStartTime(std::string actualStartTime)
Set the job's actual start time.
double getAvailableDiskSpaceValue()
bool setNumberOfDualValues(int solIdx, int numberOfCon)
Set the number of constraints to be given a value.
int getOtherObjectiveResultEnumerationNumberOfEl(int solIdx, int otherIdx, int enumIdx)
Get the size of an enum associated with an result for some solution.
The OptimizationSolutionStatus Class.
Definition: OSResult.h:790
std::string getUsedCPUSpeedUnit()
bool setOtherVariableResultVarType(int solIdx, int otherIdx, std::string varType)
Set the varType of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherVariableResultEnumType(int solIdx, int otherIdx, std::string enumType)
Set the enumType of another (non-standard/solver specific) variable-related result, for the [i]th solution, where i equals the given solution index.
bool setOtherVariableResultVarName(int solIdx, int otherIdx, int varIdx, std::string name)
Set the name of another (non-standard/solver specific) variable-related result, for the [i]th solutio...
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int getObjValueIdx(int solIdx, int objIdx)
double getOptimalObjValue(int objIdx, int solIdx)
Get one solution's optimal objective value.
int idx
idx is the index on a constraint
Definition: OSResult.h:1589
std::string currentState
a string describing the current state of the service
Definition: OSResult.h:419
the CPUNumber class.
Definition: OSGeneral.h:871
bool setJobEndTime(std::string endTime)
Set the time when the job finished.
~OtherConstraintResult()
Class destructor.
bool setJobSubmitTime(std::string submitTime)
Set the time when the job was submitted.
bool setTimeNumber(int timeNumber)
Set the number of time measurements.
bool setAvailableCPUNumberValue(int value)
Set the available number of CPUs.
bool setTimeStamp(std::string timeStamp)
Set time stamp.
bool setOtherSolutionResultValue(int solIdx, int otherIdx, std::string value)
Set the value associated with the [j]th other solution result of solution [i].
int getNumberOfOtherJobResults()
bool setDualValue(int solIdx, int number, int idx, std::string name, double val)
Set a dual value.
StorageCapacity * availableDiskSpace
a pointer to the DiskSpace class
Definition: OSResult.h:357
bool setOtherConstraintResultNumberOfCon(int solIdx, int otherIdx, int numberOfCon)
Set the number of children of another (non-standard/solver specific) constraint-related result...
OtherResults * otherResults
a pointer to the OtherResults class
Definition: OSResult.h:435
GeneralResult()
Default constructor.
std::string description
a brief description of the type of result
Definition: OSResult.h:1779
std::string getGeneralSubstatusDescription(int i)
Get the i_th general substatus description.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setOtherOptionEnumeration(int solIdx, int otherIdx, int 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 re...
GeneralResult * general
general holds the first child of the OSResult specified by the OSrL Schema.
Definition: OSResult.h:2325
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfCon
the number of constraints which have values for this particular type of result
Definition: OSResult.h:1760
bool setVariableNumber(int variableNumber)
Set the variable number.
OtherObjectiveResult()
Default constructor.
bool IsEqual(OtherVariableResult *that)
A function to check for the equality of two objects.
std::string getOtherConstraintResultEnumerationDescription(int solIdx, int otherIdx, int enumIdx)
Get the description of an enum associated with an result for some solution.
bool setSolutionSubstatusDescription(int solIdx, int substatusIdx, std::string description)
Set the solution substatus description.
~OtherResults()
Class destructor.
OtherSolutionResult ** otherSolutionResult
otherSolutionResult is a pointer to an array of OtherSolutionResult objects
Definition: OSResult.h:1984
~OtherVariableResult()
Class destructor.
std::string getOtherGeneralResultDescription(int idx)
bool addTimingInformation(std::string type, std::string category, std::string unit, std::string description, double value)
Add timing information.
BasisStatus * basisStatus
a pointer to a BasisStatus object
Definition: OSResult.h:1536
int getVarValueStringIdx(int solIdx, int varIdx)
OtherOptionEnumeration ** enumeration
Definition: OSResult.h:1163
std::string name
optional name
Definition: OSResult.h:962
bool setAvailableCPUSpeedUnit(std::string unit)
Set the unit in which available CPU speed is measured.
std::string description
a brief description of the type of result
Definition: OSResult.h:1461
std::string name
the name of the result the user is defining
Definition: OSResult.h:1768
~GeneralSubstatus()
Class destructor.
The SolverOutput Class.
Definition: OSResult.h:2118
std::string status
job status
Definition: OSResult.h:663
bool IsEqual(VariableValues *that)
A function to check for the equality of two objects.
brief an integer vector data structure used in OSOption and OSResult
Definition: OSGeneral.h:549
int getNumberOfVarValuesString(int solIdx)
bool setOtherConstraintResultType(int solIdx, int otherIdx, std::string type)
Set the type of another (non-standard/solver specific) constraint-related result, for the [i]th solut...
std::string getOtherJobResultName(int idx)
std::string getAvailableDiskSpaceDescription()
bool setTime(double time)
Set time.
~OtherConResult()
Class destructor.
bool setOtherSolutionResultName(int solIdx, int otherIdx, std::string name)
Set the name associated with the [j]th other solution result of solution [i].
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 solut...
int getNumberOfOtherConstraintResults(int solIdx)
double * m_mdDualValues
m_mdDualValues a vector of dual variables.
Definition: OSResult.h:2403
The DualVariableValues Class.
Definition: OSResult.h:1640
bool setGeneralSubstatusName(int idx, std::string name)
Set the general substatus name.
int getOtherVariableResultNumberOfVar(int solIdx, int otherIdx)
bool setOtherObjectiveResultNumberOfEnumerations(int solIdx, int otherIdx, int numberOfObj)
Set the number of children of another (non-standard/solver specific) objective-related ...
int getBasisStatusEl(int solIdx, int object, int status, int j)
Get an entry in the array of indices that belong to a particular basis status.
VarValue Class.
Definition: OSResult.h:845
bool setServiceUtilization(double value)
Set the service utilitzation.
The OtherConstraintResult Class.
Definition: OSResult.h:1753
double getServiceUtilization()
double getUsedDiskSpaceValue()
std::string name
optional name
Definition: OSResult.h:1703
std::string targetObjectiveName
an optional name of the objective function for which we are reporting solution information ...
Definition: OSResult.h:2044
CPUNumber * usedCPUNumber
a pointer to the CPUNumber class
Definition: OSResult.h:694
VarValue ** var
a vector of VarValue objects, there will be one for each variable in the solution ...
Definition: OSResult.h:910
bool setNumberOfOtherConstraintResults(int solIdx, int numberOfOtherConstraintResults)
Set the [i]th optimization solution's other (non-standard/solver specific) constraint-related results...
The GeneralSubstatus Class.
Definition: OSResult.h:53
std::string getOtherGeneralResultValue(int idx)
bool setNumberOfOtherGeneralResults(int num)
Set number of other general results.
bool IsEqual(GeneralResult *that)
A function to check for the equality of two objects.
std::string submitTime
time the job was submitted
Definition: OSResult.h:666
std::string getSolverOutputItem(int otherIdx, int itemIdx)
std::string getOtherVariableResultName(int solIdx, int otherIdx)
bool setSolverOutputItem(int otherIdx, int itemIdx, std::string item)
Set one item associated with the [j]th solver output.
ServiceResult * service
service holds the third child of the OSResult specified by the OSrL Schema.
Definition: OSResult.h:2335
OtherConstraintResult()
Default constructor.
std::string getOtherSolutionResultItem(int solIdx, int otherIdx, int itemIdx)
GeneralFileHeader * resultHeader
header information
Definition: OSResult.h:2320
StorageCapacity * availableMemory
a pointer to the MemorySize class
Definition: OSResult.h:361
double getUsedMemoryValue()
std::string timeStamp
a time stamp associated with the process
Definition: OSResult.h:302
std::vector< IndexValuePair * > dualVals
Definition: OSResult.h:2408
bool setSolutionSubstatusType(int solIdx, int substatusIdx, std::string type)
Set the solution substatus type.
std::string scheduledStartTime
the time when the job was supposed to start
Definition: OSResult.h:669
OtherVarResult Class.
Definition: OSResult.h:1063
std::string description
a description of the solution status type
Definition: OSResult.h:801
int getNumberOfSolverOutputs()
GeneralSubstatus ** substatus
the array of substatuses
Definition: OSResult.h:119
~ObjectiveValues()
Class destructor.
bool setSolutionNumber(int number)
set the number of solutions.
SolverOutput()
Default constructor.
std::string getSolutionMessage(int solIdx)
Get the [i]th optimization solution message, where i equals the given solution index.
The OtherObjResult Class.
Definition: OSResult.h:1379
std::string value
the value of the other result
Definition: OSResult.h:170
~VarValueString()
Class destructor.
bool setUsedCPUSpeedDescription(std::string description)
Set the description of used CPU speed.
~TimeMeasurement()
Class destructor.
bool setOtherServiceResultDescription(int idx, std::string description)
Set the service otherResult description.
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...
The TimeMeasurement Class.
Definition: OSResult.h:545
std::string description
the description of the other result
Definition: OSResult.h:173
std::string getObjValueName(int solIdx, int objIdx)
std::string getSolutionTargetObjectiveName(int solIdx)
OptimizationSolutionSubstatus()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setSolutionWeightedObjectives(int solIdx, bool weightedObjectives)
Record whether the [i]th optimization solution uses weighted objectives, where i equals the given sol...
VarValue()
Default constructor.
OtherObjectiveResult ** other
a pointer to an array of other pointer objects for objective functions
Definition: OSResult.h:1541
StorageCapacity * usedDiskSpace
a pointer to the DiskSpace class
Definition: OSResult.h:682
double getObjValue(int solIdx, int objIdx)
bool IsEqual(OtherResult *that)
A function to check for the equality of two objects.
double getTimingInfoValue(int idx)
std::string getOtherVariableResultValue(int solIdx, int otherIdx)
std::string name
the name of the result the user is defining
Definition: OSResult.h:1910
std::string description
the description of the status
Definition: OSResult.h:116
int numberOfObj
record the number of objective rows for which values are given
Definition: OSResult.h:1330
OtherVarResult ** var
Definition: OSResult.h:1154
bool setSolverInvoked(std::string solverInvoked)
Set solver invoked.
double value
value of dual variable on the constraint indexed by idx
Definition: OSResult.h:1597
std::string getAvailableMemoryUnit()
std::string getOtherVariableResultVar(int solIdx, int otherIdx, int varIdx)
bool setOtherSystemResultValue(int idx, std::string value)
Set the system otherResult value.
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 setUsedCPUNumberDescription(std::string description)
Set the description of used number of CPUs.
std::string getSolutionStatusDescription(int solIdx)
Get the [i]th optimization solution status description, where i equals the given solution index...
std::string getSolutionSubstatusType(int solIdx, int substatusIdx)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherVarResult()
Default constructor.
std::string getSystemInformation()
int idx
the index of a variable in the solution
Definition: OSResult.h:1068
BasisStatus * basisStatus
a pointer to a BasisStatus object
Definition: OSResult.h:1225
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfObjectives
numberOfObjectives is the number of objective functions reported in the solution. ...
Definition: OSResult.h:2254
bool IsEqual(ConstraintSolution *that)
A function to check for the equality of two objects.
int getOtherVariableResultVarIdx(int solIdx, int otherIdx, int varIdx)
OptimizationSolutionStatus * status
status is a pointer to an OptimizationSolutionStatus object associated with this optimization solutio...
Definition: OSResult.h:2052
std::string category
The category of time (total/input/preprocessing/optimization/postprocessing/output/other) ...
Definition: OSResult.h:557
int numberOfOtherVariableResults
the number of types of variable results other than the value of the variable
Definition: OSResult.h:1216
std::string category
this element allows a specific category to be associated with this particular type of result ...
Definition: OSResult.h:1918
std::string value
value is a value associated with the constraint indexed by idx, for example value might be the value ...
Definition: OSResult.h:1710
std::string description
a brief description of the type of result
Definition: OSResult.h:1921
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.
The OtherSolutionResults Class.
Definition: OSResult.h:1974
bool setNumberOfOtherVariableResults(int solIdx, int numberOfOtherVariableResults)
Set the [i]th optimization solution's other (non-standard/solver specific) variable-related results...
bool setUsedDiskSpaceUnit(std::string unit)
Set the unit in which used disk space is measured.
~GeneralStatus()
Class destructor.
std::string value
this element allows a specific value associated with this particular type of result ...
Definition: OSResult.h:1455
std::string getSolverOutputName(int otherIdx)
std::string * item
an array of items (string-valued)
Definition: OSResult.h:1929
std::string value
value is a value associated with an objective function indexed by idx
Definition: OSResult.h:1392
int getCurrentJobCount()
int getNumberOfTimes()
bool IsEqual(DualVarValue *that)
A function to check for the equality of two objects.
bool setSolutionStatusDescription(int solIdx, std::string description)
Set the [i]th optimization solution status description.
bool setOtherConstraintResultConType(int solIdx, int otherIdx, std::string conType)
Set the conType of another (non-standard/solver specific) constraint-related result, for the [i]th solution, where i equals the given solution index.
bool setUsedCPUSpeedValue(double value)
Set the used CPU speed.
std::string getOtherConstraintResultEnumerationValue(int solIdx, int otherIdx, int enumIdx)
Get the value of an enum associated with an result for some solution.
std::string timeServiceStarted
the time when the service was started
Definition: OSResult.h:428
bool setNumberOfDualVariableValues(int solIdx, int n)
Set the [i]th optimization solution's number of dual variable values, where i equals the given soluti...
bool setOtherServiceResultName(int idx, std::string name)
Set the service otherResult name.
std::string getSolutionSubstatusDescription(int solIdx, int substatusIdx)
int getOtherSolutionResultNumberOfItems(int solIdx, int otherIdx)
std::string getTimingInfoDescription(int idx)
bool setGeneralMessage(std::string message)
Set the general message.
bool setHeader(std::string name, std::string source, std::string fileCreator, std::string description, std::string licence)
A function to populate an instance of the result header element.
~OtherSolutionResult()
Class destructor.
OtherResults()
Default constructor.
SolverOutput ** solverOutput
solverOutput is a pointer to an array of SolverOutput objects
Definition: OSResult.h:2193
~OptimizationSolution()
Class destructor.
bool setAvailableDiskSpaceDescription(std::string description)
Set the description of available disk space.
bool setUsedDiskSpaceDescription(std::string description)
Set the description of used disk space.
a data structure that holds general information about files that conform to one of the OSxL schemas ...
Definition: OSGeneral.h:32
bool IsEqual(OtherObjectiveResult *that)
A function to check for the equality of two objects.
The OtherResults Class.
Definition: OSResult.h:215
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
GeneralStatus * generalStatus
a pointer to the GeneralStatus class
Definition: OSResult.h:271
std::string getOtherJobResultDescription(int idx)
std::string name
the name of the result the user is defining
Definition: OSResult.h:1137
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double value
the value of the objective indexed by idx
Definition: OSResult.h:1284
int getNumberOfOtherSolutionResults(int solIdx)
std::string getSolutionStatusType(int solIdx)
Get the [i]th optimization solution status type, where i equals the given solution index...
int getOtherConstraintResultArrayDense(int solIdx, int otherIdx, std::string *resultArray, int dim)
Get the values of a array or an associated with an result for some soluti...
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 soluti...
ServiceResult()
Default constructor.
bool setConstraintNumber(int constraintNumber)
Set the constraint number.
JobResult()
Default constructor.
bool IsEqual(OtherConstraintResult *that)
A function to check for the equality of two objects.
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.
std::string getOtherSolutionResultCategory(int solIdx, int otherIdx)
std::string getUsedCPUSpeedDescription()
OptimizationSolution ** solution
solution is an array of pointers to OptimizationSolution objects
Definition: OSResult.h:2264
std::string name
optional name
Definition: OSResult.h:1592
double serviceUtilization
service utilization
Definition: OSResult.h:431
VariableValues * values
a pointer to a VariableValues object
Definition: OSResult.h:1219
int getNumberOfOtherGeneralResults()
Get the number of other results in the element.
int numberOfSolverOutputs
the number of elements in the pointer of SolverOutput objects
Definition: OSResult.h:2189
bool IsEqual(OptimizationSolutionSubstatus *that)
A function to check for the equality of two objects.
~OtherResult()
Class destructor.
~OtherSolverOutput()
Class destructor.
std::string type
the type of the solution substatus
Definition: OSResult.h:746
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 solut...
int numberOfConstraints
numberOfConstrants is the number of constraint functions reported in the solution.
Definition: OSResult.h:2259
The OptimizationResult Class.
Definition: OSResult.h:2237
std::string name
the name of the result the user is defining
Definition: OSResult.h:2123
std::string value
Definition: OSResult.h:967
The JobResult Class.
Definition: OSResult.h:658
std::string getVarValueStringName(int solIdx, int varIdx)
~OptimizationSolutionStatus()
Class destructor.
bool setServiceURI(std::string serviceURI)
Set service uri.
BasisStatus * basisStatus
a pointer to a BasisStatus object
Definition: OSResult.h:1855
bool setOtherObjectiveResultEnumType(int solIdx, int otherIdx, std::string enumType)
Set the enumType of another (non-standard/solver specific) objective-related result, for the [i]th solution, where i equals the given solution index.
std::string getAvailableMemoryDescription()
bool IsEqual(OtherResults *that)
A function to check for the equality of two objects.
std::string getTimingInfoCategory(int idx)
std::string description
the description of the substatus
Definition: OSResult.h:62
std::string getOtherVariableResultType(int solIdx, int otherIdx)
~OptimizationSolutionSubstatus()
Class destructor.
The OtherObjectiveResult Class.
Definition: OSResult.h:1435
~SystemResult()
Class destructor.
std::string getOtherConstraintResultType(int solIdx, int otherIdx)
int numberOfItems
the number of items contained in this otherSolutionResult
Definition: OSResult.h:2135
The ObjValue Class.
Definition: OSResult.h:1273
JobResult * job
job holds the fourth child of the OSResult specified by the OSrL Schema.
Definition: OSResult.h:2340
~ObjValue()
Class destructor.
bool setJobStatus(std::string status)
Set the job status.
OtherConResult ** con
Definition: OSResult.h:1786
~OSResult()
Class destructor.
double getAvailableMemoryValue()
int numberOfEnumerations
the number of distinct values for this particular type of result
Definition: OSResult.h:1765
int totalJobsSoFar
total jobs processed so far
Definition: OSResult.h:425
std::string systemInformation
a string containing some basic system information
Definition: OSResult.h:353
bool setOtherVariableResultType(int solIdx, int otherIdx, std::string type)
Set the type of another (non-standard/solver specific) variable-related result, for the [i]th solutio...
int numberOfItems
the number of items contained in this otherSolutionResult
Definition: OSResult.h:1925
int m_iObjectiveNumber
m_iObjectiveNumber holds the objective number.
Definition: OSResult.h:2383
OptimizationSolutionSubstatus ** substatus
a pointer to an array of substatus objects
Definition: OSResult.h:804
VarValueString Class.
Definition: OSResult.h:954
int getNumberOfDualValues(int solIdx)
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.
The VariableValues Class.
Definition: OSResult.h:899
int idx
idx holds the index of a string-valued entity (such as a variable, constraint, objective) that is par...
Definition: OSResult.h:33
ObjectiveSolution * objectives
objectives holds the solution information for the objectives
Definition: OSResult.h:2065
bool getSolutionWeightedObjectives(int solIdx)
Get the [i]th optimization solution form of the objective.
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 setOtherConstraintResultNumberOfEnumerations(int solIdx, int otherIdx, int numberOfCon)
Set the number of children of another (non-standard/solver specific) constraint-related...
bool setNumberOfObjValues(int solIdx, int numberOfObj)
Set the number of objectives to be given a value.
int getAvailableCPUNumberValue()
std::string getOtherConstraintResultValue(int solIdx, int otherIdx)
TimeMeasurement ** time
An array of time measurements.
Definition: OSResult.h:617
std::string endTime
the time when the job finished
Definition: OSResult.h:675
bool IsEqual(VarValue *that)
A function to check for the equality of two objects.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string getTimeServiceStarted()
The VariableValuesString Class.
Definition: OSResult.h:1009
std::string getOtherSystemResultDescription(int idx)
bool setBasisStatus(int solIdx, int object, int status, int *i, int ni)
Set the basis status of a number of variables/constraints/objectives.
int getSolutionNumber()
get the number of solutions.
bool IsEqual(VariableValuesString *that)
A function to check for the equality of two objects.
int numberOfTimes
The number of elements in the time array.
Definition: OSResult.h:611
bool weightedObjectives
a marker to track whether the objectives are weighted
Definition: OSResult.h:2047
OtherConstraintResult ** other
a pointer to an array of other pointer objects for constraint functions
Definition: OSResult.h:1860
bool setOtherServiceResultValue(int idx, std::string value)
Set the service otherResult value.
int getNumberOfPrimalVariableValues(int solIdx)
int getBasisStatusNumberOfEl(int solIdx, int object, int status)
Get the number of indices that belong to a particular basis status.
int getDualValueIdx(int solIdx, int conIdx)
The OtherSolutionResult Class.
Definition: OSResult.h:1905
std::string getJobSubmitTime()
bool setNumberOfPrimalVariableValues(int solIdx, int n)
Set the [i]th optimization solution's number of primal variable values, where i equals the given solu...
ObjectiveValues()
Default constructor.
std::string getOtherSolutionResultValue(int solIdx, int otherIdx)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string serviceURI
the serviceURI is the URI of the solver service that did the optimization
Definition: OSResult.h:280
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int getNumberOfObjValues(int solIdx)
OtherResults * otherResults
a pointer to the OtherResults class
Definition: OSResult.h:698
bool setAnOtherSolutionResult(int solIdx, std::string name, std::string value, std::string category, std::string description, int numberOfItems, std::string *item)
Set another solution result of solution [i].
The TimingInformation Class.
Definition: OSResult.h:603
DualVarValue()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string value
this element allows a specific value associated with this particular type of result ...
Definition: OSResult.h:1142
std::string getOtherObjectiveResultValue(int solIdx, int otherIdx)
int numberOfOtherSolutionResults
the number of elements in the pointer of OtherSolutionResult objects
Definition: OSResult.h:1979
std::string getUsedMemoryUnit()
std::string getJobEndTime()
int idx
idx is the index on the constraint
Definition: OSResult.h:1700
OtherSolutionResults * otherSolutionResults
otherSolutionResults is a pointer to an OtherSolutionResults object that is associated with this opti...
Definition: OSResult.h:2075
The OtherSolverOutput Class.
Definition: OSResult.h:2183
ObjectiveSolution()
Default constructor.
~JobResult()
Class destructor.
bool IsEqual(OtherSolverOutput *that)
A function to check for the equality of two objects.
bool setObjValue(int solIdx, int number, int idx, std::string name, double val)
Set an objective value.
DualVariableValues()
Default constructor.
bool IsEqual(ObjectiveSolution *that)
A function to check for the equality of two objects.
int numberOfVar
the number of string-valued variable values that are in the solution
Definition: OSResult.h:1015
int numberOfOtherResults
the number of other results
Definition: OSResult.h:221
std::string getServiceName()
Get service name.
VariableValues()
Default constructor.
std::string jobID
the jobID is the ID associated with the solution of this instance
Definition: OSResult.h:294
bool setSolutionStatusType(int solIdx, std::string type)
Set the [i]th optimization solution status type.
std::string getJobStatus()
SystemResult * system
system holds the second child of the OSResult specified by the OSrL Schema.
Definition: OSResult.h:2330
std::string description
a description of the solution substatus
Definition: OSResult.h:749
std::string getOtherSolutionResultDescription(int solIdx, int otherIdx)
std::string name
optional name
Definition: OSResult.h:853
OtherOptionEnumeration ** enumeration
Definition: OSResult.h:1476
OtherVariableResult()
Default constructor.
bool setInstanceName(std::string instanceName)
Set instance name.
bool setSolutionMessage(int solIdx, std::string msg)
Set the [i]th optimization solution's message, where i equals the given solution index.
std::string getOtherVariableResultArrayType(int solIdx, int otherIdx)
Get the type of values contained in the or array associated with an result for...
~SolverOutput()
Class destructor.
bool setAvailableDiskSpaceUnit(std::string unit)
Set the unit in which available disk space is measured.
std::string getUsedDiskSpaceDescription()
~ServiceResult()
Class destructor.
~VariableSolution()
Class destructor.
~ObjectiveSolution()
Class destructor.
The SystemResult Class.
Definition: OSResult.h:348
int getOtherObjectiveResultObjIdx(int solIdx, int otherIdx, int objIdx)
bool IsEqual(JobResult *that)
A function to check for the equality of two objects.
double * m_mdPrimalValues
m_mdPrimalValues a vector of primal variables.
Definition: OSResult.h:2398
int idx
idx is the index on an objective function
Definition: OSResult.h:1278
int getOtherConstraintResultEnumerationEl(int solIdx, int otherIdx, int enumIdx, int j)
Get one index of an enum associated with an result for some solution.
bool setNumberOfSolutionSubstatuses(int solIdx, int num)
Set the [i]th optimization solution's number of substatus elements.
bool setOtherVariableResultNumberOfEnumerations(int solIdx, int otherIdx, int numberOfEnumerations)
Set the number of children of another (non-standard/solver specific) variable-related r...
~DualVarValue()
Class destructor.
std::string getServiceURI()
Get service uri.
std::string getAvailableCPUNumberDescription()
bool setOtherSolutionResultCategory(int solIdx, int otherIdx, std::string category)
Set the category associated with the [j]th other solution result of solution [i]. ...
bool setAvailableCPUNumberDescription(std::string description)
Set the description of available number of CPUs.
std::string getTimingInfoUnit(int idx)
std::string getGeneralStatusDescription()
Get the general status description.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherResults * otherResults
a pointer to the OtherResults class
Definition: OSResult.h:306
bool setSystemInformation(std::string systemInformation)
Set the system information.
bool setAvailableMemoryValue(double value)
Set the amount of available memory.
OptimizationSolution()
Default constructor.
GeneralStatus()
Default constructor.
bool IsEqual(OtherSolutionResults *that)
A function to check for the equality of two objects.
std::string getOtherObjectiveResultType(int solIdx, int otherIdx)
std::string getUsedDiskSpaceUnit()
int getOtherConstraintResultConIdx(int solIdx, int otherIdx, int conIdx)
The GeneralResult Class.
Definition: OSResult.h:265
bool IsEqual(OtherSolutionResult *that)
A function to check for the equality of two objects.
int getNumberOfOtherVariableResults(int solIdx)
Get numberOfOtherVariableResult.
std::string message
any general message associated with the optimization
Definition: OSResult.h:275
A commonly used structure holding an index-string pair This definition is based on the definition of ...
Definition: OSResult.h:28
std::string varType
type of the values in the var array
Definition: OSResult.h:1157
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string type
type of the result value (integer, double, boolean, string)
Definition: OSResult.h:1458
The OptimizationSolution Class.
Definition: OSResult.h:2032
int getVariableNumber()
Get variable number.
OptimizationResult * optimization
optimization holds the fifth child of the OSResult specified by the OSrL Schema.
Definition: OSResult.h:2345
bool setUsedMemoryValue(double value)
Set the amount of used memory.
int getObjectiveNumber()
Get objective number.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
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].
DualVarValue ** con
con is a vector of DualVarValue objects that give an index and dual variable value for each constrain...
Definition: OSResult.h:1652
int getOtherVariableResultEnumerationEl(int solIdx, int otherIdx, int enumIdx, int j)
Get one index of an enum associated with an result for some solution.
bool setAvailableCPUSpeedDescription(std::string description)
Set the description of available CPU speed.
bool setNumberOfGeneralSubstatuses(int num)
Set the number of substatus elements.
std::string getScheduledStartTime()
std::string getUsedCPUNumberDescription()
std::string value
the value associated with the result the user is defining
Definition: OSResult.h:1913
double getUsedCPUSpeedValue()
int getConstraintNumber()
Get constraint number.
bool setAvailableDiskSpaceValue(double value)
Set the amount of available disk space.
int getSolutionTargetObjectiveIdx(int solIdx)
The ConstraintSolution Class.
Definition: OSResult.h:1841
bool setSolutionTargetObjectiveIdx(int solIdx, int objectiveIdx)
Set the [i]th optimization solution's objective index, where i equals the given solution index...
std::string getOtherServiceResultValue(int idx)
std::string getOtherVariableResultEnumerationDescription(int solIdx, int otherIdx, int enumIdx)
Get the description of an enum associated with an result for some solution.
std::string getOtherSolutionResultName(int solIdx, int otherIdx)
std::string description
Further description on the timer used.
Definition: OSResult.h:562
VarValueString()
Default constructor.
StorageCapacity * usedMemory
a pointer to the MemorySize class
Definition: OSResult.h:686
std::string objType
type of the values in the obj array
Definition: OSResult.h:1470
bool setOtherSolutionResultDescription(int solIdx, int otherIdx, std::string description)
Set the description associated with the [j]th other solution result of solution [i].
bool setGeneralSubstatusDescription(int idx, std::string description)
Set the general substatus description.
std::string getOtherConstraintResultCon(int solIdx, int otherIdx, int conIdx)
std::string enumType
type of the values in the enumeration array
Definition: OSResult.h:1479
TimingInformation * timingInformation
a pointer to the TimingInformation class
Definition: OSResult.h:678
std::string value
value holds a general value associated with a variable, for example, rather than the value of a varia...
Definition: OSResult.h:1079
std::string message
a message associated with this solution
Definition: OSResult.h:2055
std::string description
a brief description of the type of result
Definition: OSResult.h:1148
int numberOfOtherObjectiveResults
the number of types of objective function results other than the basic objective function values ...
Definition: OSResult.h:1530
std::string name
optional name
Definition: OSResult.h:1071
std::string getOtherObjectiveResultDescription(int solIdx, int otherIdx)
std::string getOtherSystemResultName(int idx)
std::string getOtherObjectiveResultArrayType(int solIdx, int otherIdx)
Get the type of values contained in the or array associated with an resul...
bool IsEqual(SystemResult *that)
A function to check for the equality of two objects.
std::string name
the name of the substatus
Definition: OSResult.h:59
bool setObjectiveValuesSparse(int solIdx, std::vector< IndexValuePair * > x)
Set the [i]th optimization solution's objective values, where i equals the given solution index...
a data structure to represent an LP basis on both input and output
Definition: OSGeneral.h:645
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 solutio...
ConstraintSolution * constraints
constraints holds the solution information for the constraints
Definition: OSResult.h:2070
bool setUsedDiskSpaceValue(double value)
Set the amount of used disk space.
The ServiceResult Class.
Definition: OSResult.h:414
std::string getTimeStamp()
Get the time stamp.
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 IsEqual(VarValueString *that)
A function to check for the equality of two objects.
OtherResults * otherResults
a pointer to the OtherResults class
Definition: OSResult.h:373
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setSolverOutputCategory(int otherIdx, std::string category)
Set the category associated with the [j]th solver output.
bool setCurrentJobCount(int jobCount)
Set the current job count.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setServiceName(std::string serviceName)
Set service name.
bool IsEqual(ServiceResult *that)
A function to check for the equality of two objects.
~TimingInformation()
Class destructor.
bool setOtherSystemResultDescription(int idx, std::string description)
Set the system otherResult description.
bool setAvailableCPUSpeedValue(double value)
Set the available CPU speed.
std::string name
optional name
Definition: OSResult.h:1387
bool setNumberOfOtherObjectiveResults(int solIdx, int numberOfOtherObjectiveResults)
Set the [i]th optimization solution's other (non-standard/solver specific) objective-related results...
std::string getOtherVariableResultEnumerationValue(int solIdx, int otherIdx, int enumIdx)
Get the value of an enum associated with an result for some solution.
bool setGeneralStatus(GeneralStatus *status)
Set the general status.
double getTimeValue()
Get the time measurement.
bool setTimeServiceStarted(std::string startTime)
Set the time the service was started.
int idx
idx is the index on variable in the solution
Definition: OSResult.h:959
bool IsEqual(OptimizationSolutionStatus *that)
A function to check for the equality of two objects.
The OtherResult Class.
Definition: OSResult.h:161
bool setOtherVariableResultNumberOfVar(int solIdx, int otherIdx, int numberOfVar)
Set the number of children of another (non-standard/solver specific) variable-related result...
int getTimeNumber()
Get the number of time measurements.
std::string type
The type of timer used (cpuTime/elapsedTime/other)
Definition: OSResult.h:552
int getNumberOfOtherServiceResults()
ObjectiveValues * values
a pointer to an array of ObjectiveValues objects
Definition: OSResult.h:1533
int numberOfObj
the number of objectives which have values for this particular type of result
Definition: OSResult.h:1442
std::string instanceName
the name of the instance that was solved
Definition: OSResult.h:289
bool setNumberOfOtherServiceResults(int num)
Set number of other service results.
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...
TimingInformation()
Default constructor.
~DualVariableValues()
Class destructor.
SystemResult()
Default constructor.
int getNumberOfOtherObjectiveResults(int solIdx)
bool setSolutionTargetObjectiveName(int solIdx, std::string objectiveName)
Set the [i]th optimization solution's objective name, where i equals the given solution index...
int getAnOtherVariableResultNumberOfVar(int solIdx, int iOther)
Get getAnOtherVariableResultNumberOfVar.
OtherObjResult ** obj
Definition: OSResult.h:1467
bool setUsedCPUNumberValue(int value)
Set the used number of CPUs.
bool setOtherSolutionResultNumberOfItems(int solIdx, int otherIdx, int numberOfItems)
Set the number of items associated with the [j]th other solution result of solution [i]...
int numberOfOtherConstraintResults
the number of types of constraint function results other than the basic constraint function values ...
Definition: OSResult.h:1849
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfSubstatuses
the number of substatuses
Definition: OSResult.h:110
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int getNumberOfSolutionSubstatuses(int solIdx)
CPUSpeed * availableCPUSpeed
a pointer to the CPUSpeed class
Definition: OSResult.h:365
std::string getJobID()
Get the job id.
bool setNumberOfOtherJobResults(int num)
Set number of other job results.
bool setTotalJobsSoFar(int number)
Set the total number of jobs so far.
double getAvailableCPUSpeedValue()
~VarValue()
Class destructor.
std::string solverInvoked
the name of the solver used
Definition: OSResult.h:298
std::string getOtherGeneralResultName(int idx)
Get the name of the i-th other result in the element.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setAvailableMemoryDescription(std::string description)
Set the description of available memory.
int getOtherConstraintResultNumberOfEnumerations(int solIdx, int otherIdx)
bool setSolverOutputNumberOfItems(int otherIdx, int numberOfItems)
Set the number of items associated with the [j]th solver output.
bool setAvailableMemoryUnit(std::string unit)
Set the unit in which available memory is measured.
int numberOfSolutions
numberOfSolutions is the number of objective functions reported.
Definition: OSResult.h:2244
int m_iNumberOfOtherVariableResults
m_iNumberOfOtherVariableResults holds the number of OtherVariableResult objects.
Definition: OSResult.h:2393
int getSolverOutputNumberOfItems(int otherIdx)
bool setVarValueString(int solIdx, int number, int idx, std::string name, std::string str)
Set a string-valued primal variable value.
std::string actualStartTime
the time when the job actually started
Definition: OSResult.h:672
OtherSolutionResult()
Default constructor.
VarValueString ** var
a vector of VarValueString objects, there will be one for each variable in the solution ...
Definition: OSResult.h:1020
std::string type
the type of solution status
Definition: OSResult.h:798
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(TimingInformation *that)
A function to check for the equality of two objects.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(TimeMeasurement *that)
A function to check for the equality of two objects.
std::vector< IndexValuePair * > primalVals
Definition: OSResult.h:2406
ObjValue()
Default constructor.
OptimizationSolutionStatus * getSolutionStatus(int solIdx)
Get the [i]th optimization solution status, where i equals the given solution index.
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 solut...
bool setNumberOfTimes(int numberOfTimes)
Set the number of time measurements and initial the time array.
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 soluti...
int numberOfCon
record the number of constraints for which values are given
Definition: OSResult.h:1646
std::string name
optional name
Definition: OSResult.h:1281
double value
Definition: OSResult.h:858
std::string getOtherConstraintResultDescription(int solIdx, int otherIdx)
std::string getSolverOutputDescription(int otherIdx)
std::string getVarValueString(int solIdx, int varIdx)
int idx
idx is the index on variable in the solution
Definition: OSResult.h:850
OtherConResult()
Default constructor.
std::string getOtherObjectiveResultName(int solIdx, int otherIdx)
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 soluti...
int getOtherObjectiveResultEnumerationEl(int solIdx, int otherIdx, int enumIdx, int j)
Get one index of an enum associated with an result for some solution.
DualVariableValues * dualValues
a pointer to an array of DualVariableValues objects
Definition: OSResult.h:1852
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 setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setJobID(std::string jobID)
Set job id.
~OptimizationResult()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
the CPUSpeed class.
Definition: OSGeneral.h:812
bool IsEqual(ObjectiveValues *that)
A function to check for the equality of two objects.
int idx
idx is the index on a objective function
Definition: OSResult.h:1384
~VariableValues()
Class destructor.
std::string name
the name of the other result
Definition: OSResult.h:167
int getNumberOfVarValues(int solIdx)
int getOtherVariableResultEnumerationNumberOfEl(int solIdx, int otherIdx, int enumIdx)
Get the size of an enum associated with an result for some solution.
bool setVarValue(int solIdx, int number, int idx, std::string name, double val)
Set a primal variable value.
VariableValuesString()
Default constructor.
int getTotalJobsSoFar()
std::vector< IndexValuePair * > getOptimalDualVariableValues(int solIdx)
Get one solution of optimal dual variable values.
OSResult()
Default constructor.
the StorageCapacity class.
Definition: OSGeneral.h:754
int getBasisInformationDense(int solIdx, int object, int *resultArray, int dim)
Get the basis information associated with the variables, objectives or constraints for some solution...
std::string value
this element allows a specific value associated with this particular type of result ...
Definition: OSResult.h:1773
~ConstraintSolution()
Class destructor.
int getOtherVariableResultArrayDense(int solIdx, int otherIdx, std::string *resultArray, int dim)
Get the values of a array or an associated with an result for some solution...
~VariableValuesString()
Class destructor.
std::string getOtherVariableResultDescription(int solIdx, int otherIdx)
OtherSolutionResults()
Default constructor.
int numberOfEnumerations
the number of distinct values for this particular type of result
Definition: OSResult.h:1134
int targetObjectiveIdx
the index of the objective function for which we are reporting solution information ...
Definition: OSResult.h:2039
bool IsEqual(OtherConResult *that)
A function to check for the equality of two objects.
double getVarValue(int solIdx, int varIdx)
std::string type
type of the result value (integer, double, boolean, string)
Definition: OSResult.h:1776
std::string category
this element allows a specific category to be associated with this particular type of result ...
Definition: OSResult.h:2128
bool IsEqual(OSResult *that)
A function to check for the equality of two objects.
std::string getOtherObjectiveResultEnumerationDescription(int solIdx, int otherIdx, int enumIdx)
Get the description of an enum associated with an result for some solution.
std::string getInstanceName()
Get instance name.
bool IsEqual(DualVariableValues *that)
A function to check for the equality of two objects.
bool setOtherGeneralResultDescription(int idx, std::string description)
Set the general otherResult description.
bool setOtherObjectiveResultNumberOfObj(int solIdx, int otherIdx, int numberOfObj)
Set the number of children of another (non-standard/solver specific) objective-related result...
bool setPrimalVariableValuesDense(int solIdx, double *x)
Set the [i]th optimization solution's primal variable values, where i equals the given solution index...
std::string * item
an array of items (string-valued)
Definition: OSResult.h:2139
bool setNumberOfVarValuesString(int solIdx, int numberOfVar)
Set the number of string-valued primal variables to be given a value.
std::string getActualStartTime()
bool IsEqual(OptimizationSolution *that)
A function to check for the equality of two objects.
bool setCurrentState(std::string currentState)
Set the current state of the service.
bool IsEqual(GeneralSubstatus *that)
A function to check for the equality of two objects.
CPUSpeed * usedCPUSpeed
a pointer to the CPUSpeed class
Definition: OSResult.h:690
std::string getOtherServiceResultDescription(int idx)
std::string getGeneralStatusType()
Get the general status type, which can be: success, error, warning.
bool setUsedMemoryUnit(std::string unit)
Set the unit in which used memory is measured.
VariableSolution * variables
variables holds the solution information for the variables
Definition: OSResult.h:2060
int numberOfVariables
numberOfVariables is the number of variables reported in the solution.
Definition: OSResult.h:2249
~GeneralResult()
Class destructor.
~OtherVarResult()
Class destructor.
bool IsEqual(OtherObjResult *that)
A function to check for the equality of two objects.
bool setGeneralStatusType(std::string type)
Set the general status type, which can be: success, error, warning.
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.
OptimizationSolutionStatus()
Default constructor.
bool setOtherObjectiveResultType(int solIdx, int otherIdx, std::string type)
Set the type of another (non-standard/solver specific) objective-related result, for the [i]th soluti...
The OptimizationSolutionSubstatus Class.
Definition: OSResult.h:741
std::string getAvailableDiskSpaceUnit()
bool setUsedMemoryDescription(std::string description)
Set the description of used memory.
OtherSolverOutput * otherSolverOutput
otherSolverOutput is a pointer to an OtherSolverOutput object
Definition: OSResult.h:2269
std::string getOtherJobResultValue(int idx)
VariableValuesString * valuesString
a pointer to a VariableValuesString object
Definition: OSResult.h:1222
int m_iConstraintNumber
m_iConstraintNumber holds the constraint number.
Definition: OSResult.h:2388
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
The VariableSolution Class.
Definition: OSResult.h:1209
bool setNumberOfOtherSystemResults(int num)
Set number of other system results.
std::string getUsedMemoryDescription()
The Result Class.
Definition: OSResult.h:2312
std::string name
the name of the result the user is defining
Definition: OSResult.h:1450
OtherSolverOutput()
Default constructor.
bool setTimingInformation(int idx, std::string type, std::string category, std::string unit, std::string description, double value)
Set timing information.
std::string getSolverOutputCategory(int otherIdx)