My Project
OSOption.h
Go to the documentation of this file.
1/* $Id$ */
15#ifndef OSOPTION_H
16#define OSOPTION_H
17
18#include <string>
19#include <vector>
20#include "OSGeneral.h"
21#include "OSMathUtil.h"
22
23
24
25//#define DEBUG
26
27
40{
41
42public:
44 std::string locationType;
45
47 std::string value;
48
54
60
66
74 bool setRandom(double density, bool conformant);
75
82}; //InstanceLocationOption
83
84
97{
98
99public:
101 std::string transportType;
102
104 std::string value;
105
116
121 bool IsEqual(ContactOption *that);
122
130 bool setRandom(double density, bool conformant);
131
137 bool deepCopyFrom(ContactOption *that);
138}; //ContactOption
139
140
153{
154
155public:
157 std::string name;
158
160 std::string value;
161
163 std::string description;
164
169 OtherOption();
174 ~OtherOption();
175
180 bool IsEqual(OtherOption *that);
181
189 bool setRandom(double density, bool conformant);
190
196 bool deepCopyFrom(OtherOption *that);
197}; //OtherOption
198
199
212{
213
214public:
217
220
225 OtherOptions();
231
236 bool IsEqual(OtherOptions *that);
237
245 bool setRandom(double density, bool conformant);
246
252 bool deepCopyFrom(OtherOptions *that);
253
260 bool setOther(int numberOfOptions, OtherOption** other);
261
269 bool addOther(std::string name, std::string value, std::string description);
270}; //OtherOptions
271
272
285{
286
287public:
288
290 std::string serviceURI;
291
293 std::string serviceName;
294
296 std::string instanceName;
297
300
302 std::string jobID;
303
305 std::string solverToInvoke;
306
308 std::string license;
309
311 std::string userName;
312
314 std::string password;
315
318
321
332
337 bool IsEqual(GeneralOption *that);
338
346 bool setRandom(double density, bool conformant);
347
353 bool deepCopyFrom(GeneralOption *that);
354};//GeneralOption
355
370{
371
372public:
374 std::string unit;
375
377 std::string description;
378
380 double value;
381
382
387 MinDiskSpace();
393
398 bool IsEqual(MinDiskSpace *that);
399}; //MinDiskSpace
400
415{
416
417public:
419 std::string unit;
420
422 std::string description;
423
425 double value;
426
427
438
443 bool IsEqual(MinMemorySize *that);
444}; //MinMemorySize
445
460{
461
462public:
464 std::string unit;
465
467 std::string description;
468
470 double value;
471
472
477 MinCPUSpeed();
482 ~MinCPUSpeed();
483
488 bool IsEqual(MinCPUSpeed *that);
489}; //MinCPUSpeed
490
505{
506
507public:
509 std::string description;
510
512 int value;
513
514
519 MinCPUNumber();
525
530 bool IsEqual(MinCPUNumber *that);
531}; //MinCPUNumber
532
533
546{
547
548public:
551
554
557
560
563
568 SystemOption();
574
579 bool IsEqual(SystemOption *that);
580
588 bool setRandom(double density, bool conformant);
589
595 bool deepCopyFrom(SystemOption *that);
596}; //SystemOption
597
598
611{
612
613public:
615 std::string type;
616
619
630
635 bool IsEqual(ServiceOption *that);
636
644 bool setRandom(double density, bool conformant);
645
651 bool deepCopyFrom(ServiceOption *that);
652}; //ServiceOption
653
654
669{
670
671public:
673 std::string unit;
674
676 double value;
677
678
689
694 bool IsEqual(MaxTime *that);
695}; //MaxTime
696
697
710{
711
712public:
715
717 std::string *jobID;
718
729
734 bool IsEqual(JobDependencies *that);
735
743 bool setRandom(double density, bool conformant);
744
750 bool deepCopyFrom(JobDependencies *that);
751
758 bool setJobID(int numberOfJobIDs, std::string *jobID);
759
765 bool addJobID(std::string jobID);
766}; //JobDependencies
767
768
781{
782
783public:
786
788 std::string *path;
789
800
805 bool IsEqual(DirectoriesAndFiles *that);
806
814 bool setRandom(double density, bool conformant);
815
822
829 bool setPath(int numberOfPaths, std::string *path);
835 bool addPath(std::string path);
836}; //DirectoriesAndFiles
837
838
839
852{
853
854public:
856 std::string from;
857
859 std::string to;
860
863
868 PathPair();
873 ~PathPair();
874
879 bool IsEqual(PathPair *that);
880
888 bool setRandom(double density, bool conformant);
889
895 bool deepCopyFrom(PathPair *that);
896}; //PathPair
897
898
911{
912
913public:
916
919
924 PathPairs();
929 ~PathPairs();
930
935 bool IsEqual(PathPairs *that);
936
944 bool setRandom(double density, bool conformant);
945
951 bool deepCopyFrom(PathPairs *that);
952
960
969 bool setPathPair(std::string *from, std::string *to, bool *makeCopy, int numberOfPathPairs);
970
978 bool addPathPair(std::string fromPath, std::string toPath, bool makeCopy);
979}; //PathPairs
980
981
994{
995
996public:
999
1001 std::string *process;
1002
1007 Processes();
1012 ~Processes();
1013
1018 bool IsEqual(Processes *that);
1019
1027 bool setRandom(double density, bool conformant);
1028
1034 bool deepCopyFrom(Processes *that);
1035
1042 bool setProcess(int numberOfProcesses, std::string *process);
1043
1049 bool addProcess(std::string process);
1050}; //Processes
1051
1052
1146
1147
1160{
1161
1162public:
1164 int idx;
1165
1167 std::string name;
1168
1170 double value;
1171
1176 InitVarValue();
1181 ~InitVarValue();
1182
1187 bool IsEqual(InitVarValue *that);
1188
1196 bool setRandom(double density, bool conformant);
1197
1203 bool deepCopyFrom(InitVarValue *that);
1204}; //InitVarValue
1205
1206
1219{
1220
1221public:
1224
1227
1238
1243 bool IsEqual(InitVariableValues *that);
1244
1252 bool setRandom(double density, bool conformant);
1253
1259 bool deepCopyFrom(InitVariableValues *that);
1260
1267 bool setVar(int numberOfVar, InitVarValue **var);
1268
1277
1278
1287 bool setVar(int numberOfVar, int *idx, double *value, std::string *name);
1288
1295 bool addVar(int idx, double value);
1296
1305 bool addVar(int numberOfVar, InitVarValue **var);
1306}; //InitVariableValues
1307
1308
1321{
1322
1323public:
1325 int idx;
1326
1328 std::string name;
1329
1331 std::string value;
1332
1343
1348 bool IsEqual(InitVarValueString *that);
1349
1357 bool setRandom(double density, bool conformant);
1358
1364 bool deepCopyFrom(InitVarValueString *that);
1365}; //InitVarValueString
1366
1367
1380{
1381
1382public:
1385
1388
1399
1405
1413 bool setRandom(double density, bool conformant);
1414
1421
1429
1438
1439
1448 bool setVar(int numberOfVar, int *idx, std::string *value, std::string* name);
1449
1456 bool addVar(int idx, std::string value);
1457
1467}; //InitVariableValuesString
1468
1482{
1483
1484public:
1486 int idx;
1487
1489 std::string value;
1490
1496 InitBasStatus();
1502
1507 bool IsEqual(InitBasStatus *that);
1508
1516 bool setRandom(double density, bool conformant);
1517
1524}; //InitBasStatus
1525
1526
1541{
1542
1543public:
1546
1549
1560
1565 bool IsEqual(InitialBasisStatus *that);
1566
1574 bool setRandom(double density, bool conformant);
1575
1582
1589 bool setVar(int numberOfVar, InitBasStatus **var);
1590
1597 bool addVar(int idx, std::string value);
1598}; //InitialBasisStatus
1599
1612{
1613
1614public:
1616 int idx;
1617
1619 std::string name;
1620
1622 double value;
1623
1634
1639 bool IsEqual(BranchingWeight *that);
1640
1648 bool setRandom(double density, bool conformant);
1649
1655 bool deepCopyFrom(BranchingWeight *that);
1656}; //BranchingWeight
1657
1658
1659
1672{
1673
1674public:
1677
1680
1691
1697
1705 bool setRandom(double density, bool conformant);
1706
1713
1721
1730
1739 bool setVar(int numberOfVar, int *idx, double *value, std::string* name);
1740
1747 bool addVar(int idx, double value);
1748
1758}; //IntegerVariableBranchingWeights
1759
1776{
1777
1778public:
1781
1784
1787
1790
1795 SOSWeights();
1800 ~SOSWeights();
1801
1806 bool IsEqual(SOSWeights *that);
1807
1815 bool setRandom(double density, bool conformant);
1816
1822 bool deepCopyFrom(SOSWeights *that);
1823
1831
1838 bool addVar(int idx, double value);
1839}; //SOSWeights
1840
1841
1854{
1855
1856public:
1859
1862
1873
1879
1887 bool setRandom(double density, bool conformant);
1888
1895
1903 bool setSOS(int numberOfSOS, SOSWeights **sos);
1913 bool addSOS(int sosIdx, int nvar, double weight, int* idx, double* value, std::string* name);
1914}; //SOSVariableBranchingWeights
1915
1928{
1929
1930public:
1932 int idx;
1933
1935 std::string name;
1936
1938 std::string value;
1939
1941 std::string lbValue;
1942
1944 std::string ubValue;
1945
1956
1961 bool IsEqual(OtherVarOption *that);
1962
1970 bool setRandom(double density, bool conformant);
1971
1977 bool deepCopyFrom(OtherVarOption *that);
1978}; //OtherVarOption
1979
1980
1990{
1991
1992public:
1995
1998
2000 std::string name;
2001
2003 std::string value;
2004
2006 std::string solver;
2007
2009 std::string category;
2010
2012 std::string type;
2013
2015 std::string description;
2016
2019
2021 std::string varType;
2022
2023 /* a pointer to OtherOptionOrResultEnumeration objects that will
2024 * give for each distinct value the set of indices for
2025 * this user defined variable result
2026 */
2028
2030 std::string enumType;
2031
2042
2047 bool IsEqual(OtherVariableOption *that);
2048
2056 bool setRandom(double density, bool conformant);
2057
2064
2071 bool setVar(int numberOfVar, OtherVarOption **var);
2072
2081 bool addVar(int idx, std::string value, std::string lbValue, std::string ubValue);
2082}; //OtherVariableOption
2083
2084
2169
2170
2183{
2184
2185public:
2187 int idx;
2188
2190 std::string name;
2191
2193 double value;
2194
2199 InitObjValue();
2204 ~InitObjValue();
2205
2210 bool IsEqual(InitObjValue *that);
2211
2219 bool setRandom(double density, bool conformant);
2220
2226 bool deepCopyFrom(InitObjValue *that);
2227}; //InitObjValue
2228
2229
2242{
2243
2244public:
2247
2250
2261
2266 bool IsEqual(InitObjectiveValues *that);
2267
2275 bool setRandom(double density, bool conformant);
2276
2283
2290 bool setObj(int numberOfObj, InitObjValue **obj);
2291
2300
2301
2310 bool setObj(int numberOfObj, int *idx, double *value, std::string *name);
2311
2318 bool addObj(int idx, double value);
2319
2328 bool addObj(int numberOfObj, InitObjValue **obj);
2329}; //InitObjectiveValues
2330
2331
2344{
2345
2346public:
2348 int idx;
2349
2351 std::string name;
2352
2354 double lbValue;
2355
2357 double ubValue;
2358
2363 InitObjBound();
2368 ~InitObjBound();
2369
2374 bool IsEqual(InitObjBound *that);
2375
2383 bool setRandom(double density, bool conformant);
2384
2390 bool deepCopyFrom(InitObjBound *that);
2391}; //InitObjBound
2392
2393
2406{
2407
2408public:
2411
2414
2425
2430 bool IsEqual(InitObjectiveBounds *that);
2431
2439 bool setRandom(double density, bool conformant);
2440
2447
2454 bool setObj(int numberOfObj, InitObjBound **obj);
2455
2464
2465
2475 bool setObj(int numberOfObj, int *idx, double *lbValue, double *ubValue, std::string *name);
2476
2484 bool addObj(int idx, double lbValue, double ubValue);
2485
2494 bool addObj(int numberOfObj, InitObjBound **obj);
2495}; //InitObjectiveBounds
2496
2497
2510{
2511
2512public:
2514 int idx;
2515
2517 std::string name;
2518
2520 std::string value;
2521
2522
2524 std::string lbValue;
2525
2527 std::string ubValue;
2538
2543 bool IsEqual(OtherObjOption *that);
2544
2552 bool setRandom(double density, bool conformant);
2553
2559 bool deepCopyFrom(OtherObjOption *that);
2560}; //OtherObjOption
2561
2562
2575{
2576
2577public:
2580
2583
2585 std::string name;
2586
2588 std::string value;
2589
2591 std::string solver;
2592
2594 std::string category;
2595
2597 std::string type;
2598
2600 std::string description;
2601
2604
2606 std::string objType;
2607
2608 /* a pointer to OtherOptionOrResultEnumeration objects that will
2609 * give for each distinct value the set of indices for
2610 * this user defined variable result
2611 */
2613
2615 std::string enumType;
2616
2627
2632 bool IsEqual(OtherObjectiveOption *that);
2633
2641 bool setRandom(double density, bool conformant);
2642
2649
2656 bool setObj(int numberOfObj, OtherObjOption **obj);
2657
2666 bool addObj(int idx, std::string value, std::string lbValue, std::string ubValue);
2667}; //OtherObjectiveOption
2668
2669
2682{
2683
2684public:
2687
2690
2693
2696
2699
2710
2715 bool IsEqual(ObjectiveOption *that);
2716
2724 bool setRandom(double density, bool conformant);
2725
2731 bool deepCopyFrom(ObjectiveOption *that);
2732
2739 bool setOther(int numberOfOptions, OtherObjectiveOption **other);
2740
2741
2742
2749}; //ObjectiveOption
2750
2751
2764{
2765
2766public:
2768 int idx;
2769
2771 std::string name;
2772
2774 double value;
2775
2780 InitConValue();
2785 ~InitConValue();
2786
2791 bool IsEqual(InitConValue *that);
2792
2800 bool setRandom(double density, bool conformant);
2801
2807 bool deepCopyFrom(InitConValue *that);
2808}; //InitConValue
2809
2810
2823{
2824
2825public:
2828
2831
2842
2847 bool IsEqual(InitConstraintValues *that);
2848
2856 bool setRandom(double density, bool conformant);
2857
2864
2871 bool setCon(int numberOfCon, InitConValue **con);
2872
2881
2882
2891 bool setCon(int numberOfCon, int *idx, double *value, std::string *name);
2892
2899 bool addCon(int idx, double value);
2900
2909 bool addCon(int numberOfCon, InitConValue **con);
2910}; //InitConstraintValues
2911
2912
2925{
2926
2927public:
2929 int idx;
2930
2932 std::string name;
2933
2936
2939
2945
2951
2956 bool IsEqual(InitDualVarValue *that);
2957
2965 bool setRandom(double density, bool conformant);
2966
2972 bool deepCopyFrom(InitDualVarValue *that);
2973}; //InitDualVarValue
2974
2975
2988{
2989
2990public:
2993
2996
3007
3012 bool IsEqual(InitDualVariableValues *that);
3013
3021 bool setRandom(double density, bool conformant);
3022
3029
3037
3046
3047
3057 bool setCon(int numberOfCon, int *idx, double *lbValue, double *ubValue, std::string *name);
3058
3066 bool addCon(int idx, double lbDualValue, double ubDualValue);
3067
3077}; //InitDualVariableValues
3078
3079
3092{
3093
3094public:
3096 int idx;
3097
3099 std::string name;
3100
3102 std::string value;
3103
3105 std::string lbValue;
3106
3108 std::string ubValue;
3109
3120
3125 bool IsEqual(OtherConOption *that);
3126
3134 bool setRandom(double density, bool conformant);
3135
3141 bool deepCopyFrom(OtherConOption *that);
3142}; //OtherConOption
3143
3144
3157{
3158
3159public:
3162
3165
3167 std::string name;
3168
3170 std::string value;
3171
3173 std::string solver;
3174
3176 std::string category;
3177
3179 std::string type;
3180
3182 std::string description;
3183
3186
3188 std::string conType;
3189
3190 /* a pointer to OtherOptionOrResultEnumeration objects that will
3191 * give for each distinct value the set of indices for
3192 * this user defined variable result
3193 */
3195
3197 std::string enumType;
3198
3209
3214 bool IsEqual(OtherConstraintOption *that);
3215
3223 bool setRandom(double density, bool conformant);
3224
3231
3238 bool setCon(int numberOfCon, OtherConOption **con);
3239
3248 bool addCon(int idx, std::string value, std::string lbValue, std::string ubValue);
3249}; //OtherConstraintOption
3250
3251
3264{
3265
3266public:
3269
3272
3275
3278
3281
3292
3297 bool IsEqual(ConstraintOption *that);
3298
3306 bool setRandom(double density, bool conformant);
3307
3313 bool deepCopyFrom(ConstraintOption *that);
3314
3321 bool setOther(int numberOfOptions, OtherConstraintOption **other);
3322
3323
3330}; //ConstraintOption
3331
3332
3345{
3346
3347public:
3349 std::string name;
3350
3352 std::string value;
3353
3355 std::string solver;
3356
3358 std::string category;
3359
3361 std::string type;
3362
3364 std::string description;
3365
3368
3370 std::string* item;
3371
3376 SolverOption();
3381 ~SolverOption();
3382
3387 bool IsEqual(SolverOption *that);
3388
3396 bool setRandom(double density, bool conformant);
3397
3403 bool deepCopyFrom(SolverOption *that);
3404}; //SolverOption
3405
3406
3419{
3420
3421public:
3424
3427
3432 SolverOptions();
3438
3443 bool IsEqual(SolverOptions *that);
3444
3452 bool setRandom(double density, bool conformant);
3453
3459 bool deepCopyFrom(SolverOptions *that);
3460
3467 bool setSolverOptions(int numberOfOptions, SolverOption **solverOption);
3468
3479 bool addSolverOption(std::string name, std::string value, std::string solver,
3480 std::string category, std::string type, std::string description);
3481}; //SolverOptions
3482
3483
3496{
3497
3498public:
3501
3504
3507
3510
3513
3516
3529
3534 bool IsEqual(OptimizationOption *that);
3535
3543 bool setRandom(double density, bool conformant);
3544
3550 bool deepCopyFrom(OptimizationOption *that);
3551}; //OptimizationOption
3552
3553
3565{
3566
3567public:
3568
3597
3602 OSOption();
3607 ~OSOption();
3608
3618 bool setHeader(std::string name, std::string source,
3619 std::string description, std::string fileCreator, std::string licence);
3620
3621private:
3626
3631
3636
3641
3646
3651
3656
3661
3667
3673
3674public:
3678 bool IsEqual(OSOption *that);
3679
3686 bool setRandom(double density, bool conformant);
3687
3693 bool deepCopyFrom(OSOption *that);
3694
3695public:
3696
3697 // get() methods...
3698
3702 std::string getFileName();
3703
3707 std::string getFileSource();
3708
3712 std::string getFileDescription();
3713
3717 std::string getFileCreator();
3718
3722 std::string getFileLicence();
3723
3727 std::string getServiceURI();
3728
3732 std::string getServiceName();
3733
3737 std::string getInstanceName();
3738
3742 std::string getInstanceLocation();
3743
3747 std::string getInstanceLocationType();
3748
3753 std::string getJobID();
3754
3758 std::string getSolverToInvoke();
3759
3763 std::string getLicense();
3764
3768 std::string getUserName();
3769
3773 std::string getPassword();
3774
3778 std::string getContact();
3779
3783 std::string getContactTransportType();
3784
3788 std::string getMinDiskSpaceUnit();
3789
3793 std::string getMinDiskSpaceDescription();
3794
3798 std::string getMinMemoryUnit();
3799
3803 std::string getMinMemoryDescription();
3804
3808 std::string getMinCPUSpeedUnit();
3809
3813 std::string getMinCPUSpeedDescription();
3814
3818 std::string getMinCPUNumberDescription();
3819
3823 std::string getServiceType();
3824
3828 std::string getMaxTimeUnit();
3829
3833 std::string getRequestedStartTime();
3834
3838 std::string getOptionStr(std::string optionName);
3839
3843 double getMinDiskSpace();
3844
3848 double getMinMemorySize();
3849
3853 double getMinCPUSpeed();
3854
3858 double getMaxTime();
3859
3863 double getOptionDbl(std::string optionName);
3864
3868 int getMinCPUNumber();
3869
3874
3879
3884
3889
3894
3899
3904
3909
3914
3919
3924
3929
3934
3939
3944
3949
3954
3959
3964
3971
3978
3986
3992 int getNumberOfSOS();
3993
4000
4007
4014
4021
4028
4035
4042
4049
4056
4060 int getOptionInt(std::string optionName);
4061
4062
4071
4080
4089
4098
4106 OtherOption** getOtherOptions(std::string elementName);
4107
4108
4117
4124 std::string* getJobDependencies();
4125
4133 std::string* getRequiredDirectories();
4134
4142 std::string* getRequiredFiles();
4143
4151 std::string* getDirectoriesToMake();
4152
4160 std::string* getFilesToMake();
4161
4170
4179
4188
4197
4205 std::string* getDirectoriesToDelete();
4206
4214 std::string* getFilesToDelete();
4215
4223 std::string* getProcessesToKill();
4224
4233
4241 double* getInitVarValuesDense();
4242
4251 double* getInitVarValuesDense(int numberOfVariables);
4252
4261
4269 std::string *getInitVarValuesStringDense();
4270
4279 std::string *getInitVarValuesStringDense(int numberOfVariables);
4280
4289
4298
4307 int* getVariableInitialBasisStatusDense(int numberOfVariables);
4308
4319 int getNumberOfInitialBasisElements(int type, int status);
4320
4332 bool getInitialBasisElements(int type, int status, int* elem);
4333
4342
4351
4360 double* getIntegerVariableBranchingWeightsDense(int numberOfVariables);
4361
4370
4379 std::vector<OtherVariableOption*> getOtherVariableOptions(std::string solver_name);
4380
4389
4397
4406
4414 double *getInitObjValuesDense();
4415
4424 double *getInitObjValuesDense(int numberOfObjectives);
4425
4434
4443
4452 double *getInitObjLowerBoundsDense(int numberOfObjectives);
4453
4462
4471 double *getInitObjUpperBoundsDense(int numberOfObjectives);
4472
4481 int* getObjectiveInitialBasisStatusDense(int numberOfObjectives);
4482
4490 std::vector<OtherObjectiveOption*> getOtherObjectiveOptions(std::string solver_name);
4491
4500
4508
4517
4525 double *getInitConValuesDense();
4526
4535 double *getInitConValuesDense(int numberOfConstraints);
4536
4545
4554
4563 double *getInitDualVarLowerBoundsDense(int numberOfConstraints);
4564
4565
4574
4583 double *getInitDualVarUpperBoundsDense(int numberOfConstraints);
4584
4593 int* getSlackVariableInitialBasisStatusDense(int numberOfConstraints);
4594
4602 std::vector<OtherConstraintOption*> getOtherConstraintOptions(std::string solver_name);
4603
4612
4620
4629 std::vector<SolverOption*> getSolverOptions( std::string solver_name);
4630
4631
4643 std::vector<SolverOption*> getSolverOptions( std::string solver_name, bool getFreeOptions);
4644
4652
4653 /* --------------------------------------------------
4654 * set() methods
4655 * -------------------------------------------------- */
4656
4660 bool setServiceURI( std::string serviceURI);
4661
4665 bool setServiceName( std::string serviceName);
4666
4670 bool setInstanceName( std::string instanceName);
4671
4675 bool setInstanceLocation( std::string instanceLocation);
4676
4681 bool setInstanceLocation( std::string instanceLocation, std::string locationType);
4682
4686 bool setInstanceLocationType( std::string locationType);
4687
4691 bool setJobID( std::string jobID);
4692
4696 bool setSolverToInvoke( std::string solverToInvoke);
4697
4701 bool setLicense( std::string license);
4702
4706 bool setUserName( std::string userName);
4707
4711 bool setPassword( std::string password);
4712
4716 bool setContact( std::string contact);
4717
4722 bool setContact( std::string contact, std::string transportType);
4723
4727 bool setContactTransportType( std::string transportType);
4728
4734 bool setOtherGeneralOptions(int numberOfOptions, OtherOption** other);
4735
4742 bool setAnOtherGeneralOption(std::string name, std::string value, std::string description);
4743
4750 bool setMinDiskSpace(std::string unit, std::string description, double value);
4751
4755 bool setMinDiskSpace(double value);
4756
4757 bool setMinDiskSpaceUnit(std::string unit);
4758
4765 bool setMinMemorySize(std::string unit, std::string description, double value);
4766
4770 bool setMinMemorySize(double value);
4771
4772 bool setMinMemoryUnit(std::string unit);
4773
4780 bool setMinCPUSpeed(std::string unit, std::string description, double value);
4781
4785 bool setMinCPUSpeed(double value);
4786
4787 bool setMinCPUSpeedUnit(std::string unit);
4788
4794 bool setMinCPUNumber( int number, std::string description);
4795
4799 bool setMinCPUNumber( int number);
4800
4801 bool setOtherSystemOptions(int numberOfOptions, OtherOption** other);
4802
4803 bool setAnOtherSystemOption(std::string name, std::string value, std::string description);
4804
4805
4806 bool setServiceType( std::string serviceType);
4807
4808 bool setOtherServiceOptions(int numberOfOptions, OtherOption** other);
4809
4810 bool setAnOtherServiceOption(std::string name, std::string value, std::string description);
4811
4812
4813 bool setMaxTime(double value, std::string unit);
4814
4815 bool setMaxTime(double value);
4816
4817 bool setMaxTimeUnit(std::string unit);
4818
4819 bool setRequestedStartTime(std::string time);
4820
4821 bool setJobDependencies(int numberOfDependencies, std::string* jobDependencies);
4822 bool setAnotherJobDependency(std::string jobID);
4823
4824 bool setRequiredDirectories(int numberOfPaths, std::string* paths);
4825 bool setAnotherRequiredDirectory(std::string path);
4826
4827 bool setRequiredFiles(int numberOfPaths, std::string* paths);
4828 bool setAnotherRequiredFile(std::string path);
4829
4830 bool setDirectoriesToMake(int numberOfPaths, std::string* paths);
4831 bool setAnotherDirectoryToMake(std::string path);
4832
4833 bool setFilesToMake(int numberOfPaths, std::string* paths);
4834 bool setAnotherFileToMake(std::string path);
4835
4853 bool setPathPairs(int object, std::string *from, std::string *to, bool *makeCopy, int numberOfPathPairs);
4854
4855 bool setInputDirectoriesToMove(int numberOfPathPairs, PathPair** pathPair);
4856 bool setAnotherInputDirectoryToMove(std::string fromPath, std::string toPath, bool makeCopy);
4857
4858 bool setInputFilesToMove(int numberOfPathPairs, PathPair** pathPair);
4859 bool setAnotherInputFileToMove(std::string fromPath, std::string toPath, bool makeCopy);
4860
4861 bool setOutputFilesToMove(int numberOfPathPairs, PathPair** pathPair);
4862 bool setAnotherOutputFileToMove(std::string fromPath, std::string toPath, bool makeCopy);
4863
4864 bool setOutputDirectoriesToMove(int numberOfPathPairs, PathPair** pathPair);
4865 bool setAnotherOutputDirectoryToMove(std::string fromPath, std::string toPath, bool makeCopy);
4866
4867 bool setFilesToDelete(int numberOfPaths, std::string* paths);
4868 bool setAnotherFileToDelete(std::string path);
4869
4870 bool setDirectoriesToDelete(int numberOfPaths, std::string* paths);
4871 bool setAnotherDirectoryToDelete(std::string path);
4872
4873 bool setProcessesToKill(int numberOfProcesses, std::string* processes);
4874 bool setAnotherProcessToKill(std::string process);
4875
4876 bool setOtherJobOptions(int numberOfOptions, OtherOption** other);
4877 bool setAnOtherJobOption(std::string name, std::string value, std::string description);
4878
4879
4880 bool setNumberOfVariables(int numberOfVariables);
4881
4882 bool setNumberOfObjectives(int numberOfObjectives);
4883
4884 bool setNumberOfConstraints(int numberOfConstraints);
4885
4886 bool setInitVarValues(int numberOfVar, int* idx, double* value, std::string* name);
4887 bool setInitVarValuesSparse(int numberOfVar, InitVarValue** var);
4888 bool setInitVarValuesSparse(int numberOfVar, InitVarValue** var, ENUM_COMBINE_ARRAYS disp);
4889 bool setInitVarValuesDense(int numberOfVar, double *value);
4890 bool setAnotherInitVarValue(int idx, double value);
4891
4892 bool setInitVarValuesString(int numberOfVar, int* idx, std::string* value, std::string* name);
4893 bool setInitVarValuesStringSparse(int numberOfVar, InitVarValueString** var);
4894 bool setInitVarValuesStringSparse(int numberOfVar, InitVarValueString** var, ENUM_COMBINE_ARRAYS disp);
4895 bool setInitVarValuesStringDense(int numberOfVar, std::string *value);
4896 bool setAnotherInitVarValueString(int idx, std::string value);
4897
4898 bool setInitBasisStatus(int object, int status, int *i, int ni);
4899 bool setInitBasisStatusSparse(int numberOfVar, InitBasStatus** var);
4901 bool setInitBasisStatusDense(int numberOfVar, std::string *var);
4902
4911 bool setAnotherInitBasisStatus(int type, int idx, int status);
4912
4913 bool setIntegerVariableBranchingWeights(int numberOfVar, int* idx, double* value, std::string* name);
4914 bool setIntegerVariableBranchingWeightsSparse(int numberOfVar, BranchingWeight** var);
4916 bool setIntegerVariableBranchingWeightsDense(int numberOfVar, double *value);
4917 bool setAnotherIntegerVariableBranchingWeight(int idx, double value);
4918
4919 bool setSOSVariableBranchingWeights(int numberOfSOS, SOSWeights** sos);
4920 bool setAnotherSOSVariableBranchingWeight(int sosIdx, int nvar, double weight, int* idx, double* value, std::string* name);
4921
4922 bool setNumberOfOtherVariableOptions(int numberOfOther);
4923 bool setOtherVariableOptions(int numberOfVar, OtherVariableOption** var);
4925
4941 bool setOtherVariableOptionAttributes(int iOther, int numberOfVar,
4942 int numberOfEnumerations, std::string name,
4943 std::string value, std::string solver,
4944 std::string category, std::string type,
4945 std::string varType, std::string enumType,
4946 std::string description);
4947
4948
4961 bool setOtherOptionOrResultEnumeration(int object, int otherOptionNumber, int enumerationNumber,
4962 int numberOfEl, std::string value, std::string description, int* idxArray);
4963
4974 bool setOtherVariableOptionVar(int otherOptionNumber, int varNumber,
4975 int idx, std::string name, std::string value, std::string lbValue, std::string ubValue);
4976
4977 bool setInitObjValues(int numberOfObj, int* idx, double* value, std::string* name);
4978 bool setInitObjValuesSparse(int numberOfObj, InitObjValue** obj);
4979 bool setInitObjValuesSparse(int numberOfObj, InitObjValue** obj, ENUM_COMBINE_ARRAYS disp);
4980 bool setInitObjValuesDense(int numberOfObj, double *value);
4981 bool setAnotherInitObjValue(int idx, double value);
4982
4983 bool setInitObjBounds(int numberOfObj, int* idx, double* lbValue, double* ubValue, std::string* name);
4984 bool setInitObjBoundsSparse(int numberOfObj, InitObjBound** obj);
4985 bool setInitObjBoundsSparse(int numberOfObj, InitObjBound** obj, ENUM_COMBINE_ARRAYS disp);
4986 bool setInitObjBoundsDense(int numberOfObj, double *lb, double *ub);
4987 bool setAnotherInitObjBound(int idx, double lbValue, double ubValue);
4988
4989 bool setNumberOfOtherObjectiveOptions(int numberOfOther);
4990 bool setOtherObjectiveOptions(int numberOfObj, OtherObjectiveOption** obj);
4991 //bool setOtherObjectiveOptions(int numberOfObj, OtherObjectiveOption** obj, ENUM_COMBINE_ARRAYS disp);
4993
5009 bool setOtherObjectiveOptionAttributes(int iOther, int numberOfObj,
5010 int numberOfEnumerations, std::string name,
5011 std::string value, std::string solver,
5012 std::string category, std::string type,
5013 std::string objType, std::string enumType,
5014 std::string description);
5015
5016
5028 bool setOtherObjectiveOptionObj(int otherOptionNumber, int objNumber,
5029 int idx, std::string name, std::string value, std::string lbValue, std::string ubValue);
5030
5031 bool setInitConValues(int numberOfCon, int* idx, double* value, std::string* name);
5032 bool setInitConValuesSparse(int numberOfCon, InitConValue** con);
5033 bool setInitConValuesSparse(int numberOfCon, InitConValue** con, ENUM_COMBINE_ARRAYS disp);
5034 bool setInitConValuesDense(int numberOfCon, double *value);
5035 bool setAnotherInitConValue(int idx, double value);
5036
5037 bool setInitDualValues(int numberOfCon, int* idx, double* lbValue, double* ubValue, std::string* name);
5038 bool setInitDualVarValuesSparse(int numberOfCon, InitDualVarValue** con);
5039 bool setInitDualVarValuesSparse(int numberOfCon, InitDualVarValue** con, ENUM_COMBINE_ARRAYS disp);
5040 bool setInitDualVarValuesDense(int numberOfCon, double *lb, double *ub);
5041 bool setAnotherInitDualVarValue(int idx, double lbValue, double ubValue);
5042
5043 bool setNumberOfOtherConstraintOptions(int numberOfOther);
5044 bool setOtherConstraintOptions(int numberOfOptions, OtherConstraintOption** other);
5045 //bool setOtherConstraintOptions(int numberOfOptions, OtherConstraintOption** other, ENUM_COMBINE_ARRAYS disp);
5047
5063 bool setOtherConstraintOptionAttributes(int iOther, int numberOfCon,
5064 int numberOfEnumerations, std::string name,
5065 std::string value, std::string solver,
5066 std::string category, std::string type,
5067 std::string conType, std::string enumType,
5068 std::string description);
5069
5070
5082 bool setOtherConstraintOptionCon(int otherOptionNumber, int conNumber,
5083 int idx, std::string name, std::string value, std::string lbValue, std::string ubValue);
5084
5085 bool setNumberOfSolverOptions(int numberOfOptions);
5086
5100 bool setSolverOptionContent(int iOption, int numberOfItems,
5101 std::string name,
5102 std::string value, std::string solver,
5103 std::string category, std::string type,
5104 std::string description, std::string *itemList);
5105
5106 bool setSolverOptions(int numberOfSolverOptions, SolverOption** solverOption);
5107 bool setAnotherSolverOption(std::string name, std::string value, std::string solver,
5108 std::string category, std::string type, std::string description);
5109
5110
5111 bool setOptionInt(std::string optionName, int optionValue);
5112
5113 bool setOptionStr(std::string optionName, std::string optionValue);
5114
5115 bool setOptionDbl(std::string optionName, double value);
5116
5117};//OSOption
5118
5119#endif
a data structure to represent an LP basis on both input and output
Definition OSGeneral.h:646
the BranchingWeight class.
Definition OSOption.h:1612
std::string name
optional variable name
Definition OSOption.h:1619
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(BranchingWeight *that)
A function to check for the equality of two objects.
double value
branching weight
Definition OSOption.h:1622
int idx
index of the variable
Definition OSOption.h:1616
~BranchingWeight()
Class destructor.
Definition OSOption.cpp:581
BranchingWeight()
Default constructor.
Definition OSOption.cpp:571
bool deepCopyFrom(BranchingWeight *that)
A function to make a deep copy of an instance of this class.
the CPUNumber class.
Definition OSGeneral.h:872
the CPUSpeed class.
Definition OSGeneral.h:813
the ConstraintOption class.
Definition OSOption.h:3264
InitConstraintValues * initialConstraintValues
initial values for the constraints
Definition OSOption.h:3271
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool addOther(OtherConstraintOption *other)
A function to add an <other> element.
ConstraintOption()
Default constructor.
bool IsEqual(ConstraintOption *that)
A function to check for the equality of two objects.
bool deepCopyFrom(ConstraintOption *that)
A function to make a deep copy of an instance of this class.
InitDualVariableValues * initialDualValues
initial dual values for the constraints
Definition OSOption.h:3274
OtherConstraintOption ** other
other information about the constraints
Definition OSOption.h:3280
bool setOther(int numberOfOptions, OtherConstraintOption **other)
A function to set an array of <other> elements.
~ConstraintOption()
Class destructor.
int numberOfOtherConstraintOptions
number of <other> child elements
Definition OSOption.h:3268
BasisStatus * initialBasisStatus
initial basis status for the slack variables
Definition OSOption.h:3277
the ContactOption class.
Definition OSOption.h:97
~ContactOption()
Class destructor.
Definition OSOption.cpp:58
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string value
the value of the <contact> element
Definition OSOption.h:104
ContactOption()
Default constructor.
Definition OSOption.cpp:49
bool deepCopyFrom(ContactOption *that)
A function to make a deep copy of an instance of this class.
std::string transportType
the contact mechanism
Definition OSOption.h:101
bool IsEqual(ContactOption *that)
A function to check for the equality of two objects.
the DirectoriesAndFiles class.
Definition OSOption.h:781
int numberOfPaths
the number of <path> children
Definition OSOption.h:785
bool deepCopyFrom(DirectoriesAndFiles *that)
A function to make a deep copy of an instance of this class.
std::string * path
the list of directory and file paths
Definition OSOption.h:788
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool addPath(std::string path)
A function to add a <path> element.
DirectoriesAndFiles()
Default constructor.
Definition OSOption.cpp:287
bool setPath(int numberOfPaths, std::string *path)
A function to set an array of <path> elements.
bool IsEqual(DirectoriesAndFiles *that)
A function to check for the equality of two objects.
~DirectoriesAndFiles()
Class destructor.
Definition OSOption.cpp:296
a data structure that holds general information about files that conform to one of the OSxL schemas
Definition OSGeneral.h:33
The GeneralOption Class.
Definition OSOption.h:285
OtherOptions * otherOptions
the list of other general options
Definition OSOption.h:320
InstanceLocationOption * instanceLocation
the location of the instance
Definition OSOption.h:299
std::string license
the license information
Definition OSOption.h:308
std::string serviceURI
the service URI
Definition OSOption.h:290
std::string serviceName
the name of the service
Definition OSOption.h:293
std::string jobID
the job ID
Definition OSOption.h:302
std::string userName
the username
Definition OSOption.h:311
~GeneralOption()
Class destructor.
Definition OSOption.cpp:131
std::string instanceName
the name of the instance
Definition OSOption.h:296
std::string solverToInvoke
the solver to invoke
Definition OSOption.h:305
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(GeneralOption *that)
A function to check for the equality of two objects.
GeneralOption()
Default constructor.
Definition OSOption.cpp:113
bool deepCopyFrom(GeneralOption *that)
A function to make a deep copy of an instance of this class.
std::string password
the password
Definition OSOption.h:314
ContactOption * contact
the contact method
Definition OSOption.h:317
the InitBasStatus class.
Definition OSOption.h:1482
bool IsEqual(InitBasStatus *that)
A function to check for the equality of two objects.
bool deepCopyFrom(InitBasStatus *that)
A function to make a deep copy of an instance of this class.
~InitBasStatus()
Class destructor.
Definition OSOption.cpp:536
InitBasStatus()
Default constructor.
Definition OSOption.cpp:527
std::string value
initial value
Definition OSOption.h:1489
int idx
variable index
Definition OSOption.h:1486
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
the InitConValue class.
Definition OSOption.h:2764
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double value
initial value
Definition OSOption.h:2774
InitConValue()
Default constructor.
Definition OSOption.cpp:982
std::string name
optional variable name
Definition OSOption.h:2771
bool IsEqual(InitConValue *that)
A function to check for the equality of two objects.
~InitConValue()
Class destructor.
Definition OSOption.cpp:992
int idx
constraint index
Definition OSOption.h:2768
bool deepCopyFrom(InitConValue *that)
A function to make a deep copy of an instance of this class.
the InitConstraintValues class.
Definition OSOption.h:2823
bool addCon(int idx, double value)
A function to add a <con> element.
~InitConstraintValues()
Class destructor.
InitConValue ** con
initial value for each constraint
Definition OSOption.h:2830
bool deepCopyFrom(InitConstraintValues *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(InitConstraintValues *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 setCon(int numberOfCon, InitConValue **con)
A function to set an array of <con> elements.
int numberOfCon
number of <con> children
Definition OSOption.h:2827
InitConstraintValues()
Default constructor.
the InitDualVarValue class.
Definition OSOption.h:2925
std::string name
optional variable name
Definition OSOption.h:2932
int idx
constraint index
Definition OSOption.h:2929
InitDualVarValue()
Default constructor.
double ubDualValue
initial upper bound
Definition OSOption.h:2938
bool deepCopyFrom(InitDualVarValue *that)
A function to make a deep copy of an instance of this class.
double lbDualValue
initial lower bound
Definition OSOption.h:2935
~InitDualVarValue()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(InitDualVarValue *that)
A function to check for the equality of two objects.
the InitDualVariableValues class.
Definition OSOption.h:2988
bool deepCopyFrom(InitDualVariableValues *that)
A function to make a deep copy of an instance of this class.
~InitDualVariableValues()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfCon
number of <con> children
Definition OSOption.h:2992
bool addCon(int idx, double lbDualValue, double ubDualValue)
A function to add a <con> element.
InitDualVariableValues()
Default constructor.
InitDualVarValue ** con
initial dual values for each constraint
Definition OSOption.h:2995
bool IsEqual(InitDualVariableValues *that)
A function to check for the equality of two objects.
bool setCon(int numberOfCon, InitDualVarValue **con)
A function to set an array of <con> elements.
the InitObjBound class.
Definition OSOption.h:2344
double lbValue
initial lower bound
Definition OSOption.h:2354
int idx
objective index
Definition OSOption.h:2348
double ubValue
initial upper bound
Definition OSOption.h:2357
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(InitObjBound *that)
A function to check for the equality of two objects.
~InitObjBound()
Class destructor.
Definition OSOption.cpp:842
std::string name
optional variable name
Definition OSOption.h:2351
InitObjBound()
Default constructor.
Definition OSOption.cpp:831
bool deepCopyFrom(InitObjBound *that)
A function to make a deep copy of an instance of this class.
the InitObjValue class.
Definition OSOption.h:2183
InitObjValue()
Default constructor.
Definition OSOption.cpp:785
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(InitObjValue *that)
A function to check for the equality of two objects.
std::string name
optional objective name
Definition OSOption.h:2190
bool deepCopyFrom(InitObjValue *that)
A function to make a deep copy of an instance of this class.
~InitObjValue()
Class destructor.
Definition OSOption.cpp:795
double value
initial value
Definition OSOption.h:2193
int idx
objective index
Definition OSOption.h:2187
the InitObjectiveBounds class.
Definition OSOption.h:2406
InitObjBound ** obj
initial bounds for each objective
Definition OSOption.h:2413
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
~InitObjectiveBounds()
Class destructor.
Definition OSOption.cpp:859
bool deepCopyFrom(InitObjectiveBounds *that)
A function to make a deep copy of an instance of this class.
bool setObj(int numberOfObj, InitObjBound **obj)
A function to set an array of <obj> elements.
int numberOfObj
number of <obj> children
Definition OSOption.h:2410
bool addObj(int idx, double lbValue, double ubValue)
A function to add a <obj> element.
bool IsEqual(InitObjectiveBounds *that)
A function to check for the equality of two objects.
InitObjectiveBounds()
Default constructor.
Definition OSOption.cpp:850
the InitObjectiveValues class.
Definition OSOption.h:2242
InitObjValue ** obj
initial value for each objective
Definition OSOption.h:2249
~InitObjectiveValues()
Class destructor.
Definition OSOption.cpp:812
bool deepCopyFrom(InitObjectiveValues *that)
A function to make a deep copy of an instance of this class.
InitObjectiveValues()
Default constructor.
Definition OSOption.cpp:803
int numberOfObj
number of <obj> children
Definition OSOption.h:2246
bool addObj(int idx, double value)
A function to add a <obj> element.
bool setObj(int numberOfObj, InitObjValue **obj)
A function to set an array of <obj> elements.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(InitObjectiveValues *that)
A function to check for the equality of two objects.
the InitVarValue class.
Definition OSOption.h:1160
bool deepCopyFrom(InitVarValue *that)
A function to make a deep copy of an instance of this class.
InitVarValue()
Default constructor.
Definition OSOption.cpp:436
bool IsEqual(InitVarValue *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.
double value
initial value
Definition OSOption.h:1170
std::string name
optional variable name
Definition OSOption.h:1167
~InitVarValue()
Class destructor.
Definition OSOption.cpp:446
int idx
variable index
Definition OSOption.h:1164
the InitVarValueString class.
Definition OSOption.h:1321
bool deepCopyFrom(InitVarValueString *that)
A function to make a deep copy of an instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string value
initial value
Definition OSOption.h:1331
~InitVarValueString()
Class destructor.
Definition OSOption.cpp:492
int idx
variable index
Definition OSOption.h:1325
InitVarValueString()
Default constructor.
Definition OSOption.cpp:482
std::string name
optional variable name
Definition OSOption.h:1328
bool IsEqual(InitVarValueString *that)
A function to check for the equality of two objects.
the InitVariableValues class.
Definition OSOption.h:1219
bool IsEqual(InitVariableValues *that)
A function to check for the equality of two objects.
InitVarValue ** var
initial value for each variable
Definition OSOption.h:1226
bool setVar(int numberOfVar, InitVarValue **var)
A function to set an array of elements.
bool addVar(int idx, double value)
A function to add a element.
int numberOfVar
number of children
Definition OSOption.h:1223
~InitVariableValues()
Class destructor.
Definition OSOption.cpp:463
InitVariableValues()
Default constructor.
Definition OSOption.cpp:454
bool deepCopyFrom(InitVariableValues *that)
A function to make a deep copy of an instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
the InitVariableValuesString class.
Definition OSOption.h:1380
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool deepCopyFrom(InitVariableValuesString *that)
A function to make a deep copy of an instance of this class.
bool setVar(int numberOfVar, InitVarValueString **var)
A function to set an array of elements.
~InitVariableValuesString()
Class destructor.
Definition OSOption.cpp:509
bool addVar(int idx, std::string value)
A function to add a element.
bool IsEqual(InitVariableValuesString *that)
A function to check for the equality of two objects.
InitVarValueString ** var
initial value for each variable
Definition OSOption.h:1387
int numberOfVar
number of children
Definition OSOption.h:1384
InitVariableValuesString()
Default constructor.
Definition OSOption.cpp:500
the InitialBasisStatus class.
Definition OSOption.h:1541
bool setVar(int numberOfVar, InitBasStatus **var)
A function to set an array of elements.
~InitialBasisStatus()
Class destructor.
Definition OSOption.cpp:553
InitBasStatus ** var
initial value for each variable
Definition OSOption.h:1548
InitialBasisStatus()
Default constructor.
Definition OSOption.cpp:544
bool IsEqual(InitialBasisStatus *that)
A function to check for the equality of two objects.
bool addVar(int idx, std::string value)
A function to add a element.
int numberOfVar
number of children
Definition OSOption.h:1545
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool deepCopyFrom(InitialBasisStatus *that)
A function to make a deep copy of an instance of this class.
the InstanceLocationOption class.
Definition OSOption.h:40
bool deepCopyFrom(InstanceLocationOption *that)
A function to make a deep copy of an instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
InstanceLocationOption()
Default constructor.
Definition OSOption.cpp:32
~InstanceLocationOption()
Class destructor.
Definition OSOption.cpp:41
std::string value
the value of the <instanceLocation> element
Definition OSOption.h:47
std::string locationType
the type of the location
Definition OSOption.h:44
bool IsEqual(InstanceLocationOption *that)
A function to check for the equality of two objects.
the IntegerVariableBranchingWeights class.
Definition OSOption.h:1672
BranchingWeight ** var
branching weight for each variable
Definition OSOption.h:1679
bool setVar(int numberOfVar, BranchingWeight **var)
A function to set an array of elements.
int numberOfVar
number of children
Definition OSOption.h:1676
bool addVar(int idx, double value)
A function to add a element.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(IntegerVariableBranchingWeights *that)
A function to check for the equality of two objects.
bool deepCopyFrom(IntegerVariableBranchingWeights *that)
A function to make a deep copy of an instance of this class.
IntegerVariableBranchingWeights()
Default constructor.
Definition OSOption.cpp:589
~IntegerVariableBranchingWeights()
Class destructor.
Definition OSOption.cpp:598
the JobDependencies class.
Definition OSOption.h:710
bool IsEqual(JobDependencies *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 * jobID
the list of job IDs
Definition OSOption.h:717
bool setJobID(int numberOfJobIDs, std::string *jobID)
A function to set an array of <jobID> elements.
bool deepCopyFrom(JobDependencies *that)
A function to make a deep copy of an instance of this class.
bool addJobID(std::string jobID)
A function to add an <jobID> element.
int numberOfJobIDs
the number of entries in the list of job dependencies
Definition OSOption.h:714
JobDependencies()
Default constructor.
Definition OSOption.cpp:264
~JobDependencies()
Class destructor.
Definition OSOption.cpp:273
the JobOption class.
Definition OSOption.h:1065
Processes * processesToKill
processes to kill upon completion
Definition OSOption.h:1108
DirectoriesAndFiles * requiredDirectories
directories required to run the job
Definition OSOption.h:1078
DirectoriesAndFiles * filesToMake
files to make during the job
Definition OSOption.h:1087
bool deepCopyFrom(JobOption *that)
A function to make a deep copy of an instance of this class.
DirectoriesAndFiles * directoriesToDelete
directories to delete upon completion
Definition OSOption.h:1105
std::string requestedStartTime
the requested time to start the job
Definition OSOption.h:1072
DirectoriesAndFiles * requiredFiles
files required to run the job
Definition OSOption.h:1081
DirectoriesAndFiles * filesToDelete
files to delete upon completion
Definition OSOption.h:1102
JobDependencies * dependencies
the dependency set
Definition OSOption.h:1075
PathPairs * inputFilesToMove
input files to move or copy
Definition OSOption.h:1093
TimeSpan * maxTime
the maximum time allowed
Definition OSOption.h:1069
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
JobOption()
Default constructor.
Definition OSOption.cpp:378
~JobOption()
Class destructor.
Definition OSOption.cpp:400
PathPairs * outputDirectoriesToMove
output directories to move or copy
Definition OSOption.h:1099
bool IsEqual(JobOption *that)
A function to check for the equality of two objects.
PathPairs * inputDirectoriesToMove
input directories to move or copy
Definition OSOption.h:1090
PathPairs * outputFilesToMove
output files to move or copy
Definition OSOption.h:1096
DirectoriesAndFiles * directoriesToMake
directories to make during the job
Definition OSOption.h:1084
OtherOptions * otherOptions
list of other job options
Definition OSOption.h:1111
the MaxTime class.
Definition OSOption.h:669
MaxTime()
Default constructor.
~MaxTime()
Class destructor.
std::string unit
the unit in which time is measured
Definition OSOption.h:673
bool IsEqual(MaxTime *that)
A function to check for the equality of two objects.
double value
the maximum time allowed
Definition OSOption.h:676
the MinCPUNumber class.
Definition OSOption.h:505
bool IsEqual(MinCPUNumber *that)
A function to check for the equality of two objects.
int value
the minimum number of CPUs required
Definition OSOption.h:512
MinCPUNumber()
Default constructor.
Definition OSOption.cpp:198
~MinCPUNumber()
Class destructor.
Definition OSOption.cpp:207
std::string description
additional description about the CPU
Definition OSOption.h:509
the MinCPUSpeed class.
Definition OSOption.h:460
double value
the minimum CPU speed required
Definition OSOption.h:470
MinCPUSpeed()
Default constructor.
Definition OSOption.cpp:181
bool IsEqual(MinCPUSpeed *that)
A function to check for the equality of two objects.
~MinCPUSpeed()
Class destructor.
Definition OSOption.cpp:191
std::string description
additional description about the CPU speed
Definition OSOption.h:467
std::string unit
the unit in which CPU speed is measured
Definition OSOption.h:464
the MinDiskSpace class.
Definition OSOption.h:370
~MinDiskSpace()
Class destructor.
Definition OSOption.cpp:155
bool IsEqual(MinDiskSpace *that)
A function to check for the equality of two objects.
MinDiskSpace()
Default constructor.
Definition OSOption.cpp:145
std::string description
additional description about the disk space
Definition OSOption.h:377
std::string unit
the unit in which disk space is measured
Definition OSOption.h:374
double value
the minimum disk space required
Definition OSOption.h:380
the MinMemorySize class.
Definition OSOption.h:415
bool IsEqual(MinMemorySize *that)
A function to check for the equality of two objects.
MinMemorySize()
Default constructor.
Definition OSOption.cpp:163
double value
the minimum memory size required
Definition OSOption.h:425
std::string unit
the unit in which memory size is measured
Definition OSOption.h:419
std::string description
additional description about the memory
Definition OSOption.h:422
~MinMemorySize()
Class destructor.
Definition OSOption.cpp:173
The Option Class.
Definition OSOption.h:3565
SolverOption ** getAllSolverOptions()
Get all solver options.
OtherOption ** getAllOtherOptions()
Get the array of all other options associated with the <general>, <system>, <service> and <job> eleme...
bool setInitConValues(int numberOfCon, int *idx, double *value, std::string *name)
double getMinDiskSpace()
Get the minimum required disk space.
std::string getFileCreator()
Get the name of the person who created the file.
bool setAnotherSOSVariableBranchingWeight(int sosIdx, int nvar, double weight, int *idx, double *value, std::string *name)
bool setDirectoriesToDelete(int numberOfPaths, std::string *paths)
bool setInstanceLocationType(std::string locationType)
Set the instance location type.
bool setMinMemorySize(std::string unit, std::string description, double value)
Set the minimum memory size required for the current job.
~OSOption()
Class destructor.
std::string getInstanceLocationType()
Get the location type.
double * getInitConValuesDense()
Get the initial values associated with the constraints in dense form.
std::string * m_mdInitVarValuesStringDense
m_mdInitVarValuesStringDense holds the initial values for string-valued variables
Definition OSOption.h:3630
bool setAnOtherConstraintOption(OtherConstraintOption *optionValue)
bool setHeader(std::string name, std::string source, std::string description, std::string fileCreator, std::string licence)
A function to populate an instance of the option header element.
InitDualVarValue ** getInitDualVarValuesSparse()
Get the initial bounds associated with the dual variables in sparse form.
int getMinCPUNumber()
Get the minimum required number of CPUs.
bool setOptionInt(std::string optionName, int optionValue)
std::string * getJobDependencies()
Get the array of job dependencies.
int getNumberOfRequiredDirectories()
Get the number of required directories.
OtherConstraintOption ** getAllOtherConstraintOptions()
Get all <other> constraint options.
bool setMinDiskSpace(std::string unit, std::string description, double value)
Set the minimum disk space required for the current job.
bool setAnotherDirectoryToMake(std::string path)
int getNumberOfDirectoriesToMake()
Get the number of directories to make.
bool setIntegerVariableBranchingWeightsDense(int numberOfVar, double *value)
bool setAnOtherSystemOption(std::string name, std::string value, std::string description)
PathPair ** getOutputFilesToMove()
Get the array of output files to move.
double * m_mdInitDualVarUpperBoundsDense
m_mdInitDualVarUpperBoundsDense holds initial dual values for the upper bound of the constraints in d...
Definition OSOption.h:3672
bool setAnotherInitDualVarValue(int idx, double lbValue, double ubValue)
bool setInitVarValues(int numberOfVar, int *idx, double *value, std::string *name)
std::string getFileName()
Get the name of the file.
bool setInitDualValues(int numberOfCon, int *idx, double *lbValue, double *ubValue, std::string *name)
std::string getFileDescription()
Get a description for the file or problem.
BranchingWeight ** getIntegerVariableBranchingWeightsSparse()
Get the integer branching weights in sparse form.
bool setAnOtherJobOption(std::string name, std::string value, std::string description)
bool setInstanceName(std::string instanceName)
Set the instance name.
bool setInitVarValuesStringDense(int numberOfVar, std::string *value)
bool IsEqual(OSOption *that)
A function to check for the equality of two objects.
OptimizationOption * optimization
optimizationOption holds the fifth child of the OSOption specified by the OSoL Schema.
Definition OSOption.h:3596
bool setInitObjBoundsSparse(int numberOfObj, InitObjBound **obj)
bool setOtherObjectiveOptions(int numberOfObj, OtherObjectiveOption **obj)
std::string getContactTransportType()
Get the transport type.
int getNumberOfSOS()
Get the number of special ordered sets for which branching weights are provided.
int * m_mdInitBasisStatusDense
m_mdInitBasisStatusDense holds the initial basis status in dense form
Definition OSOption.h:3635
bool setServiceURI(std::string serviceURI)
Set the serviceURI.
bool setAnotherInitBasisStatus(int type, int idx, int status)
Set the basis status for another variable, objective or constraint/slack.
bool setSolverToInvoke(std::string solverToInvoke)
Set the solver to be invoked.
bool setFilesToDelete(int numberOfPaths, std::string *paths)
GeneralOption * general
generalOption holds the first child of the OSOption specified by the OSoL Schema.
Definition OSOption.h:3580
bool setInputFilesToMove(int numberOfPathPairs, PathPair **pathPair)
double * m_mdInitVarValuesDense
m_mdInitVarValuesDense holds the initial variable values in dense form
Definition OSOption.h:3625
int getNumberOfOtherSystemOptions()
Get the number of <other> options in the <system> element.
bool setOtherObjectiveOptionAttributes(int iOther, int numberOfObj, int numberOfEnumerations, std::string name, std::string value, std::string solver, std::string category, std::string type, std::string objType, std::string enumType, std::string description)
Set the attributes for one particular <other> <objective> option.
int getNumberOfOutputDirectoriesToMove()
Get the number of output directories to move.
int getNumberOfInputDirectoriesToMove()
Get the number of input directories to move.
bool setSolverOptionContent(int iOption, int numberOfItems, std::string name, std::string value, std::string solver, std::string category, std::string type, std::string description, std::string *itemList)
Set the attributes for one particular solver option.
double * getInitObjValuesDense()
Get the initial values associated with the objectives in dense form.
bool setInputDirectoriesToMove(int numberOfPathPairs, PathPair **pathPair)
bool setAnotherInitObjBound(int idx, double lbValue, double ubValue)
PathPair ** getOutputDirectoriesToMove()
Get the array of output directories to move.
bool setOtherConstraintOptionCon(int otherOptionNumber, int conNumber, int idx, std::string name, std::string value, std::string lbValue, std::string ubValue)
Set one <con> element associated with an <other> option in the <constraints> element.
bool setInstanceLocation(std::string instanceLocation)
Set the instance location.
int * getSlackVariableInitialBasisStatusDense(int numberOfConstraints)
Get the initial basis status for all slack variables in dense form.
bool setNumberOfOtherConstraintOptions(int numberOfOther)
int * getObjectiveInitialBasisStatusDense(int numberOfObjectives)
Get the initial basis status for all objectives in dense form.
double * getInitDualVarLowerBoundsDense()
Get the initial dual variables associated with the lower bounds in dense form.
bool setMaxTime(double value, std::string unit)
std::string * getDirectoriesToMake()
Get the array of directories to make.
bool setMaxTimeUnit(std::string unit)
std::string getMinCPUSpeedUnit()
Get the CPU speed unit.
bool setInitObjValuesDense(int numberOfObj, double *value)
double * m_mdInitObjValuesDense
m_mdInitObjValuesDense holds initial objective values in dense form
Definition OSOption.h:3645
std::string getOptionStr(std::string optionName)
Get any of the string-valued options.
bool setAnotherInitObjValue(int idx, double value)
std::string getSolverToInvoke()
Get the solver name.
std::string getMinCPUSpeedDescription()
Get the CPU speed description.
bool setInitConValuesSparse(int numberOfCon, InitConValue **con)
double * getInitObjLowerBoundsDense()
Get the initial lower bounds associated with the objectives in dense form.
std::vector< OtherConstraintOption * > getOtherConstraintOptions(std::string solver_name)
Get the array of other constraint options.
bool setInitObjValuesSparse(int numberOfObj, InitObjValue **obj)
bool setMinCPUSpeedUnit(std::string unit)
bool setNumberOfOtherObjectiveOptions(int numberOfOther)
OSOption()
Default constructor.
InitObjBound ** getInitObjBoundsSparse()
Get the initial bounds associated with the objectives in sparse form.
bool setJobID(std::string jobID)
Set the job ID.
bool setInitBasisStatusSparse(int numberOfVar, InitBasStatus **var)
int getNumberOfRequiredFiles()
Get the number of required files.
bool setOtherJobOptions(int numberOfOptions, OtherOption **other)
int getNumberOfConstraints()
Get the number of constraints in the instance.
std::string getMaxTimeUnit()
Get the time unit.
bool setContact(std::string contact)
Set the contact information.
double getMinCPUSpeed()
Get the minimum required CPU speed.
std::string getJobID()
Get the job ID.
int * getVariableInitialBasisStatusDense(int numberOfVariables)
Get the initial basis status for all variables in dense form.
InitConValue ** getInitConValuesSparse()
Get the initial values associated with the constraints in sparse form.
std::string getMinMemoryDescription()
get the memory description
bool setInitVarValuesStringSparse(int numberOfVar, InitVarValueString **var)
bool setAnotherInputFileToMove(std::string fromPath, std::string toPath, bool makeCopy)
double getMinMemorySize()
Get the minimum required memory.
double * getInitDualVarUpperBoundsDense()
Get the initial dual variables associated with the upper bounds in dense form.
std::string * getRequiredDirectories()
Get the array of required directories.
std::string getServiceType()
Get the service type.
bool setAnOtherGeneralOption(std::string name, std::string value, std::string description)
Add another general option to the <other> option array.
bool setMinMemoryUnit(std::string unit)
bool setOtherServiceOptions(int numberOfOptions, OtherOption **other)
std::string getPassword()
Get the password.
bool setRequiredFiles(int numberOfPaths, std::string *paths)
bool setSolverOptions(int numberOfSolverOptions, SolverOption **solverOption)
bool setNumberOfSolverOptions(int numberOfOptions)
bool setOptionStr(std::string optionName, std::string optionValue)
std::string getMinCPUNumberDescription()
Get the CPU description.
bool deepCopyFrom(OSOption *that)
A function to make a deep copy of an OSOption object.
InitVarValueString ** getInitVarValuesStringSparse()
Get the initial value strings associated with the variables in sparse form.
bool setInitObjBounds(int numberOfObj, int *idx, double *lbValue, double *ubValue, std::string *name)
OtherVariableOption ** getAllOtherVariableOptions()
Get all <other> variable options.
bool setInitBasisStatusDense(int numberOfVar, std::string *var)
bool setOtherVariableOptionVar(int otherOptionNumber, int varNumber, int idx, std::string name, std::string value, std::string lbValue, std::string ubValue)
Set one element associated with an <other> option in the <variables> element.
std::string getContact()
Get the contact information.
OtherObjectiveOption * getOtherObjectiveOption(int optionNumber)
Get one particular <other> objective option from the array of options.
int getNumberOfInitObjBounds()
Get the number of initial objective bounds.
bool setInitObjValues(int numberOfObj, int *idx, double *value, std::string *name)
bool setOtherVariableOptions(int numberOfVar, OtherVariableOption **var)
int getNumberOfProcessesToKill()
Get the number of processes to kill.
bool setAnotherInitVarValueString(int idx, std::string value)
std::string getLicense()
Get the license string.
OtherOption ** getOtherServiceOptions()
Get the array of other options associated with the <service> element.
int getNumberOfOtherServiceOptions()
Get the number of <other> options in the <service> element.
InitVarValue ** getInitVarValuesSparse()
Get the initial values associated with the variables in sparse form.
bool setAnOtherServiceOption(std::string name, std::string value, std::string description)
bool setInitDualVarValuesSparse(int numberOfCon, InitDualVarValue **con)
bool setOutputDirectoriesToMove(int numberOfPathPairs, PathPair **pathPair)
bool setAnotherProcessToKill(std::string process)
OtherOption ** getOtherGeneralOptions()
Get the array of other options associated with the <general> element.
std::string getMinMemoryUnit()
Get the memory unit.
OtherOption ** getOtherJobOptions()
Get the array of other options associated with the <job> element.
bool setInitVarValuesDense(int numberOfVar, double *value)
bool setAnOtherObjectiveOption(OtherObjectiveOption *objOption)
int getNumberOfInitObjValues()
Get the number of initial objective values.
bool setOptionDbl(std::string optionName, double value)
bool setNumberOfObjectives(int numberOfObjectives)
std::string * getFilesToDelete()
Get the array of files to delete.
PathPair ** getInputFilesToMove()
Get the array of input files to move.
std::string getInstanceName()
Get the instance name.
bool setAnotherInitVarValue(int idx, double value)
bool setInitBasisStatus(int object, int status, int *i, int ni)
PathPair ** getInputDirectoriesToMove()
Get the array of input directories to move.
bool setDirectoriesToMake(int numberOfPaths, std::string *paths)
GeneralFileHeader * optionHeader
OSOption has a header and five other children: general, system, service, job, and optimization.
Definition OSOption.h:3576
bool setIntegerVariableBranchingWeightsSparse(int numberOfVar, BranchingWeight **var)
int getNumberOfIntegerVariableBranchingWeights()
Get the number of variables for which integer branching weights are provided.
bool setAnotherOutputDirectoryToMove(std::string fromPath, std::string toPath, bool makeCopy)
bool setInitBasisStatusSparse(int numberOfVar, InitBasStatus **var, ENUM_COMBINE_ARRAYS disp)
int getNumberOfFilesToDelete()
Get the number of files to delete.
int getNumberOfSOSVarBranchingWeights(int iSOS)
Get the number of variables for which branching weights are provided in a particular SOS.
bool setAnotherFileToMake(std::string path)
int getNumberOfDirectoriesToDelete()
Get the number of directories to delete.
std::string * getFilesToMake()
Get the array of files to make.
std::string getMinDiskSpaceDescription()
get the disk space description
std::string getFileSource()
Get the source of the file or problem.
double * m_mdInitConValuesDense
m_mdInitConValuesDense holds initial constraint values in dense form
Definition OSOption.h:3660
int getNumberOfInitVarValues()
Get the number of initial variable values.
bool setUserName(std::string userName)
Set the username.
bool setOutputFilesToMove(int numberOfPathPairs, PathPair **pathPair)
int getNumberOfInitialBasisElements(int type, int status)
Get the number of initial basis elements for a particular variable type and basis status.
bool setInitDualVarValuesDense(int numberOfCon, double *lb, double *ub)
bool setFilesToMake(int numberOfPaths, std::string *paths)
bool setAnotherOutputFileToMove(std::string fromPath, std::string toPath, bool makeCopy)
std::vector< OtherObjectiveOption * > getOtherObjectiveOptions(std::string solver_name)
Get the array of other objective options.
bool setAnotherInputDirectoryToMove(std::string fromPath, std::string toPath, bool makeCopy)
bool setNumberOfVariables(int numberOfVariables)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double getOptionDbl(std::string optionName)
Get any of the double-valued options.
double * getInitVarValuesDense()
Get the initial values associated with the variables in dense form.
OtherConstraintOption * getOtherConstraintOption(int optionNumber)
Get one particular <other> constraint option from the array of options.
std::string getServiceURI()
Get the service URI.
bool setAnotherRequiredDirectory(std::string path)
bool setAnotherRequiredFile(std::string path)
bool setOtherSystemOptions(int numberOfOptions, OtherOption **other)
int getNumberOfOtherVariableOptions()
Get the number of other variable options.
ServiceOption * service
serviceOption holds the third child of the OSOption specified by the OSoL Schema.
Definition OSOption.h:3588
bool setOtherOptionOrResultEnumeration(int object, int otherOptionNumber, int enumerationNumber, int numberOfEl, std::string value, std::string description, int *idxArray)
Set one enumeration associated with an <other> option in the <variables>, <objectives> or <constraint...
std::string getUserName()
Get the user name.
bool setInitConValuesDense(int numberOfCon, double *value)
double getMaxTime()
Get the maximum allowed time.
OtherOption ** getOtherOptions(std::string elementName)
Get the array of other options associated with any element.
bool setAnOtherVariableOption(OtherVariableOption *varOption)
bool setContactTransportType(std::string transportType)
Set the transport type for contact.
SystemOption * system
systemOption holds the second child of the OSOption specified by the OSoL Schema.
Definition OSOption.h:3584
double * getInitObjUpperBoundsDense()
Get the initial upper bounds associated with the objectives in dense form.
int getNumberOfOtherJobOptions()
Get the number of <other> options in the <job> element.
bool setAnotherJobDependency(std::string jobID)
bool setOtherObjectiveOptionObj(int otherOptionNumber, int objNumber, int idx, std::string name, std::string value, std::string lbValue, std::string ubValue)
Set one <obj> element associated with an <other> option in the <objectives> element.
double * m_mdInitObjUpperBoundsDense
m_mdInitObjUpperBoundsDense holds initial upper bounds for the objectives in dense form
Definition OSOption.h:3655
OtherObjectiveOption ** getAllOtherObjectiveOptions()
Get all <other> objective options.
bool setMinCPUSpeed(std::string unit, std::string description, double value)
Set the minimum CPU speed required for the current job.
bool setAnotherDirectoryToDelete(std::string path)
bool setMinCPUNumber(int number, std::string description)
Set the minimum number of CPU cores required for the current job.
bool setRequiredDirectories(int numberOfPaths, std::string *paths)
bool setProcessesToKill(int numberOfProcesses, std::string *processes)
bool setServiceName(std::string serviceName)
Set the service name.
int getOptionInt(std::string optionName)
Get any of the integer-valued options.
bool setAnotherFileToDelete(std::string path)
InitBasStatus ** getInitBasisStatusSparse()
Get the initial basis status in sparse form.
std::string getRequestedStartTime()
Get the requested starting time.
SOSWeights ** getSOSVariableBranchingWeightsSparse()
Get the SOS branching weights in sparse form.
bool setPassword(std::string password)
Set the password.
int getNumberOfInputFilesToMove()
Get the number of input files to move.
int getNumberOfInitDualVarValues()
Get the number of initial dual variable values.
bool setAnotherIntegerVariableBranchingWeight(int idx, double value)
std::vector< SolverOption * > getSolverOptions(std::string solver_name)
Get the options associated with a given solver.
std::string * getProcessesToKill()
Get the array of processes to kill.
std::string getInstanceLocation()
Get the instance location.
bool setOtherGeneralOptions(int numberOfOptions, OtherOption **other)
Set the other general options as an entire array.
std::string * getRequiredFiles()
Get the array of required files.
bool setSOSVariableBranchingWeights(int numberOfSOS, SOSWeights **sos)
int getNumberOfInitVarValuesString()
Get the number of initial variable strings.
int getNumberOfJobDependencies()
Get the number of job dependencies.
bool setInitVarValuesString(int numberOfVar, int *idx, std::string *value, std::string *name)
bool setOtherVariableOptionAttributes(int iOther, int numberOfVar, int numberOfEnumerations, std::string name, std::string value, std::string solver, std::string category, std::string type, std::string varType, std::string enumType, std::string description)
Set the attributes for one particular <other> <variable> option.
bool setNumberOfOtherVariableOptions(int numberOfOther)
int getNumberOfOtherConstraintOptions()
Get the number of other constraint options.
bool setIntegerVariableBranchingWeights(int numberOfVar, int *idx, double *value, std::string *name)
bool setRequestedStartTime(std::string time)
OtherOption ** getOtherSystemOptions()
Get the array of other options associated with the <system> element.
bool setAnotherSolverOption(std::string name, std::string value, std::string solver, std::string category, std::string type, std::string description)
bool setInitObjBoundsDense(int numberOfObj, double *lb, double *ub)
int getNumberOfInitConValues()
Get the number of initial constraint values.
int getNumberOfVariables()
Get the number of variables in the instance.
bool setPathPairs(int object, std::string *from, std::string *to, bool *makeCopy, int numberOfPathPairs)
setPathPairs set a number of path pairs into the OSOption object
double * m_mdInitDualVarLowerBoundsDense
m_mdInitDualVarLowerBoundsDense holds initial dual values for the lower bound of the constraints in d...
Definition OSOption.h:3666
int getNumberOfOtherGeneralOptions()
Get the number of <other> options in the <general> element.
std::string * getInitBasisStatusDense()
Get the initial basis information in dense form.
int getNumberOfFilesToMake()
Get the number of files to make.
int getNumberOfObjectives()
Get the number of objectives in the instance.
std::string getMinDiskSpaceUnit()
Get the disk space unit.
bool setServiceType(std::string serviceType)
set() options in the <service> element
double * getIntegerVariableBranchingWeightsDense()
Get the integer branching weights in dense form.
bool setLicense(std::string license)
Set the license information.
bool setInitVarValuesSparse(int numberOfVar, InitVarValue **var)
JobOption * job
jobOption holds the fourth child of the OSOption specified by the OSoL Schema.
Definition OSOption.h:3592
std::vector< OtherVariableOption * > getOtherVariableOptions(std::string solver_name)
Get the <other> variable options associated with a particular solver.
int getNumberOfSolverOptions()
Get the number of solver options.
bool setMinDiskSpaceUnit(std::string unit)
std::string * getInitVarValuesStringDense()
Get the initial value strings associated with the variables in dense form.
bool setOtherConstraintOptionAttributes(int iOther, int numberOfCon, int numberOfEnumerations, std::string name, std::string value, std::string solver, std::string category, std::string type, std::string conType, std::string enumType, std::string description)
Set the attributes for one particular <other> <constraint> option.
bool setAnotherInitConValue(int idx, double value)
std::string getFileLicence()
Get licence information associated with the file.
int getNumberOfOutputFilesToMove()
Get the number of output files to move.
std::string * getDirectoriesToDelete()
Get the array of directories to delete.
double * m_mdIntegerVariableBranchingWeightsDense
m_mdIntegerVariableBranchingWeightsDense holds the branching weights for integer variables
Definition OSOption.h:3640
bool getInitialBasisElements(int type, int status, int *elem)
Get the initial basis elements for a particular variable type and basis status.
bool setNumberOfConstraints(int numberOfConstraints)
std::string getServiceName()
Get the service name.
int getNumberOfOtherObjectiveOptions()
Get the number of other objective options.
double * m_mdInitObjLowerBoundsDense
m_mdInitObjLowerBoundsDense holds initial lower bounds for the objectives in dense form
Definition OSOption.h:3650
InitObjValue ** getInitObjValuesSparse()
Get the initial values associated with the objectives in sparse form.
OtherVariableOption * getOtherVariableOption(int optionNumber)
Get one particular <other> variable option from the array of options.
bool setOtherConstraintOptions(int numberOfOptions, OtherConstraintOption **other)
bool setJobDependencies(int numberOfDependencies, std::string *jobDependencies)
the ObjectiveOption class.
Definition OSOption.h:2682
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfOtherObjectiveOptions
number of <other> child elements
Definition OSOption.h:2686
OtherObjectiveOption ** other
other information about the objectives
Definition OSOption.h:2698
InitObjectiveValues * initialObjectiveValues
initial values for the objectives
Definition OSOption.h:2689
BasisStatus * initialBasisStatus
initial basis status for the objectives
Definition OSOption.h:2695
bool addOther(OtherObjectiveOption *other)
A function to add an <other> element.
bool setOther(int numberOfOptions, OtherObjectiveOption **other)
A function to set an array of <other> elements.
ObjectiveOption()
Default constructor.
Definition OSOption.cpp:945
bool IsEqual(ObjectiveOption *that)
A function to check for the equality of two objects.
InitObjectiveBounds * initialObjectiveBounds
initial bounds for the objectives
Definition OSOption.h:2692
bool deepCopyFrom(ObjectiveOption *that)
A function to make a deep copy of an instance of this class.
~ObjectiveOption()
Class destructor.
Definition OSOption.cpp:957
the OptimizationOption class.
Definition OSOption.h:3496
OptimizationOption()
Default constructor.
VariableOption * variables
the options for the variables
Definition OSOption.h:3509
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfConstraints
the number of constraints
Definition OSOption.h:3506
ObjectiveOption * objectives
the options for the objectives
Definition OSOption.h:3512
SolverOptions * solverOptions
other solver options
Definition OSOption.h:3518
~OptimizationOption()
Class destructor.
bool IsEqual(OptimizationOption *that)
A function to check for the equality of two objects.
ConstraintOption * constraints
the options for the constraints
Definition OSOption.h:3515
int numberOfObjectives
the number of objectives
Definition OSOption.h:3503
int numberOfVariables
the number of variables
Definition OSOption.h:3500
bool deepCopyFrom(OptimizationOption *that)
A function to make a deep copy of an instance of this class.
the OtherConOption class.
Definition OSOption.h:3092
std::string lbValue
lower bound of the option
Definition OSOption.h:3105
~OtherConOption()
Class destructor.
std::string ubValue
upper bound of the option
Definition OSOption.h:3108
bool deepCopyFrom(OtherConOption *that)
A function to make a deep copy of an instance of this class.
std::string name
optional variable name
Definition OSOption.h:3099
bool IsEqual(OtherConOption *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.
int idx
variable index
Definition OSOption.h:3096
std::string value
value of the option
Definition OSOption.h:3102
OtherConOption()
Default constructor.
the OtherConstraintOption class.
Definition OSOption.h:3157
std::string conType
type of the values in the con array
Definition OSOption.h:3188
std::string category
name of the category into which this option falls
Definition OSOption.h:3176
std::string name
name of the option
Definition OSOption.h:3167
int numberOfCon
number of <con> children
Definition OSOption.h:3161
OtherConstraintOption()
Default constructor.
OtherConOption ** con
array of option values
Definition OSOption.h:3185
std::string type
type of the option value (integer, double, boolean, string)
Definition OSOption.h:3179
OtherOptionOrResultEnumeration ** enumeration
Definition OSOption.h:3194
std::string description
description of the option
Definition OSOption.h:3182
std::string solver
name of the solver to which this option applies
Definition OSOption.h:3173
std::string enumType
type of the values in the enumeration array
Definition OSOption.h:3197
~OtherConstraintOption()
Class destructor.
bool setCon(int numberOfCon, OtherConOption **con)
A function to set an array of <con> elements.
bool IsEqual(OtherConstraintOption *that)
A function to check for the equality of two objects.
int numberOfEnumerations
number of <enumeration> child elements
Definition OSOption.h:3164
bool deepCopyFrom(OtherConstraintOption *that)
A function to make a deep copy of an instance of this class.
bool addCon(int idx, std::string value, std::string lbValue, std::string ubValue)
A function to add a <con> element.
std::string value
value of the option
Definition OSOption.h:3170
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
the OtherObjOption class.
Definition OSOption.h:2510
std::string ubValue
lower bound on the value
Definition OSOption.h:2527
std::string lbValue
lower bound on the value
Definition OSOption.h:2524
OtherObjOption()
Default constructor.
Definition OSOption.cpp:878
std::string name
optional variable name
Definition OSOption.h:2517
~OtherObjOption()
Class destructor.
Definition OSOption.cpp:890
bool deepCopyFrom(OtherObjOption *that)
A function to make a deep copy of an instance of this class.
int idx
variable index
Definition OSOption.h:2514
std::string value
value of the option
Definition OSOption.h:2520
bool IsEqual(OtherObjOption *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.
the OtherObjectiveOption class.
Definition OSOption.h:2575
OtherObjOption ** obj
array of option values
Definition OSOption.h:2603
int numberOfObj
number of <obj> children
Definition OSOption.h:2579
bool addObj(int idx, std::string value, std::string lbValue, std::string ubValue)
A function to add a <obj> element.
std::string name
name of the option
Definition OSOption.h:2585
bool IsEqual(OtherObjectiveOption *that)
A function to check for the equality of two objects.
bool deepCopyFrom(OtherObjectiveOption *that)
A function to make a deep copy of an instance of this class.
std::string value
value of the option
Definition OSOption.h:2588
std::string solver
name of the solver to which this option applies
Definition OSOption.h:2591
int numberOfEnumerations
number of <enumeration> child elements
Definition OSOption.h:2582
bool setObj(int numberOfObj, OtherObjOption **obj)
A function to set an array of <obj> elements.
std::string objType
type of the values in the obj array
Definition OSOption.h:2606
std::string category
name of the category into which this option falls
Definition OSOption.h:2594
~OtherObjectiveOption()
Class destructor.
Definition OSOption.cpp:917
std::string type
type of the option value (integer, double, boolean, string)
Definition OSOption.h:2597
std::string description
description of the option
Definition OSOption.h:2600
std::string enumType
type of the values in the enumeration array
Definition OSOption.h:2615
OtherObjectiveOption()
Default constructor.
Definition OSOption.cpp:898
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherOptionOrResultEnumeration ** enumeration
Definition OSOption.h:2612
the OtherOption class.
Definition OSOption.h:153
std::string value
the value of the option
Definition OSOption.h:160
bool IsEqual(OtherOption *that)
A function to check for the equality of two objects.
~OtherOption()
Class destructor.
Definition OSOption.cpp:76
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherOption()
Default constructor.
Definition OSOption.cpp:66
bool deepCopyFrom(OtherOption *that)
A function to make a deep copy of an instance of this class.
std::string description
the description of the option
Definition OSOption.h:163
std::string name
the name of the option
Definition OSOption.h:157
the OtherOptions class.
Definition OSOption.h:212
bool addOther(std::string name, std::string value, std::string description)
A function to add an <other> element.
~OtherOptions()
Class destructor.
Definition OSOption.cpp:93
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherOption ** other
the list of other options
Definition OSOption.h:219
int numberOfOtherOptions
the number of other options
Definition OSOption.h:216
bool IsEqual(OtherOptions *that)
A function to check for the equality of two objects.
bool deepCopyFrom(OtherOptions *that)
A function to make a deep copy of an instance of this class.
bool setOther(int numberOfOptions, OtherOption **other)
A function to set an array of <other> elements.
OtherOptions()
Default constructor.
Definition OSOption.cpp:84
the OtherVarOption class.
Definition OSOption.h:1928
std::string value
value of the option
Definition OSOption.h:1938
std::string ubValue
lower bound on the value
Definition OSOption.h:1944
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string name
optional variable name
Definition OSOption.h:1935
~OtherVarOption()
Class destructor.
Definition OSOption.cpp:684
int idx
variable index
Definition OSOption.h:1932
OtherVarOption()
Default constructor.
Definition OSOption.cpp:672
bool deepCopyFrom(OtherVarOption *that)
A function to make a deep copy of an instance of this class.
std::string lbValue
lower bound on the value
Definition OSOption.h:1941
bool IsEqual(OtherVarOption *that)
A function to check for the equality of two objects.
the OtherVariableOption class.
Definition OSOption.h:1990
int numberOfVar
number of child elements
Definition OSOption.h:1994
int numberOfEnumerations
number of <enumeration> child elements
Definition OSOption.h:1997
std::string type
type of the option value (integer, double, boolean, string)
Definition OSOption.h:2012
std::string name
name of the option
Definition OSOption.h:2000
std::string solver
name of the solver to which this option applies
Definition OSOption.h:2006
OtherVariableOption()
Default constructor.
Definition OSOption.cpp:692
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string enumType
type of the values in the enumeration array
Definition OSOption.h:2030
~OtherVariableOption()
Class destructor.
Definition OSOption.cpp:712
bool IsEqual(OtherVariableOption *that)
A function to check for the equality of two objects.
bool deepCopyFrom(OtherVariableOption *that)
A function to make a deep copy of an instance of this class.
OtherOptionOrResultEnumeration ** enumeration
Definition OSOption.h:2027
bool setVar(int numberOfVar, OtherVarOption **var)
A function to set an array of elements.
std::string category
name of the category into which this option falls
Definition OSOption.h:2009
OtherVarOption ** var
array of option values
Definition OSOption.h:2018
bool addVar(int idx, std::string value, std::string lbValue, std::string ubValue)
A function to add a element.
std::string description
description of the option
Definition OSOption.h:2015
std::string varType
type of the values in the var array
Definition OSOption.h:2021
std::string value
value of the option
Definition OSOption.h:2003
the PathPair class.
Definition OSOption.h:852
bool IsEqual(PathPair *that)
A function to check for the equality of two objects.
std::string from
the file or directory to move/copy from
Definition OSOption.h:856
PathPair()
Default constructor.
Definition OSOption.cpp:309
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
~PathPair()
Class destructor.
Definition OSOption.cpp:319
bool deepCopyFrom(PathPair *that)
A function to make a deep copy of an instance of this class.
bool makeCopy
record whether a copy is to be made
Definition OSOption.h:862
std::string to
the file or directory to move/copy to
Definition OSOption.h:859
the PathPairs class.
Definition OSOption.h:911
PathPair ** pathPair
the list of directory and file paths
Definition OSOption.h:918
bool setPathPair(int numberOfPathPairs, PathPair **pathPair)
A function to set an array of <pathPair> elements.
PathPairs()
Default constructor.
Definition OSOption.cpp:327
bool addPathPair(std::string fromPath, std::string toPath, bool makeCopy)
A function to add a <pathPair> element.
bool deepCopyFrom(PathPairs *that)
A function to make a deep copy of an instance of this class.
~PathPairs()
Class destructor.
Definition OSOption.cpp:336
int numberOfPathPairs
the number of <path> children
Definition OSOption.h:915
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(PathPairs *that)
A function to check for the equality of two objects.
the Processes class.
Definition OSOption.h:994
std::string * process
the list of processes
Definition OSOption.h:1001
bool setProcess(int numberOfProcesses, std::string *process)
A function to set an array of <process> elements.
Processes()
Default constructor.
Definition OSOption.cpp:356
bool IsEqual(Processes *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 deepCopyFrom(Processes *that)
A function to make a deep copy of an instance of this class.
int numberOfProcesses
the number of <process> children
Definition OSOption.h:998
~Processes()
Class destructor.
Definition OSOption.cpp:365
bool addProcess(std::string process)
A function to add a <process> element.
the SOSVariableBranchingWeights class.
Definition OSOption.h:1854
bool deepCopyFrom(SOSVariableBranchingWeights *that)
A function to make a deep copy of an instance of this class.
bool addSOS(int sosIdx, int nvar, double weight, int *idx, double *value, std::string *name)
A function to add an <sos> element.
SOSWeights ** sos
branching weights for the SOS
Definition OSOption.h:1861
bool IsEqual(SOSVariableBranchingWeights *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 setSOS(int numberOfSOS, SOSWeights **sos)
A function to set an array of <sos> elements.
int numberOfSOS
number of <sos> children
Definition OSOption.h:1858
SOSVariableBranchingWeights()
Default constructor.
Definition OSOption.cpp:645
~SOSVariableBranchingWeights()
Class destructor.
Definition OSOption.cpp:654
the SOSWeights class.
Definition OSOption.h:1776
bool deepCopyFrom(SOSWeights *that)
A function to make a deep copy of an instance of this class.
SOSWeights()
Default constructor.
Definition OSOption.cpp:616
bool addVar(int idx, double value)
A function to add a element.
bool setVar(int numberOfVar, BranchingWeight **var)
A function to set an array of elements.
BranchingWeight ** var
branching weights for individual variables
Definition OSOption.h:1789
int sosIdx
index of the SOS (to match the OSiL file)
Definition OSOption.h:1780
~SOSWeights()
Class destructor.
Definition OSOption.cpp:627
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfVar
number of children
Definition OSOption.h:1786
double groupWeight
branching weight for the entire SOS
Definition OSOption.h:1783
bool IsEqual(SOSWeights *that)
A function to check for the equality of two objects.
the ServiceOption class.
Definition OSOption.h:611
ServiceOption()
Default constructor.
Definition OSOption.cpp:245
std::string type
the service type
Definition OSOption.h:615
bool deepCopyFrom(ServiceOption *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(ServiceOption *that)
A function to check for the equality of two objects.
OtherOptions * otherOptions
the list of other service options
Definition OSOption.h:618
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
~ServiceOption()
Class destructor.
Definition OSOption.cpp:254
the SolverOption class.
Definition OSOption.h:3345
std::string * item
the list of items of the option
Definition OSOption.h:3370
std::string value
the value of the option
Definition OSOption.h:3352
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool deepCopyFrom(SolverOption *that)
A function to make a deep copy of an instance of this class.
~SolverOption()
Class destructor.
std::string solver
the solver to which the option applies
Definition OSOption.h:3355
std::string description
the description of the option
Definition OSOption.h:3364
std::string type
the type of the option value (integer, double, boolean, string)
Definition OSOption.h:3361
SolverOption()
Default constructor.
std::string category
the category to which the option belongs
Definition OSOption.h:3358
int numberOfItems
the number of items (additional pieces of data) of the option
Definition OSOption.h:3367
std::string name
the name of the option
Definition OSOption.h:3349
bool IsEqual(SolverOption *that)
A function to check for the equality of two objects.
the SolverOptions class.
Definition OSOption.h:3419
bool IsEqual(SolverOptions *that)
A function to check for the equality of two objects.
bool addSolverOption(std::string name, std::string value, std::string solver, std::string category, std::string type, std::string description)
A function to add a solver option.
bool setSolverOptions(int numberOfOptions, SolverOption **solverOption)
A function to set an array of solver options.
SolverOptions()
Default constructor.
bool deepCopyFrom(SolverOptions *that)
A function to make a deep copy of an instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
~SolverOptions()
Class destructor.
SolverOption ** solverOption
the list of solver options
Definition OSOption.h:3426
int numberOfSolverOptions
the number of solver options
Definition OSOption.h:3423
the StorageCapacity class.
Definition OSGeneral.h:755
the SystemOption class.
Definition OSOption.h:546
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool deepCopyFrom(SystemOption *that)
A function to make a deep copy of an instance of this class.
StorageCapacity * minDiskSpace
the minimum disk space required
Definition OSOption.h:550
StorageCapacity * minMemorySize
the minimum memory required
Definition OSOption.h:553
CPUSpeed * minCPUSpeed
the minimum CPU speed required
Definition OSOption.h:556
CPUNumber * minCPUNumber
the minimum number of processors required
Definition OSOption.h:559
SystemOption()
Default constructor.
Definition OSOption.cpp:215
OtherOptions * otherOptions
the list of other system options
Definition OSOption.h:562
~SystemOption()
Class destructor.
Definition OSOption.cpp:227
bool IsEqual(SystemOption *that)
A function to check for the equality of two objects.
the TimeSpan class.
Definition OSGeneral.h:925
the VariableOption class.
Definition OSOption.h:2097
BasisStatus * initialBasisStatus
initial basis information
Definition OSOption.h:2110
int numberOfOtherVariableOptions
number of <other> child elements
Definition OSOption.h:2101
VariableOption()
Default constructor.
Definition OSOption.cpp:740
~VariableOption()
Class destructor.
Definition OSOption.cpp:754
bool setOther(int numberOfOptions, OtherVariableOption **other)
A function to set an array of <other> elements.
InitVariableValuesString * initialVariableValuesString
initial values for string-valued variables
Definition OSOption.h:2107
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool addOther(OtherVariableOption *other)
A function to add an <other> element.
bool deepCopyFrom(VariableOption *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(VariableOption *that)
A function to check for the equality of two objects.
OtherVariableOption ** other
other variable options
Definition OSOption.h:2119
SOSVariableBranchingWeights * sosVariableBranchingWeights
branching weights for SOS variables and groups
Definition OSOption.h:2116
InitVariableValues * initialVariableValues
initial values for the variables
Definition OSOption.h:2104
IntegerVariableBranchingWeights * integerVariableBranchingWeights
branching weights for integer variables
Definition OSOption.h:2113
ENUM_COMBINE_ARRAYS
An enum to streamline set() methods of vectors.