18 #include "OSParameters.h"
23 #include "CoinFinite.hpp"
33 locationType (
"local"),
50 transportType (
"osp"),
85 numberOfOtherOptions(0)
379 requestedStartTime(
"")
694 numberOfEnumerations(0),
741 numberOfOtherVariableOptions(0)
774 if (
other[i] != NULL)
900 numberOfEnumerations(0),
946 numberOfOtherObjectiveOptions (0)
1097 numberOfEnumerations(0),
1123 if (
con[i]!= NULL)
delete con[i];
1143 numberOfOtherConstraintOptions (0)
1205 numberOfSolverOptions(0)
1233 numberOfVariables (-1),
1234 numberOfObjectives (-1),
1235 numberOfConstraints (-1)
1300 if (
job != NULL)
delete job;
1554 if (this->
system != NULL)
1566 if (this->
system != NULL)
1578 if (this->
system != NULL)
1590 if (this->
system != NULL)
1602 if (this->
system != NULL)
1614 if (this->
system != NULL)
1626 if (this->
system != NULL)
1649 if (this->
job != NULL)
1661 if (this->
job != NULL)
1675 if (optionName ==
"serviceURI")
1678 if (optionName ==
"serviceName")
1681 if (optionName ==
"instanceName")
1684 if (optionName ==
"instanceLocation")
1687 if (optionName ==
"instanceLocationType")
1690 if (optionName ==
"jobID")
1693 if (optionName ==
"solverToInvoke")
1696 if (optionName ==
"license")
1699 if (optionName ==
"userName")
1702 if (optionName ==
"password")
1705 if (optionName ==
"contact")
1708 if (optionName ==
"contactTransportType")
1711 if (optionName ==
"minDiskSpaceUnit")
1714 if (optionName ==
"minMemoryUnit")
1717 if (optionName ==
"minCPUSpeedUnit")
1720 if (optionName ==
"serviceType")
1723 if (optionName ==
"maxTimeUnit")
1726 if (optionName ==
"requestedStartTime")
1741 if (this->
system != NULL)
1753 if (this->
system != NULL)
1765 if (this->
system != NULL)
1777 if (this->
job != NULL)
1792 if (optionName ==
"minDiskSpace")
1795 if (optionName ==
"minMemory")
1798 if (optionName ==
"minCPUSpeed")
1801 if (optionName ==
"maxTime")
1816 if (this->
system != NULL)
1839 if (this->
system != NULL)
1863 if (this->
job != NULL)
1875 if (this->
job != NULL)
1887 if (this->
job != NULL)
1899 if (this->
job != NULL)
1911 if (this->
job != NULL)
1923 if (this->
job != NULL)
1935 if (this->
job != NULL)
1947 if (this->
job != NULL)
1959 if (this->
job != NULL)
1971 if (this->
job != NULL)
1983 if (this->
job != NULL)
1995 if (this->
job != NULL)
2007 if (this->
job != NULL)
2224 if (optionName ==
"minCPUNumber")
2227 if (optionName ==
"numberOfOtherGeneralOptions")
2230 if (optionName ==
"numberOfOtherSystemOptions")
2233 if (optionName ==
"numberOfOtherServiceOptions")
2236 if (optionName ==
"numberOfOtherJobOptions")
2239 if (optionName ==
"numberOfJobDependencies")
2242 if (optionName ==
"numberOfRequiredDirectories")
2245 if (optionName ==
"numberOfRequiredFiles")
2248 if (optionName ==
"numberOfDirectoriesToMake")
2251 if (optionName ==
"numberOfFilesToMake")
2254 if (optionName ==
"numberOfInputDirectoriesToMove")
2257 if (optionName ==
"numberOfInputFilesToMove")
2260 if (optionName ==
"numberOfOutputDirectoriesToMove")
2263 if (optionName ==
"numberOfOutputFilesToMove")
2266 if (optionName ==
"numberOfFilesToDelete")
2269 if (optionName ==
"numberOfDirectoriesToDelete")
2272 if (optionName ==
"numberOfProcessesToKill")
2275 if (optionName ==
"numberOfVariables")
2278 if (optionName ==
"numberOfObjectives")
2281 if (optionName ==
"numberOfConstraints")
2284 if (optionName ==
"numberOfInitVarValues")
2287 if (optionName ==
"numberOfInitVarValuesString")
2290 if (optionName ==
"numberOfIntegerVariableBranchingWeights")
2293 if (optionName ==
"numberOfSOS")
2296 if (optionName ==
"numberOfOtherVariableOptions")
2299 if (optionName ==
"numberOfInitObjValues")
2302 if (optionName ==
"numberOfInitObjBounds")
2305 if (optionName ==
"numberOfOtherObjectiveOptions")
2308 if (optionName ==
"numberOfInitConValues")
2311 if (optionName ==
"numberOfInitDualVarValues")
2314 if (optionName ==
"numberOfOtherConstraintOptions")
2317 if (optionName ==
"numberOfSolverOptions")
2346 if (this->
system != NULL)
2372 if (this->
job != NULL)
2388 if (category ==
"general")
2391 if (category ==
"system")
2394 if (category ==
"service")
2397 if (category ==
"job")
2409 int prev_options[4];
2414 for (i = 0; i < 4; i++)
2416 prev_options[i] = 0;
2424 num_options[0] = num_opt;
2428 if (this->
system != NULL)
2433 num_options[1] = num_opt;
2436 prev_options[1] = prev_options[0] + num_options[0];
2443 num_options[2] = num_opt;
2446 prev_options[2] = prev_options[1] + num_options[1];
2448 if (this->
job != NULL)
2453 num_options[3] = num_opt;
2456 prev_options[3] = prev_options[2] + num_options[2];
2458 num_opt = num_options[0] + num_options[1] + num_options[2] + num_options[3];
2461 if (num_options[0] > 0)
2463 for (i = 0; i < num_options[0]; i++)
2469 if (num_options[1] > 0)
2471 for (i = 0; i < num_options[1]; i++)
2477 if (num_options[2] > 0)
2479 for (i = 0; i < num_options[2]; i++)
2485 if (num_options[3] > 0)
2487 for (i = 0; i < num_options[3]; i++)
2493 return optionVector;
2501 std::string* dependenciesVector = NULL;
2502 if (this->
job != NULL)
2507 throw ErrorClass(
"<dependencies> object must be defined before getting the jobIDs");
2510 throw ErrorClass(
"<job> object must be defined before getting the jobIDs");
2512 return dependenciesVector;
2520 std::string* pathVector = NULL;
2521 if (this->
job != NULL)
2526 throw ErrorClass(
"<requiredDirectories> object must be defined before getting the paths");
2529 throw ErrorClass(
"<job> object must be defined before getting the paths");
2538 std::string* pathVector = NULL;
2539 if (this->
job != NULL)
2544 throw ErrorClass(
"<requiredFiles> object must be defined before getting the paths");
2547 throw ErrorClass(
"<job> object must be defined before getting the paths");
2556 std::string* pathVector = NULL;
2557 if (this->
job != NULL)
2562 throw ErrorClass(
"<directoriesToMake> object must be defined before getting the paths");
2565 throw ErrorClass(
"<job> object must be defined before getting the paths");
2574 std::string* pathVector = NULL;
2575 if (this->
job != NULL)
2580 throw ErrorClass(
"<filesToMake> object must be defined before getting the paths");
2583 throw ErrorClass(
"<job> object must be defined before getting the paths");
2593 if (this->
job != NULL)
2598 throw ErrorClass(
"<inputDirectoriesToMove> object must be defined before getting the paths");
2601 throw ErrorClass(
"<job> object must be defined before getting the paths");
2602 return pathPairVector;
2611 if (this->
job != NULL)
2616 throw ErrorClass(
"<inputFilesToMove> object must be defined before getting the paths");
2619 throw ErrorClass(
"<job> object must be defined before getting the paths");
2620 return pathPairVector;
2629 if (this->
job != NULL)
2634 throw ErrorClass(
"<outputFilesToMove> object must be defined before getting the paths");
2637 throw ErrorClass(
"<job> object must be defined before getting the paths");
2638 return pathPairVector;
2647 if (this->
job != NULL)
2652 throw ErrorClass(
"<outputDirectoriesToMove> object must be defined before getting the paths");
2655 throw ErrorClass(
"<job> object must be defined before getting the paths");
2656 return pathPairVector;
2664 std::string* pathVector = NULL;
2665 if (this->
job != NULL)
2670 throw ErrorClass(
"<filesToDelete> object must be defined before getting the paths");
2673 throw ErrorClass(
"<job> object must be defined before getting the paths");
2682 std::string* pathVector = NULL;
2683 if (this->
job != NULL)
2688 throw ErrorClass(
"<directoriesToDelete> object must be defined before getting the paths");
2691 throw ErrorClass(
"<job> object must be defined before getting the paths");
2700 std::string* processes = NULL;
2701 if (this->
job != NULL)
2706 throw ErrorClass(
"<processesToKill> object must be defined before getting the processes");
2709 throw ErrorClass(
"<job> object must be defined before getting the processes");
2729 throw ErrorClass(
"<initialVariableValues> object must be defined before getting the data");
2732 throw ErrorClass(
"<variables> object must be defined before getting the data");
2735 throw ErrorClass(
"<optimization> object must be defined before getting the data");
2736 return initVarVector;
2748 int numberOfVariables;
2750 if (numberOfVariables < 0)
2751 throw ErrorClass(
"\"numberOfVariables\" must be present to use dense methods");
2768 for (i = 0; i < num_var; i++)
2771 if (j >= 0 && j < numberOfVariables)
2775 throw ErrorClass(
"Variable index out of range");
2799 if (numberOfVariables < 0)
2800 throw ErrorClass(
"\"numberOfVariables\" must be present to use dense methods");
2824 for (i = 0; i < num_var; i++)
2827 if (j >= 0 && j < numberOfVariables)
2831 throw ErrorClass(
"Variable index out of range");
2859 throw ErrorClass(
"<initialVariableValuesString> object must be defined before getting the data");
2862 throw ErrorClass(
"<variables> object must be defined before getting the data");
2865 throw ErrorClass(
"<optimization> object must be defined before getting the data");
2866 return initVarVector;
2878 int numberOfVariables;
2880 if (numberOfVariables < 0)
2881 throw ErrorClass(
"\"numberOfVariables\" must be present to use dense methods");
2898 for (i = 0; i < num_var; i++)
2901 if (j >= 0 && j < numberOfVariables)
2905 throw ErrorClass(
"Variable index out of range");
2972 if (numberOfVariables < 0)
2973 throw ErrorClass(
"\"numberOfVariables\" must be set to use dense methods");
2976 throw ErrorClass(
"<optimization> element was never set");
2979 throw ErrorClass(
"<optimization> <variables> element was never set");
2982 throw ErrorClass(
"initial basis was never set");
2997 for (i = 0; i < num_var; i++)
3000 if (j >= 0 && j < numberOfVariables)
3003 throw ErrorClass(
"Variable index out of range");
3010 for (i = 0; i < num_var; i++)
3013 if (j >= 0 && j < numberOfVariables)
3016 throw ErrorClass(
"Variable index out of range");
3026 for (i = 0; i < num_var; i++)
3029 if (j >= 0 && j < numberOfVariables)
3032 throw ErrorClass(
"Variable index out of range");
3039 for (i = 0; i < num_var; i++)
3042 if (j >= 0 && j < numberOfVariables)
3045 throw ErrorClass(
"Variable index out of range");
3052 for (i = 0; i < num_var; i++)
3055 if (j >= 0 && j < numberOfVariables)
3058 throw ErrorClass(
"Variable index out of range");
3076 throw ErrorClass(
"<optimization> element was never set");
3083 throw ErrorClass(
"<optimization> <variables> element was never set");
3086 throw ErrorClass(
"initial basis was never set");
3093 throw ErrorClass(
"<optimization> <objectives> element was never set");
3096 throw ErrorClass(
"initial basis was never set");
3103 throw ErrorClass(
"<optimization> <constraints> element was never set");
3106 throw ErrorClass(
"initial basis was never set");
3111 throw ErrorClass(
"target object not implemented in getNumberOfInitialBasisElements");
3118 throw ErrorClass(
"<optimization> element was never set");
3125 throw ErrorClass(
"<optimization> <variables> element was never set");
3128 throw ErrorClass(
"initial basis was never set");
3135 throw ErrorClass(
"<optimization> <objectives> element was never set");
3138 throw ErrorClass(
"initial basis was never set");
3145 throw ErrorClass(
"<optimization> <constraints> element was never set");
3148 throw ErrorClass(
"initial basis was never set");
3153 throw ErrorClass(
"target object not implemented in getInitialBasisElements");
3174 throw ErrorClass(
"<integerVariableBranchingWeights> object must be defined before getting the data");
3177 throw ErrorClass(
"<variables> object must be defined before getting the data");
3180 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3181 return intVarVector;
3194 int numberOfVariables;
3196 if (numberOfVariables < 0)
3197 throw ErrorClass(
"\"numberOfVariables\" must be present to use dense methods");
3214 for (i = 0; i < num_var; i++)
3217 if (j >= 0 && j < numberOfVariables)
3221 throw ErrorClass(
"Variable index out of range");
3246 if (numberOfVariables < 0)
3247 throw ErrorClass(
"\"numberOfVariables\" must be present to use dense methods");
3264 for (i = 0; i < num_var; i++)
3267 if (j >= 0 && j < numberOfVariables)
3271 throw ErrorClass(
"Variable index out of range");
3299 throw ErrorClass(
"<sosVariableBranchingWeights> object must be defined before getting the data");
3302 throw ErrorClass(
"<variables> object must be defined before getting the data");
3305 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3306 return sosVarVector;
3317 std::vector<OtherVariableOption*> optionsVector;
3325 for(i = 0; i < num_options; i++)
3330 throw ErrorClass(
"<variables> object must be defined before getting the data");
3333 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3334 return optionsVector;
3349 throw ErrorClass(
"<variables> object must be defined before getting the data");
3352 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3353 return optionsVector;
3371 if (optionNumber < 0 || optionNumber >= num_options)
3372 throw ErrorClass(
"optionNumber not in legal range");
3376 throw ErrorClass(
"<variables> object must be defined before getting the data");
3379 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3396 throw ErrorClass(
"<initialObjectiveValues> object must be defined before getting the data");
3399 throw ErrorClass(
"<objectives> object must be defined before getting the data");
3402 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3403 return initObjVector;
3415 int numberOfObjectives;
3417 if (numberOfObjectives < 0)
3418 throw ErrorClass(
"\"numberOfObjectives\" must be present to use dense methods");
3435 for (i = 0; i < num_obj; i++)
3438 if (j < 0 && -j <= numberOfObjectives)
3443 throw ErrorClass(
"Objective index out of range");
3468 if (numberOfObjectives < 0)
3469 throw ErrorClass(
"\"numberOfObjectives\" must be present to use dense methods");
3486 for (i = 0; i < num_obj; i++)
3489 if (j < 0 && -j <= numberOfObjectives)
3494 throw ErrorClass(
"Objective index out of range");
3523 throw ErrorClass(
"<initialObjectiveBounds> object must be defined before getting the data");
3526 throw ErrorClass(
"<objectives> object must be defined before getting the data");
3529 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3530 return initObjBounds;
3542 int numberOfObjectives;
3544 if (numberOfObjectives < 0)
3545 throw ErrorClass(
"\"numberOfObjectives\" must be present to use dense methods");
3562 for (i = 0; i < num_obj; i++)
3565 if (j < 0 && -j <= numberOfObjectives)
3570 throw ErrorClass(
"Objective index out of range");
3595 if (numberOfObjectives < 0)
3596 throw ErrorClass(
"\"numberOfObjectives\" must be present to use dense methods");
3613 for (i = 0; i < num_obj; i++)
3616 if (j < 0 && -j <= numberOfObjectives)
3621 throw ErrorClass(
"Objective index out of range");
3645 int numberOfObjectives;
3647 if (numberOfObjectives < 0)
3648 throw ErrorClass(
"\"numberOfObjectives\" must be present to use dense methods");
3665 for (i = 0; i < num_obj; i++)
3668 if (j < 0 && -j <= numberOfObjectives)
3673 throw ErrorClass(
"Objective index out of range");
3698 if (numberOfObjectives < 0)
3699 throw ErrorClass(
"\"numberOfObjectives\" must be present to use dense methods");
3716 for (i = 0; i < num_obj; i++)
3719 if (j < 0 && -j <= numberOfObjectives)
3724 throw ErrorClass(
"Objective index out of range");
3749 if (numberOfVariables < 0)
3750 throw ErrorClass(
"\"numberOfVariables\" must be present to use dense methods");
3767 for (i = 0; i < num_var; i++)
3770 if (j >= 0 && j < numberOfVariables)
3774 throw ErrorClass(
"Variable index out of range");
3800 if (numberOfObjectives < 0)
3801 throw ErrorClass(
"\"numberOfObjectives\" must be set to use dense methods");
3804 throw ErrorClass(
"<optimization> element was never set");
3807 throw ErrorClass(
"<optimization> <objectives> element was never set");
3810 throw ErrorClass(
"initial basis was never set");
3824 for (i = 0; i < num_obj; i++)
3827 if (j >= 0 || j < -numberOfObjectives)
3828 throw ErrorClass(
"Objective index out of range");
3837 for (i = 0; i < num_obj; i++)
3840 if (j >= 0 || j < -numberOfObjectives)
3841 throw ErrorClass(
"Objective index out of range");
3850 for (i = 0; i < num_obj; i++)
3853 if (j >= 0 || j < -numberOfObjectives)
3854 throw ErrorClass(
"Objective index out of range");
3863 for (i = 0; i < num_obj; i++)
3866 if (j >= 0 || j < -numberOfObjectives)
3867 throw ErrorClass(
"Objective index out of range");
3876 for (i = 0; i < num_obj; i++)
3879 if (j >= 0 || j < -numberOfObjectives)
3880 throw ErrorClass(
"Objective index out of range");
3907 std::vector<OtherObjectiveOption*> optionsVector;
3915 for(i = 0; i < num_options; i++)
3920 throw ErrorClass(
"<objectives> object must be defined before getting the data");
3923 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3924 return optionsVector;
3942 if (optionNumber < 0 || optionNumber >= num_options)
3943 throw ErrorClass(
"optionNumber not in legal range");
3947 throw ErrorClass(
"<objectives> object must be defined before getting the data");
3950 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3965 throw ErrorClass(
"<objectives> object must be defined before getting the data");
3968 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3969 return optionsVector;
3987 throw ErrorClass(
"<initialConstraintValues> object must be defined before getting the data");
3990 throw ErrorClass(
"<constraints> object must be defined before getting the data");
3993 throw ErrorClass(
"<optimization> object must be defined before getting the data");
3994 return initConVector;
4006 int numberOfConstraints;
4008 if (numberOfConstraints < 0)
4009 throw ErrorClass(
"\"numberOfConstraints\" must be present to use dense methods");
4026 for (i = 0; i < num_con; i++)
4029 if (j >= 0 && j < numberOfConstraints)
4033 throw ErrorClass(
"Constraint index out of range");
4057 if (numberOfConstraints < 0)
4058 throw ErrorClass(
"\"numberOfConstraints\" must be present to use dense methods");
4075 for (i = 0; i < num_con; i++)
4078 if (j >= 0 && j < numberOfConstraints)
4082 throw ErrorClass(
"Constraint index out of range");
4110 throw ErrorClass(
"<initialDualValues> object must be defined before getting the data");
4113 throw ErrorClass(
"<constraints> object must be defined before getting the data");
4116 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4117 return initDualVector;
4129 int numberOfConstraints;
4131 if (numberOfConstraints < 0)
4132 throw ErrorClass(
"\"numberOfConstraints\" must be present to use dense methods");
4151 for (i = 0; i < num_con; i++)
4154 if (j >= 0 && j < numberOfConstraints)
4158 throw ErrorClass(
"Constraint index out of range");
4182 if (numberOfConstraints < 0)
4183 throw ErrorClass(
"\"numberOfConstraints\" must be present to use dense methods");
4200 for (i = 0; i < num_con; i++)
4203 if (j >= 0 && j < numberOfConstraints)
4207 throw ErrorClass(
"Constraint index out of range");
4230 int numberOfConstraints;
4232 if (numberOfConstraints < 0)
4233 throw ErrorClass(
"\"numberOfConstraints\" must be present to use dense methods");
4251 for (i = 0; i < num_con; i++)
4254 if (j >= 0 && j < numberOfConstraints)
4258 throw ErrorClass(
"Constraint index out of range");
4282 if (numberOfConstraints < 0)
4283 throw ErrorClass(
"\"numberOfConstraints\" must be present to use dense methods");
4301 for (i = 0; i < num_con; i++)
4304 if (j >= 0 && j < numberOfConstraints)
4308 throw ErrorClass(
"Constraint index out of range");
4333 if (numberOfConstraints < 0)
4334 throw ErrorClass(
"\"numberOfConstraints\" must be set to use dense methods");
4337 throw ErrorClass(
"<optimization> element was never set");
4340 throw ErrorClass(
"<optimization> <constraints> element was never set");
4343 throw ErrorClass(
"initial basis was never set");
4357 for (i = 0; i < num_slack; i++)
4360 if (j >= 0 && j < numberOfConstraints)
4363 throw ErrorClass(
"Constraint index out of range");
4370 for (i = 0; i < num_slack; i++)
4373 if (j >= 0 && j < numberOfConstraints)
4376 throw ErrorClass(
"Constraint index out of range");
4383 for (i = 0; i < num_slack; i++)
4386 if (j >= 0 && j < numberOfConstraints)
4389 throw ErrorClass(
"Constraint index out of range");
4396 for (i = 0; i < num_slack; i++)
4399 if (j >= 0 && j < numberOfConstraints)
4402 throw ErrorClass(
"Constraint index out of range");
4409 for (i = 0; i < num_slack; i++)
4412 if (j >= 0 && j < numberOfConstraints)
4415 throw ErrorClass(
"Constraint index out of range");
4437 std::vector<OtherConstraintOption*> optionsVector;
4445 for(i = 0; i < num_options; i++)
4450 throw ErrorClass(
"<constraints> object must be defined before getting the data");
4453 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4454 return optionsVector;
4469 throw ErrorClass(
"<constraints> object must be defined before getting the data");
4472 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4473 return optionsVector;
4491 if (optionNumber < 0 || optionNumber >= num_options)
4492 throw ErrorClass(
"optionNumber not in legal range");
4496 throw ErrorClass(
"<constraints> object must be defined before getting the data");
4499 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4510 std::vector<SolverOption*> optionsVector;
4518 for(i = 0; i < num_options; i++)
4523 throw ErrorClass(
"<solverOptions> object must be defined before getting the data");
4526 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4527 return optionsVector;
4541 std::vector<SolverOption*> optionsVector;
4549 for (i = 0; i < num_options; i++)
4552 (this->optimization->solverOptions->solverOption[i]->solver ==
"" && getFreeOptions))
4557 throw ErrorClass(
"<solverOptions> object must be defined before getting the data");
4560 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4561 return optionsVector;
4575 throw ErrorClass(
"<solverOptions> object must be defined before getting the data");
4578 throw ErrorClass(
"<optimization> object must be defined before getting the data");
4579 return optionsVector;
4603 if (this->other != NULL)
4604 throw ErrorClass(
"otherOptions array previously used.");
4606 if (numberOfOptions < 0)
4607 throw ErrorClass(
"length of otherOptions array cannot be negative.");
4610 if (numberOfOptions == 0)
4616 for (i = 0; i < numberOfOptions; i++)
4619 *this->other[i] = *other[i];
4640 throw ErrorClass(
"the name of an option cannot be empty." );
4642 if (this->
other == NULL)
4648 for (i = 0; i < nopt; i++)
4649 temp[i] = this->
other[i];
4651 delete[] this->
other;
4656 temp[ nopt]->
name = name;
4657 temp[ nopt]->
value = value;
4681 if (this->jobID != NULL)
4685 if (numberOfJobIDs < 0)
4690 if (numberOfJobIDs == 0)
4696 this->jobID[i] = jobID[i];
4721 if (this->jobID == NULL)
4726 std::string* temp =
new std::string[nopt+1];
4728 for (i = 0; i < nopt; i++)
4729 temp[i] = this->jobID[i];
4731 delete[] this->
jobID;
4756 if (this->path != NULL)
4760 if (numberOfPaths < 0)
4765 if (numberOfPaths == 0)
4771 this->path[i] = path[i];
4796 if (this->path == NULL)
4801 std::string* temp =
new std::string[nopt+1];
4803 for (i = 0; i < nopt; i++)
4804 temp[i] = this->path[i];
4806 delete[] this->
path;
4831 if (this->pathPair != NULL)
4835 if (numberOfPathPairs < 0)
4840 if (numberOfPathPairs == 0)
4848 this->pathPair[i] =
new PathPair();
4849 *this->pathPair[i] = *pathPair[i];
4867 if (numberOfPathPairs == 0)
4896 if (fromPath.empty() )
4899 if (toPath.empty() )
4909 for (i = 0; i < nopt; i++)
4917 temp[ nopt]->
from = fromPath;
4918 temp[ nopt]->
to = toPath;
4943 if (this->process != NULL)
4947 if (numberOfProcesses < 0)
4952 if (numberOfProcesses == 0)
4958 this->process[i] = process[i];
4979 if (process.empty() )
4980 throw ErrorClass(
"the name of a process cannot be empty." );
4982 if (this->process == NULL)
4987 std::string* temp =
new std::string[nopt+1];
4989 for (i = 0; i < nopt; i++)
4990 temp[i] = this->process[i];
4996 this->process = temp;
5017 if (this->var != NULL)
5018 throw ErrorClass(
"InitVarValue array previously used.");
5020 if (numberOfVar < 0)
5021 throw ErrorClass(
"length of var array cannot be negative.");
5024 if (numberOfVar == 0)
5033 *this->var[i] = *var[i];
5055 if (this->var != NULL)
5058 throw ErrorClass(
"InitVarValue array previously used.");
5063 return this->
addVar(numberOfVar, var);
5067 delete this->var[i];
5068 delete [] this->
var;
5072 if (numberOfVar < 0)
5073 throw ErrorClass(
"length of var array cannot be negative.");
5076 if (numberOfVar == 0)
5085 *this->var[i] = *var[i];
5107 if (this->
var != NULL)
5110 if (numberOfVar < 0)
5114 if (numberOfVar == 0)
5123 this->
var[i]->
idx = idx[i];
5143 throw ErrorClass(
"the index of a variable cannot be negative." );
5145 if (this->
var == NULL)
5151 for (i = 0; i < nopt; i++)
5152 temp[i] = this->
var[i];
5159 temp[ nopt]->
idx = idx;
5160 temp[ nopt]->
value = value;
5183 if (numberOfVar < 0)
5184 throw ErrorClass(
"length of var array cannot be negative.");
5186 if (numberOfVar == 0)
5192 for (
int i = 0; i < nprev; i++)
5193 temp[i] = this->var[i];
5201 *temp[nprev+i] = *var[i];
5226 if (this->var != NULL)
5227 throw ErrorClass(
"InitVarValueString array previously used.");
5229 if (numberOfVar < 0)
5230 throw ErrorClass(
"length of var array cannot be negative.");
5233 if (numberOfVar == 0)
5242 *this->var[i] = *var[i];
5263 if (this->var != NULL)
5266 throw ErrorClass(
"InitVarValueString array previously used.");
5270 return this->
addVar(numberOfVar, var);
5274 delete this->var[i];
5275 delete [] this->
var;
5279 if (numberOfVar < 0)
5280 throw ErrorClass(
"length of var array cannot be negative.");
5283 if (numberOfVar == 0)
5292 *this->var[i] = *var[i];
5313 if (this->
var != NULL)
5317 if (numberOfVar < 0)
5321 if (numberOfVar == 0)
5330 this->
var[i]->
idx = idx[i];
5350 throw ErrorClass(
"the index of a variable cannot be negative." );
5352 if (this->
var == NULL)
5358 for (i = 0; i < nopt; i++)
5359 temp[i] = this->
var[i];
5366 temp[ nopt]->
idx = idx;
5367 temp[ nopt]->
value = value;
5391 if (numberOfVar < 0)
5392 throw ErrorClass(
"length of var array cannot be negative.");
5394 if (numberOfVar == 0)
5400 for (
int i = 0; i < nprev; i++)
5401 temp[i] = this->var[i];
5409 *temp[nprev+i] = *var[i];
5434 if (this->var != NULL)
5435 throw ErrorClass(
"InitBasStatus array previously used.");
5437 if (numberOfVar < 0)
5438 throw ErrorClass(
"length of var array cannot be negative.");
5441 if (numberOfVar == 0)
5450 *this->var[i] = *var[i];
5474 throw ErrorClass(
"the index of a variable cannot be negative." );
5475 if (value !=
"atLower" && value !=
"basic" && value !=
"unknown" &&
5476 value !=
"atUpper" && value !=
"superbasic" )
5477 throw ErrorClass(
"Illegal basis status " + value );
5479 if (this->
var == NULL)
5485 for (i = 0; i < nopt; i++)
5486 temp[i] = this->
var[i];
5493 temp[ nopt]->
idx = idx;
5494 temp[ nopt]->
value = value;
5518 if (this->var != NULL)
5521 if (numberOfVar < 0)
5525 if (numberOfVar == 0)
5534 *this->var[i] = *var[i];
5555 if (this->var != NULL)
5558 throw ErrorClass(
"BranchingWeight array previously used.");
5562 return this->
addVar(numberOfVar, var);
5566 delete this->var[i];
5567 delete [] this->
var;
5571 if (numberOfVar < 0)
5572 throw ErrorClass(
"length of var array cannot be negative.");
5575 if (numberOfVar == 0)
5584 *this->var[i] = *var[i];
5605 if (this->
var != NULL)
5608 if (numberOfVar < 0)
5612 if (numberOfVar == 0)
5621 this->
var[i]->
idx = idx[i];
5644 throw ErrorClass(
"the index of a variable cannot be negative." );
5646 if (this->
var == NULL)
5652 for (i = 0; i < nopt; i++)
5653 temp[i] = this->
var[i];
5660 temp[ nopt]->
idx = idx;
5661 temp[ nopt]->
value = value;
5684 if (numberOfVar < 0)
5685 throw ErrorClass(
"length of var array cannot be negative.");
5687 if (numberOfVar == 0)
5693 for (
int i = 0; i < nprev; i++)
5694 temp[i] = this->var[i];
5702 *temp[nprev+i] = *var[i];
5727 if (this->var != NULL)
5728 throw ErrorClass(
"BranchingWeight array previously used.");
5730 if (numberOfVar < 0)
5731 throw ErrorClass(
"length of var array cannot be negative.");
5734 if (numberOfVar == 0)
5743 *this->var[i] = *var[i];
5767 throw ErrorClass(
"the index of a variable cannot be negative." );
5769 if (this->
var == NULL)
5775 for (i = 0; i < nopt; i++)
5776 temp[i] = this->
var[i];
5783 temp[ nopt]->
idx = idx;
5784 temp[ nopt]->
value = value;
5808 if (this->sos != NULL)
5809 throw ErrorClass(
"SOS array previously used.");
5811 if (numberOfSOS < 0)
5812 throw ErrorClass(
"length of sos array cannot be negative.");
5815 if (numberOfSOS == 0)
return true;
5826 if (sos[i]->numberOfVar < 0)
5827 throw ErrorClass(
"the number of variables in the SOS cannot be negative.");
5831 if (sos[i]->numberOfVar > 0)
5834 for (j = 0; j < sos[i]->numberOfVar; j++)
5837 *this->sos[i]->var[
j] = *sos[i]->var[
j];
5862 throw ErrorClass(
"the index of the SOS cannot be negative." );
5864 throw ErrorClass(
"the number of variables in the SOS cannot be negative." );
5866 if (this->
sos == NULL)
5872 for (i = 0; i < nopt; i++)
5873 temp[i] = this->
sos[i];
5880 temp[ nopt]->
sosIdx = sosIdx;
5884 for (i = 0; i < nvar; i++)
5887 temp[nopt]->
var[i]->
idx = idx[i];
5888 temp[nopt]->
var[i]->
name = name[i];
5889 temp[nopt]->
var[i]->
value = value[i];
5914 if (this->var != NULL)
5915 throw ErrorClass(
"OtherVarOption array previously used.");
5917 if (numberOfVar < 0)
5918 throw ErrorClass(
"length of <var> array cannot be negative.");
5921 if (numberOfVar == 0)
return true;
5929 *this->var[i] = *var[i];
5955 throw ErrorClass(
"the index of a variable cannot be negative." );
5957 if (this->
var == NULL)
5963 for (i = 0; i < nopt; i++)
5964 temp[i] = this->
var[i];
5971 temp[ nopt]->
idx = idx;
5973 temp[ nopt]->
lbValue = lbValue;
5974 temp[ nopt]->
ubValue = ubValue;
5998 if (this->other != NULL)
5999 throw ErrorClass(
"otherVariableOptions array previously used.");
6001 if (numberOfOptions < 0)
6002 throw ErrorClass(
"length of <other> array cannot be negative.");
6005 if (numberOfOptions == 0)
return true;
6010 for (i = 0; i < numberOfOptions; i++)
6013 this->other[i]->
name = other[i]->
name;
6017 this->other[i]->
type = other[i]->
type;
6020 if (other[i]->numberOfVar < 0)
6021 throw ErrorClass(
"the number of variables in otherVariableOption cannot be negative.");
6025 if (other[i]->numberOfVar > 0)
6028 for (j = 0; j < other[i]->numberOfVar; j++)
6031 *this->other[i]->var[
j] = *other[i]->var[
j];
6036 if (this->other[i]->numberOfEnumerations > 0)
6039 for (j = 0; j < this->other[i]->numberOfEnumerations; j++)
6043 other[i]->enumeration[j]->value,
6044 other[i]->enumeration[j]->description,
6045 other[i]->enumeration[j]->el,
6046 other[i]->enumeration[j]->numberOfEl);
6069 if (this->other == NULL)
6075 for (i = 0; i < nopt; i++)
6076 temp[i] = this->other[i];
6078 delete[] this->
other;
6092 throw ErrorClass(
"the number of variables in otherVariableOption cannot be negative.");
6102 *temp[nopt]->
var[
j] = *other->
var[
j];
6145 if (this->obj != NULL)
6146 throw ErrorClass(
"InitObjValue array previously used.");
6148 if (numberOfObj < 0)
6149 throw ErrorClass(
"length of obj array cannot be negative.");
6152 if (numberOfObj == 0)
6161 *this->obj[i] = *obj[i];
6183 if (this->obj != NULL)
6186 throw ErrorClass(
"InitObjValue array previously used.");
6190 return this->
addObj(numberOfObj, obj);
6194 delete this->obj[i];
6195 delete [] this->
obj;
6199 if (numberOfObj < 0)
6200 throw ErrorClass(
"length of obj array cannot be negative.");
6203 if (numberOfObj == 0)
6212 *this->obj[i] = *obj[i];
6225 if (this->
obj != NULL)
return false;
6227 if (numberOfObj < 0)
return false;
6230 if (numberOfObj == 0)
return true;
6238 this->
obj[i]->
idx = idx[i];
6259 throw ErrorClass(
"the index of an objective must be negative." );
6261 if (this->
obj == NULL)
6267 for (i = 0; i < nopt; i++)
6268 temp[i] = this->
obj[i];
6275 temp[ nopt]->
idx = idx;
6276 temp[ nopt]->
value = value;
6299 if (numberOfObj < 0)
6300 throw ErrorClass(
"length of obj array cannot be negative.");
6302 if (numberOfObj == 0)
6308 for (
int i = 0; i < nprev; i++)
6309 temp[i] = this->obj[i];
6317 *temp[nprev+i] = *obj[i];
6342 if (this->obj != NULL)
6343 throw ErrorClass(
"InitObjBound array previously used.");
6345 if (numberOfObj < 0)
6346 throw ErrorClass(
"length of obj array cannot be negative.");
6349 if (numberOfObj == 0)
6358 *this->obj[i] = *obj[i];
6380 if (this->obj != NULL)
6383 throw ErrorClass(
"InitObjBound array previously used.");
6387 return this->
addObj(numberOfObj, obj);
6391 delete this->obj[i];
6392 delete [] this->
obj;
6396 if (numberOfObj < 0)
6397 throw ErrorClass(
"length of obj array cannot be negative.");
6400 if (numberOfObj == 0)
6409 *this->obj[i] = *obj[i];
6422 if (this->
obj != NULL)
6425 if (numberOfObj < 0)
6429 if (numberOfObj == 0)
6438 this->
obj[i]->
idx = idx[i];
6461 throw ErrorClass(
"the index of an objective must be negative." );
6463 if (this->
obj == NULL)
6469 for (i = 0; i < nopt; i++)
6470 temp[i] = this->
obj[i];
6477 temp[ nopt]->
idx = idx;
6478 temp[ nopt]->
lbValue = lbValue;
6479 temp[ nopt]->
ubValue = ubValue;
6502 if (numberOfObj < 0)
6503 throw ErrorClass(
"length of obj array cannot be negative.");
6505 if (numberOfObj == 0)
6511 for (
int i = 0; i < nprev; i++)
6512 temp[i] = this->obj[i];
6520 *temp[nprev+i] = *obj[i];
6548 if (this->obj != NULL)
6549 throw ErrorClass(
"OtherObjOption array previously used.");
6551 if (numberOfObj < 0)
6552 throw ErrorClass(
"length of <obj> array cannot be negative.");
6555 if (numberOfObj == 0)
6564 *this->obj[i] = *obj[i];
6590 throw ErrorClass(
"the index of an objective must be negative." );
6592 if (this->
obj == NULL)
6598 for (i = 0; i < nopt; i++)
6599 temp[i] = this->
obj[i];
6606 temp[ nopt]->
idx = idx;
6608 temp[ nopt]->
lbValue = lbValue;
6609 temp[ nopt]->
ubValue = ubValue;
6633 if (this->other != NULL)
6634 throw ErrorClass(
"otherObjectiveOptions array previously used.");
6636 if (numberOfOptions < 0)
6637 throw ErrorClass(
"length of <other> array cannot be negative.");
6640 if (numberOfOptions == 0)
return true;
6645 for (i = 0; i < numberOfOptions; i++)
6648 this->other[i]->
name = other[i]->
name;
6652 this->other[i]->
type = other[i]->
type;
6655 if (other[i]->numberOfObj < 0)
6656 throw ErrorClass(
"the number of objectives in otherObjectiveOption cannot be negative.");
6660 if (other[i]->numberOfObj > 0)
6663 for (j = 0; j < other[i]->numberOfObj; j++)
6666 *this->other[i]->obj[
j] = *other[i]->obj[
j];
6671 if (this->other[i]->numberOfEnumerations > 0)
6674 for (j = 0; j < this->other[i]->numberOfEnumerations; j++)
6678 other[i]->enumeration[j]->value,
6679 other[i]->enumeration[j]->description,
6680 other[i]->enumeration[j]->el,
6681 other[i]->enumeration[j]->numberOfEl);
6704 if (this->other == NULL)
6710 for (i = 0; i < nopt; i++)
6711 temp[i] = this->other[i];
6713 delete[] this->
other;
6727 throw ErrorClass(
"the number of objectives in otherObjectiveOption cannot be negative.");
6737 *temp[nopt]->
obj[
j] = *other->
obj[
j];
6742 throw ErrorClass(
"the number of enumerations in otherObjectiveOption cannot be negative.");
6785 if (this->con != NULL)
6786 throw ErrorClass(
"InitConValue array previously used.");
6788 if (numberOfCon < 0)
6789 throw ErrorClass(
"length of con array cannot be negative.");
6792 if (numberOfCon == 0)
6801 *this->con[i] = *con[i];
6823 if (this->con != NULL)
6826 throw ErrorClass(
"InitConValue array previously used.");
6830 return this->
addCon(numberOfCon, con);
6834 delete this->con[i];
6835 delete [] this->
con;
6839 if (numberOfCon < 0)
6840 throw ErrorClass(
"length of con array cannot be negative.");
6843 if (numberOfCon == 0)
6852 *this->con[i] = *con[i];
6866 if (this->
con != NULL)
6869 if (numberOfCon < 0)
6873 if (numberOfCon == 0)
6882 this->
con[i]->
idx = idx[i];
6904 throw ErrorClass(
"the index of a constraint cannot be negative." );
6906 if (this->
con == NULL)
6912 for (i = 0; i < nopt; i++)
6913 temp[i] = this->
con[i];
6920 temp[ nopt]->
idx = idx;
6921 temp[ nopt]->
value = value;
6944 if (numberOfCon < 0)
6945 throw ErrorClass(
"length of con array cannot be negative.");
6947 if (numberOfCon == 0)
6953 for (
int i = 0; i < nprev; i++)
6954 temp[i] = this->con[i];
6962 *temp[nprev+i] = *con[i];
6988 if (this->con != NULL)
6989 throw ErrorClass(
"InitDualVarValue array previously used.");
6991 if (numberOfCon < 0)
6992 throw ErrorClass(
"length of con array cannot be negative.");
6995 if (numberOfCon == 0)
7004 *this->con[i] = *con[i];
7025 if (this->con != NULL)
7028 throw ErrorClass(
"InitDualVarValue array previously used.");
7032 return this->
addCon(numberOfCon, con);
7036 delete this->con[i];
7037 delete [] this->
con;
7041 if (numberOfCon < 0)
7042 throw ErrorClass(
"length of con array cannot be negative.");
7045 if (numberOfCon == 0)
7054 *this->con[i] = *con[i];
7067 if (this->
con != NULL)
7070 if (numberOfCon < 0)
7074 if (numberOfCon == 0)
7083 this->
con[i]->
idx = idx[i];
7106 throw ErrorClass(
"the index of a constraint cannot be negative." );
7108 if (this->
con == NULL)
7114 for (i = 0; i < nopt; i++)
7115 temp[i] = this->
con[i];
7122 temp[ nopt]->
idx = idx;
7147 if (numberOfCon < 0)
7148 throw ErrorClass(
"length of con array cannot be negative.");
7150 if (numberOfCon == 0)
7156 for (
int i = 0; i < nprev; i++)
7157 temp[i] = this->con[i];
7165 *temp[nprev+i] = *con[i];
7190 if (this->con != NULL)
7191 throw ErrorClass(
"OtherConOption array previously used.");
7193 if (numberOfCon < 0)
7194 throw ErrorClass(
"length of <con> array cannot be negative.");
7197 if (numberOfCon == 0)
7206 *this->con[i] = *con[i];
7232 throw ErrorClass(
"the index of a variable cannot be negative." );
7234 if (this->
con == NULL)
7240 for (i = 0; i < nopt; i++)
7241 temp[i] = this->
con[i];
7248 temp[ nopt]->
idx = idx;
7250 temp[ nopt]->
lbValue = lbValue;
7251 temp[ nopt]->
ubValue = ubValue;
7275 if (this->other != NULL)
7276 throw ErrorClass(
"otherConstraintOptions array previously used.");
7278 if (numberOfOptions < 0)
7279 throw ErrorClass(
"length of <other> array cannot be negative.");
7282 if (numberOfOptions == 0)
7288 for (i = 0; i < numberOfOptions; i++)
7291 this->other[i]->
name = other[i]->
name;
7295 this->other[i]->
type = other[i]->
type;
7298 if (other[i]->numberOfCon < 0)
7299 throw ErrorClass(
"the number of constraints in otherConstraintOption cannot be negative.");
7304 if (other[i]->numberOfCon > 0)
7307 for (j = 0; j < other[i]->numberOfCon; j++)
7311 *this->other[i]->con[
j] = *other[i]->con[
j];
7317 if (this->other[i]->numberOfEnumerations > 0)
7320 for (j = 0; j < this->other[i]->numberOfEnumerations; j++)
7324 other[i]->enumeration[j]->value,
7325 other[i]->enumeration[j]->description,
7326 other[i]->enumeration[j]->el,
7327 other[i]->enumeration[j]->numberOfEl);
7351 if (this->other == NULL)
7357 for (i = 0; i < nopt; i++)
7358 temp[i] = this->other[i];
7360 delete[] this->
other;
7374 throw ErrorClass(
"the number of constraints in otherConstraintOption cannot be negative.");
7385 *temp[nopt]->
con[
j] = *other->
con[
j];
7390 throw ErrorClass(
"the number of enumerations in otherObjectiveOption cannot be negative.");
7428 if (this->solverOption != NULL)
7429 throw ErrorClass(
"solverOptions array previously used.");
7431 if (numberOfOptions < 0)
7432 throw ErrorClass(
"length of <solverOption> array cannot be negative.");
7435 if (numberOfOptions == 0)
7438 this->solverOption =
new SolverOption*[numberOfOptions];
7441 for (i = 0; i < numberOfOptions; i++)
7446 this->solverOption[i]->
name = solverOption[i]->
name;
7447 this->solverOption[i]->
value = solverOption[i]->
value;
7448 this->solverOption[i]->
solver = solverOption[i]->
solver;
7450 this->solverOption[i]->
type = solverOption[i]->
type;
7453 if (solverOption[i]->numberOfItems > 0)
7456 for (
int j=0;
j<solverOption[i]->numberOfItems;
j++)
7457 this->solverOption[i]->item[
j] = solverOption[i]->item[
j];
7481 std::string category, std::string type, std::string description)
7488 throw ErrorClass(
"the name of a solver option cannot be empty." );
7496 for (i = 0; i < nopt; i++)
7505 temp[ nopt]->
name = name;
7506 temp[ nopt]->
value = value;
7507 temp[ nopt]->
solver = solver;
7508 temp[ nopt]->
type = type;
7529 std::string description, std::string fileCreator, std::string licence)
7687 throw ErrorClass(
"transport type not recognized.");
7710 delete[] this->general->otherOptions->other;
7711 this->general->otherOptions->other = NULL;
7736 if (this->
system == NULL)
7748 if (this->
system == NULL)
7760 if (this->
system == NULL)
7766 throw ErrorClass(
"disk space unit not recognized.");
7783 if (this->
system == NULL)
7795 if (this->
system == NULL)
7807 if (this->
system == NULL)
7813 throw ErrorClass(
"memory size unit not recognized.");
7827 if (this->
system == NULL)
7840 if (this->
system == NULL)
7854 if (this->
system == NULL)
7860 throw ErrorClass(
"CPU speed unit not recognized.");
7874 if (this->
system == NULL)
7884 if (this->
system == NULL)
7895 if (this->
system == NULL)
7904 delete[] this->system->otherOptions->other;
7905 this->system->otherOptions->other = NULL;
7906 this->system->otherOptions->numberOfOtherOptions = 0;
7913 if (this->
system == NULL)
7933 throw ErrorClass(
"service type not recognized.");
7956 delete[] this->service->otherOptions->other;
7957 this->service->otherOptions->other = NULL;
7977 if (this->
job == NULL)
7990 if (this->
job == NULL)
8004 if (this->
job == NULL)
8010 throw ErrorClass(
"time unit not recognized.");
8024 if (this->
job == NULL)
8033 if (this->
job == NULL)
8045 if (this->
job == NULL)
8055 if (this->
job == NULL)
8067 if (this->
job == NULL)
8077 if (this->
job == NULL)
8089 if (this->
job == NULL)
8099 if (this->
job == NULL)
8111 if (this->
job == NULL)
8121 if (this->
job == NULL)
8133 if (this->
job == NULL)
8142 if (numberOfPathPairs < 0)
return false;
8143 if (this->
job == NULL)
8172 throw ErrorClass(
"target object not implemented in setPathPairs");
8180 if (this->
job == NULL)
8192 if (this->
job == NULL)
8202 if (this->
job == NULL)
8214 if (this->
job == NULL)
8224 if (this->
job == NULL)
8236 if (this->
job == NULL)
8246 if (this->
job == NULL)
8258 if (this->
job == NULL)
8268 if (this->
job == NULL)
8280 if (this->
job == NULL)
8290 if (this->
job == NULL)
8302 if (this->
job == NULL)
8312 if (this->
job == NULL)
8324 if (this->
job == NULL)
8334 if (this->
job == NULL)
8343 delete[] this->job->otherOptions->other;
8344 this->job->otherOptions->other = NULL;
8351 if (this->
job == NULL)
8412 delete[] this->optimization->variables->initialVariableValues->var;
8413 this->optimization->variables->initialVariableValues->var = NULL;
8444 for (i = 0; i < numberOfVar; i++)
8493 delete[] this->optimization->variables->initialVariableValuesString->var;
8494 this->optimization->variables->initialVariableValuesString->var = NULL;
8524 for (i = 0; i < numberOfVar; i++)
8557 for (
int j=0;
j<ni;
j++)
8570 for (
int j=0;
j<ni;
j++)
8583 for (
int j=0;
j<ni;
j++)
8591 throw ErrorClass(
"target object not implemented in setInitBasisStatus");
8607 if (idx < 0)
return false;
8616 if (idx >= 0)
return false;
8625 if (idx < 0)
return false;
8629 throw ErrorClass(
"target object not implemented in setAnotherInitBasisStatus");
8660 delete[] this->optimization->variables->integerVariableBranchingWeights->var;
8661 this->optimization->variables->integerVariableBranchingWeights->var = NULL;
8691 for (i = 0; i < numberOfVar; i++)
8725 delete[] this->optimization->variables->sosVariableBranchingWeights->sos;
8726 this->optimization->variables->sosVariableBranchingWeights->sos = NULL;
8752 if (numberOfOther > 0)
8756 for (
int j=0;
j < numberOfOther;
j++)
8764 int numberOfEnumerations, std::string name,
8765 std::string value, std::string solver,
8766 std::string category, std::string type,
8767 std::string varType, std::string enumType,
8768 std::string description)
8788 if (numberOfVar > 0)
8791 for (
int j=0;
j<numberOfVar;
j++)
8795 if (numberOfEnumerations > 0)
8798 for (
int j=0;
j<numberOfEnumerations;
j++)
8805 int numberOfEl, std::string value, std::string description,
int* idxArray)
8808 if (numberOfEl < 0)
return false;
8818 for (
int j=0;
j<numberOfEl;
j++)
if (idxArray[
j] < 0)
return false;
8833 for (
int j=0; j<numberOfEl; j++) if (idxArray[j] >= 0)
return false;
8848 for (
int j=0;
j<numberOfEl;
j++)
if (idxArray[
j] < 0)
return false;
8858 throw ErrorClass(
"target object not implemented in setOtherOptionOrResultEnumeration");
8864 int idx, std::string name, std::string value, std::string lbValue, std::string ubValue)
8872 if (idx < 0)
return false;
8898 delete[] this->optimization->variables->other;
8899 this->optimization->variables->other = NULL;
8940 delete[] this->optimization->objectives->initialObjectiveValues->obj;
8941 this->optimization->objectives->initialObjectiveValues->obj = NULL;
8971 for (i = 0; i < numberOfObj; i++)
9019 delete[] this->optimization->objectives->initialObjectiveBounds->obj;
9020 this->optimization->objectives->initialObjectiveBounds->obj = NULL;
9050 for (i = 0; i < numberOfObj; i++)
9070 int idx, std::string name, std::string value, std::string lbValue, std::string ubValue)
9078 if (idx >= 0)
return false;
9101 if (numberOfOther > 0)
9105 for (
int j=0;
j < numberOfOther;
j++)
9113 int numberOfEnumerations, std::string name,
9114 std::string value, std::string solver,
9115 std::string category, std::string type,
9116 std::string objType, std::string enumType,
9117 std::string description)
9136 if (numberOfObj > 0)
9139 for (
int j=0;
j<numberOfObj;
j++)
9143 if (numberOfEnumerations > 0)
9146 for (
int j=0;
j<numberOfEnumerations;
j++)
9163 delete[] this->optimization->objectives->other;
9164 this->optimization->objectives->other = NULL;
9207 delete[] this->optimization->constraints->initialConstraintValues->con;
9208 this->optimization->constraints->initialConstraintValues->con = NULL;
9238 for (i = 0; i < numberOfCon; i++)
9285 delete[] this->optimization->constraints->initialDualValues->con;
9286 this->optimization->constraints->initialDualValues->con = NULL;
9316 for (i = 0; i < numberOfCon; i++)
9318 if ((lb[i] != 0.0) || (ub[i] != 0.0))
9345 if (numberOfOther > 0)
9349 for (
int j=0;
j < numberOfOther;
j++)
9357 int numberOfEnumerations, std::string name,
9358 std::string value, std::string solver,
9359 std::string category, std::string type,
9360 std::string conType, std::string enumType,
9361 std::string description)
9379 if (numberOfCon > 0)
9382 for (
int j=0;
j<numberOfCon;
j++)
9386 if (numberOfEnumerations > 0)
9389 for (
int j=0;
j<numberOfEnumerations;
j++)
9397 int idx, std::string name, std::string value, std::string lbValue, std::string ubValue)
9405 if (idx < 0)
return false;
9432 delete[] this->optimization->constraints->other;
9433 this->optimization->constraints->other = NULL;
9457 for (
int j=0;
j < numberOfOptions;
j++)
9464 std::string value, std::string solver,
9465 std::string category, std::string type,
9466 std::string description, std::string *itemList)
9482 if (numberOfItems > 0)
9485 for (
int j=0;
j<numberOfItems;
j++)
9503 delete[] this->optimization->solverOptions->solverOption;
9504 this->optimization->solverOptions->solverOption = NULL;
9510 std::string category, std::string type, std::string description)
9522 if (optionName ==
"serviceURI")
9525 if (optionName ==
"serviceName")
9528 if (optionName ==
"instanceName")
9531 if (optionName ==
"instanceLocation")
9534 if (optionName ==
"locationType")
9537 if (optionName ==
"jobID")
9538 return this->
setJobID(optionValue);
9540 if (optionName ==
"solverName")
9543 if (optionName ==
"solverToInvoke")
9546 if (optionName ==
"license")
9549 if (optionName ==
"userName")
9552 if (optionName ==
"password")
9555 if (optionName ==
"contact")
9558 if (optionName ==
"transportType")
9561 if (optionName ==
"minDiskSpaceUnit")
9564 if (optionName ==
"minMemoryUnit")
9567 if (optionName ==
"minCPUSpeedUnit")
9570 if (optionName ==
"serviceType")
9573 if (optionName ==
"maxTimeUnit")
9576 if (optionName ==
"requestedStartTime")
9585 if (optionName ==
"minCPUNumber")
9594 if (optionName ==
"minDiskSpaceValue")
9597 if (optionName ==
"minMemoryValue")
9600 if (optionName ==
"minCPUSpeedValue")
9604 if (optionName ==
"maxTime")
9663 std::ostringstream outStr;
9695 same = ((this->
jobID == that->
jobID ) && same);
9708 outStr <<
"jobID: " << this->
jobID <<
" vs. " << that->
jobID << endl;
9710 outStr <<
"license: " << this->
license <<
" vs. " << that->
license << endl;
9711 outStr <<
"userName: " << this->
userName <<
" vs. " << that->
userName << endl;
9712 outStr <<
"password: " << this->
password <<
" vs. " << that->
password << endl;
9775 std::ostringstream outStr;
9808 outStr <<
"service type: " << this->
type <<
" vs. " << that->
type << endl;
9824 std::ostringstream outStr;
9900 std::ostringstream outStr;
9934 outStr <<
"numberOfVariables: "
9946 outStr <<
"numberOfObjectives: "
9958 outStr <<
"numberOfConstraints: "
9980 std::ostringstream outStr;
10014 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10026 std::ostringstream outStr;
10060 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10072 std::ostringstream outStr;
10122 std::ostringstream outStr;
10151 (this->value != that->
value) ||
10157 outStr <<
"name: " << this->
name <<
" vs. " << that->
name << endl;
10158 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10171 std::ostringstream outStr;
10206 outStr <<
"unit: " << this->
unit <<
" vs. " << that->
unit << endl;
10207 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10220 std::ostringstream outStr;
10255 outStr <<
"unit: " << this->
unit <<
" vs. " << that->
unit << endl;
10256 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10268 std::ostringstream outStr;
10303 outStr <<
"unit: " << this->
unit <<
" vs. " << that->
unit << endl;
10304 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10316 std::ostringstream outStr;
10345 (this->value != that->
value) )
10351 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10363 std::ostringstream outStr;
10408 outStr <<
"jobID[" << i <<
"]: " << this->
jobID[i] <<
" vs. " << that->
jobID[i] << endl;
10420 std::ostringstream outStr;
10460 if (this->
path[i] != that->
path[i])
10465 outStr <<
"path[" << i <<
"]: \'" << this->
path[i] <<
"\' vs. \'" << that->
path[i] <<
"\'" << endl;
10477 std::ostringstream outStr;
10527 std::ostringstream outStr;
10556 if ((this->
from != that->
from) || (this->to != that->
to) ||
10557 (this->makeCopy != that->
makeCopy))
10562 outStr <<
"from: " << this->
from <<
" vs. " << that->
from << endl;
10563 outStr <<
"to: " << this->
to <<
" vs. " << that->
to << endl;
10564 outStr <<
"makeCopy: " << this->
makeCopy <<
" vs. " << that->
makeCopy << endl;
10576 std::ostringstream outStr;
10621 outStr <<
"process[" << i <<
"]: " << this->
process[i] <<
" vs. " << that->
process[i] << endl;
10634 std::ostringstream outStr;
10691 outStr <<
"other[" << i <<
"]: " << this->
other[i] <<
" vs. " << that->
other[i] << endl;
10704 std::ostringstream outStr;
10753 std::ostringstream outStr;
10781 if ((this->
idx != that->
idx) || this->name != that->
name
10787 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
10788 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10801 std::ostringstream outStr;
10850 std::ostringstream outStr;
10878 if ((this->
idx != that->
idx) || this->name != that->
name || (this->value != that->
value))
10883 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
10884 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10896 std::ostringstream outStr;
10945 std::ostringstream outStr;
10973 if ((this->
idx != that->
idx) || (this->value != that->
value))
10974 if ((this->
value !=
"unknown" && that->
value !=
"") ||
10975 (that->
value !=
"unknown" && this->value !=
"") )
10980 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
10981 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
10994 std::ostringstream outStr;
11043 std::ostringstream outStr;
11095 std::ostringstream outStr;
11129 outStr <<
"sosIdx: " << this->
sosIdx <<
" vs. " << that->
sosIdx << endl;
11161 std::ostringstream outStr;
11194 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11195 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11196 outStr <<
"name: -" << this->
name <<
"- vs. -" << that->
name <<
"-" << endl;
11208 std::ostringstream outStr;
11237 (this->value != that->
value) ||
11238 (this->solver != that->
solver) ||
11239 (this->category != that->
category) ||
11240 (this->type != that->
type) ||
11246 outStr <<
"name: " << this->
name <<
" vs. " << that->
name << endl;
11247 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11248 outStr <<
"solver: " << this->
solver <<
" vs. " << that->
solver << endl;
11249 outStr <<
"category: " << this->
category <<
" vs. " << that->
category << endl;
11250 outStr <<
"type: " << this->
type <<
" vs. " << that->
type << endl;
11292 std::ostringstream outStr;
11320 if ((this->
idx != that->
idx) || this->name != that->
name || (this->value != that->
value) ||
11321 (this->lbValue != that->
lbValue) || (this->ubValue != that->
ubValue))
11326 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11327 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11328 outStr <<
"lbValue: " << this->
lbValue <<
" vs. " << that->
lbValue << endl;
11329 outStr <<
"ubValue: " << this->
ubValue <<
" vs. " << that->
ubValue << endl;
11341 std::ostringstream outStr;
11398 std::ostringstream outStr;
11447 std::ostringstream outStr;
11480 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11481 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11493 std::ostringstream outStr;
11542 std::ostringstream outStr;
11570 if ((this->
idx != that->
idx) ||
11571 this->name != that->
name ||
11578 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11579 outStr <<
"lbValue: " << this->
lbValue <<
" vs. " << that->
lbValue << endl;
11580 outStr <<
"ubValue: " << this->
ubValue <<
" vs. " << that->
ubValue << endl;
11592 std::ostringstream outStr;
11621 (this->value != that->
value) ||
11622 (this->solver != that->
solver) ||
11623 (this->category != that->
category) ||
11624 (this->type != that->
type) ||
11630 outStr <<
"name: " << this->
name <<
" vs. " << that->
name << endl;
11631 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11632 outStr <<
"solver: " << this->
solver <<
" vs. " << that->
solver << endl;
11633 outStr <<
"category: " << this->
category <<
" vs. " << that->
category << endl;
11634 outStr <<
"type: " << this->
type <<
" vs. " << that->
type << endl;
11662 std::ostringstream outStr;
11690 if ((this->
idx != that->
idx) || this->name != that->
name || (this->value != that->
value) ||
11691 (this->lbValue != that->
lbValue) || (this->ubValue != that->
ubValue))
11696 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11697 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11698 outStr <<
"lbValue: " << this->
lbValue <<
" vs. " << that->
lbValue << endl;
11699 outStr <<
"ubValue: " << this->
ubValue <<
" vs. " << that->
ubValue << endl;
11711 std::ostringstream outStr;
11768 std::ostringstream outStr;
11817 std::ostringstream outStr;
11850 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11851 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
11863 std::ostringstream outStr;
11912 std::ostringstream outStr;
11940 if ((this->
idx != that->
idx) || this->name != that->
name ||
11947 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
11961 std::ostringstream outStr;
11990 (this->value != that->
value) ||
11991 (this->solver != that->
solver) ||
11992 (this->category != that->
category) ||
11993 (this->type != that->
type) ||
11999 outStr <<
"name: " << this->
name <<
" vs. " << that->
name << endl;
12000 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
12001 outStr <<
"solver: " << this->
solver <<
" vs. " << that->
solver << endl;
12002 outStr <<
"category: " << this->
category <<
" vs. " << that->
category << endl;
12003 outStr <<
"type: " << this->
type <<
" vs. " << that->
type << endl;
12031 std::ostringstream outStr;
12060 if ((this->
idx != that->
idx) || this->name != that->
name || (this->value != that->
value) ||
12061 (this->lbValue != that->
lbValue) || (this->ubValue != that->
ubValue))
12066 outStr <<
"idx: " << this->
idx <<
" vs. " << that->
idx << endl;
12067 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
12068 outStr <<
"lbValue: " << this->
lbValue <<
" vs. " << that->
lbValue << endl;
12069 outStr <<
"ubValue: " << this->
ubValue <<
" vs. " << that->
ubValue << endl;
12082 std::ostringstream outStr;
12133 std::ostringstream outStr;
12162 (this->value != that->
value) ||
12163 (this->solver != that->
solver) ||
12164 (this->category != that->
category) ||
12165 (this->type != that->
type) ||
12171 outStr <<
"name: " << this->
name <<
" vs. " << that->
name << endl;
12172 outStr <<
"value: " << this->
value <<
" vs. " << that->
value << endl;
12173 outStr <<
"solver: " << this->
solver <<
" vs. " << that->
solver << endl;
12174 outStr <<
"category: " << this->
category <<
" vs. " << that->
category << endl;
12175 outStr <<
"type: " << this->
type <<
" vs. " << that->
type << endl;
12204 if (
OSRand() <= density)
12209 if (
OSRand() <= density)
12214 if (
OSRand() <= density)
12219 if (
OSRand() <= density)
12224 if (
OSRand() <= density)
12229 if (
OSRand() <= density)
12246 if (
OSRand() <= density) this->
jobID =
"random string";
12252 if (
OSRand() <= density)
12257 if (
OSRand() <= density)
12262 if (
OSRand() <= density)
12276 if (
OSRand() <= density)
12281 if (
OSRand() <= density)
12286 if (
OSRand() <= density)
12291 if (
OSRand() <= density)
12296 if (
OSRand() <= density)
12310 if (
OSRand() <= density)
12313 if (conformant) temp = 0.5*temp;
12315 if (temp <= 0.25) this->
type =
"solver";
12316 else if (temp <= 0.50) this->
type =
"agent";
12317 else if (temp <= 0.75) this->
type =
"";
12318 else this->
type =
"spy";
12321 if (
OSRand() <= density)
12338 if (
OSRand() <= density)
12343 if (
OSRand() <= density)
12348 if (
OSRand() <= density)
12353 if (
OSRand() <= density)
12358 if (
OSRand() <= density)
12363 if (
OSRand() <= density)
12368 if (
OSRand() <= density)
12373 if (
OSRand() <= density)
12378 if (
OSRand() <= density)
12383 if (
OSRand() <= density)
12388 if (
OSRand() <= density)
12393 if (
OSRand() <= density)
12398 if (
OSRand() <= density)
12403 if (
OSRand() <= density)
12420 if (
OSRand() <= density)
12425 if (
OSRand() <= density)
12430 if (
OSRand() <= density)
12435 if (
OSRand() <= density)
12449 if (
OSRand() <= density) this->
value =
"http://www.google.com";
12450 if (
OSRand() <= density)
12453 if (conformant) temp = 0.5*temp;
12468 if (
OSRand() <= density) this->
value =
"http://www.google.com";
12469 if (
OSRand() <= density)
12472 if (conformant) temp = 0.5*temp;
12496 for (
int i = 0; i <
n; i++)
12510 if (
OSRand() <= density || conformant) this->
name =
"random string";
12511 if (
OSRand() <= density) this->
value =
"random string";
12530 jobID =
new std::string[
n];
12531 for (
int i = 0; i <
n; i++)
12532 jobID[i] =
"random string";
12550 path =
new std::string[
n];
12551 for (
int i = 0; i <
n; i++)
12552 path[i] =
"random string";
12570 for (
int i = 0; i <
n; i++)
12584 this->
from =
"random string";
12585 this->
to =
"random string";
12603 for (
int i = 0; i <
n; i++)
12604 process[i] =
"random string";
12614 if (
OSRand() <= density)
12620 if (
OSRand() <= density)
12625 if (
OSRand() <= density)
12630 if (
OSRand() <= density)
12635 if (
OSRand() <= density)
12650 for (
int i = 0; i <
n; i++)
12671 for (
int i = 0; i <
n; i++)
12686 if (
OSRand() <= density)
12687 this->
name =
"random string";
12689 if (
OSRand() <= density)
12692 else this->
value = 2.71828;
12711 for (
int i = 0; i <
n; i++)
12726 if (
OSRand() <= density) this->
name =
"random string";
12727 if (
OSRand() <= density) this->
value =
"random string";
12746 for (
int i = 0; i <
n; i++)
12767 for (
int i = 0; i <
n; i++)
12793 for (
int i = 0; i <
n; i++)
12809 if (
OSRand() <= density) this->
name =
"random string";
12811 if (
OSRand() <= density)
12821 this->
name =
"random string";
12822 if (
OSRand() <= density) this->
value =
"random string";
12823 if (
OSRand() <= density) this->
solver =
"random string";
12825 if (
OSRand() <= density) this->
type =
"random string";
12828 if (
OSRand() <= density)
12840 for (
int i = 0; i <
n; i++)
12856 for (
int i = 0; i <
n; i++)
12872 if (
OSRand() <= density) this->
name =
"random string";
12873 if (
OSRand() <= density) this->
value =
"random string";
12884 if (
OSRand() <= density)
12890 if (
OSRand() <= density)
12895 if (
OSRand() <= density)
12901 if (
OSRand() <= density)
12911 for (
int i = 0; i <
n; i++)
12933 for (
int i = 0; i <
n; i++)
12949 if (
OSRand() <= density) this->
name =
"random string";
12951 if (
OSRand() <= density)
12954 else this->
value = 2.71828;
12973 for (
int i = 0; i <
n; i++)
12989 if (
OSRand() <= density) this->
name =
"random string";
12991 if (
OSRand() <= density)
12994 else this->
lbValue = 2.71828;
12996 else this->
ubValue = 2.71828;
13006 this->
name =
"random string";
13007 if (
OSRand() <= density) this->
value =
"random string";
13008 if (
OSRand() <= density) this->
solver =
"random string";
13010 if (
OSRand() <= density) this->
type =
"random string";
13013 if (
OSRand() <= density)
13025 for (
int i = 0; i <
n; i++)
13041 for (
int i = 0; i <
n; i++)
13057 else this->
idx = -2;
13058 if (
OSRand() <= density) this->
name =
"random string";
13059 if (
OSRand() <= density) this->
value =
"random string";
13070 if (
OSRand() <= density)
13076 if (
OSRand() <= density)
13081 if (
OSRand() <= density)
13087 if (
OSRand() <= density)
13097 for (
int i = 0; i <
n; i++)
13119 for (
int i = 0; i <
n; i++)
13134 if (
OSRand() <= density) this->
name =
"random string";
13136 if (
OSRand() <= density)
13140 else this->
value = 2.71828;
13158 for (
int i = 0; i <
n; i++)
13173 if (
OSRand() <= density) this->
name =
"random string";
13175 if (
OSRand() <= density)
13190 this->
name =
"random string";
13191 if (
OSRand() <= density) this->
value =
"random string";
13192 if (
OSRand() <= density) this->
solver =
"random string";
13194 if (
OSRand() <= density) this->
type =
"random string";
13197 if (
OSRand() <= density)
13209 for (
int i = 0; i <
n; i++)
13225 for (
int i = 0; i <
n; i++)
13241 if (
OSRand() <= density) this->
name =
"random string";
13242 if (
OSRand() <= density) this->
value =
"random string";
13262 for (
int i = 0; i <
n; i++)
13275 if (
OSRand() <= density || conformant) this->
name =
"random string";
13277 if (
OSRand() <= density) this->
value =
"random string";
13278 if (
OSRand() <= density) this->
solver =
"random string";
13280 if (
OSRand() <= density) this->
type =
"random string";
13283 if (
OSRand() <= density)
13292 item =
new std::string[
n];
13293 for (
int i = 0; i <
n; i++)
13294 item[i] =
"random string";
13325 if (that->
system != NULL)
13337 if (that->
job != NULL)
13607 if (n < 0)
return false;
13608 if (n == 0)
return true;
13612 for (
int i = 0; i <
n; i++)
13644 if (n < 0)
return false;
13645 if (n == 0)
return true;
13647 this->
jobID =
new std::string[
n];
13648 for (
int i = 0; i <
n; i++)
13664 if (n < 0)
return false;
13665 if (n == 0)
return true;
13667 this->
path =
new std::string[
n];
13668 for (
int i = 0; i <
n; i++)
13684 if (n < 0)
return false;
13685 if (n == 0)
return true;
13688 for (
int i = 0; i <
n; i++)
13704 this->
to = that->
to;
13719 if (n < 0)
return false;
13720 if (n == 0)
return true;
13723 for (
int i = 0; i <
n; i++)
13769 if (n < 0)
return false;
13770 if (n == 0)
return true;
13773 for (
int i = 0; i <
n; i++)
13791 if (n < 0)
return false;
13792 if (n == 0)
return true;
13795 for (
int i = 0; i <
n; i++)
13824 if (n < 0)
return false;
13825 if (n == 0)
return true;
13828 for (
int i = 0; i <
n; i++)
13857 if (n < 0)
return false;
13858 if (n == 0)
return true;
13861 for (
int i = 0; i <
n; i++)
13878 if (n < 0)
return false;
13879 if (n == 0)
return true;
13882 for (
int i = 0; i <
n; i++)
13903 if (n < 0)
return false;
13904 if (n == 0)
return true;
13907 for (
int i = 0; i <
n; i++)
13946 if (n < 0)
return false;
13950 for (
int i = 0; i <
n; i++)
13961 if (n < 0)
return false;
13962 if (n == 0)
return true;
13965 for (
int i = 0; i <
n; i++)
14014 if (n < 0)
return false;
14015 if (n == 0)
return true;
14018 for (
int i = 0; i <
n; i++)
14035 if (n < 0)
return false;
14036 if (n == 0)
return true;
14039 for (
int i = 0; i <
n; i++)
14067 if (n < 0)
return false;
14068 if (n == 0)
return true;
14071 for (
int i = 0; i <
n; i++)
14112 if (n < 0)
return false;
14116 for (
int i = 0; i <
n; i++)
14127 if (n < 0)
return false;
14131 for (
int i = 0; i <
n; i++)
14181 if (n < 0)
return false;
14182 if (n == 0)
return true;
14185 for (
int i = 0; i <
n; i++)
14202 if (n < 0)
return false;
14203 if (n == 0)
return true;
14206 for (
int i = 0; i <
n; i++)
14234 if (n < 0)
return false;
14235 if (n == 0)
return true;
14238 for (
int i = 0; i <
n; i++)
14278 if (n < 0)
return false;
14282 for (
int i = 0; i <
n; i++)
14293 if (n < 0)
return false;
14297 for (
int i = 0; i <
n; i++)
14329 if (n < 0)
return false;
14330 if (n == 0)
return true;
14333 for (
int i = 0; i <
n; i++)
14357 if (n < 0)
return false;
14358 if (n == 0)
return true;
14360 this->
item =
new std::string[
n];
14361 for (
int i = 0; i <
n; i++)
~SolverOption()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int getNumberOfOutputFilesToMove()
Get the number of output files to move.
bool IsEqual(InitConstraintValues *that)
A function to check for the equality of two objects.
bool setAnotherSOSVariableBranchingWeight(int sosIdx, int nvar, double weight, int *idx, double *value, std::string *name)
std::string unit
the unit in which CPU speed is measured
~GeneralOption()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string value
value of the option
std::string getJobID()
Get the job ID.
bool IsEqual(InitObjValue *that)
A function to check for the equality of two objects.
PathPairs()
Default constructor.
InitConstraintValues * initialConstraintValues
initial values for the constraints
the IntegerVariableBranchingWeights class.
InitDualVariableValues()
Default constructor.
~ConstraintOption()
Class destructor.
bool setOtherJobOptions(int numberOfOptions, OtherOption **other)
bool setAnotherFileToDelete(std::string path)
bool deepCopyFrom(OptimizationOption *that)
A function to make a deep copy of an instance of this class.
~OtherConOption()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setIntegerVariableBranchingWeights(int numberOfVar, int *idx, double *value, std::string *name)
bool IsEqual(BranchingWeight *that)
A function to check for the equality of two objects.
the OtherConstraintOption class.
bool setInitBasisStatus(int object, int status, int *i, int ni)
int getNumberOfInitVarValues()
Get the number of initial variable values.
SOSVariableBranchingWeights()
Default constructor.
bool setCon(int numberOfCon, OtherConOption **con)
A function to set an array of <con> elements.
OtherOptionOrResultEnumeration ** enumeration
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherObjectiveOption ** getAllOtherObjectiveOptions()
Get all <other> objective options.
bool IsEqual(MinMemorySize *that)
A function to check for the equality of two objects.
InitObjectiveValues * initialObjectiveValues
initial values for the objectives
bool verifyCPUSpeedUnit(std::string unit)
bool addProcess(std::string process)
A function to add a <process> element.
std::string name
optional variable name
int value
the minimum number of CPUs required
std::string * jobID
the list of job IDs
MinCPUSpeed()
Default constructor.
bool setVar(int numberOfVar, OtherVarOption **var)
A function to set an array of elements.
double getMaxTime()
Get the maximum allowed time.
bool deepCopyFrom(Processes *that)
A function to make a deep copy of an instance of this class.
std::vector< OtherConstraintOption * > getOtherConstraintOptions(std::string solver_name)
Get the array of other constraint options.
std::string name
optional variable name
std::string description
additional description about the storage
bool deepCopyFrom(DirectoriesAndFiles *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(DirectoriesAndFiles *that)
A function to check for the equality of two objects.
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 addOther(OtherConstraintOption *other)
A function to add an <other> element.
InitBasStatus ** var
initial value for each variable
bool verifyLocationType(std::string type)
bool setAnotherInitObjValue(int idx, double value)
int getOptionInt(std::string optionName)
Get any of the integer-valued options.
double * m_mdInitObjLowerBoundsDense
m_mdInitObjLowerBoundsDense holds initial lower bounds for the objectives in dense form ...
bool setAnOtherGeneralOption(std::string name, std::string value, std::string description)
Add another general option to the <other> option array.
bool IsEqual(OtherOptions *that)
A function to check for the equality of two objects.
bool deepCopyFrom(BasisStatus *that)
A function to make a deep copy of an instance of this class.
bool deepCopyFrom(InstanceLocationOption *that)
A function to make a deep copy of an instance of this class.
bool setAnotherInitVarValue(int idx, double value)
double ubDualValue
initial upper bound
bool IsEqual(IntegerVariableBranchingWeights *that)
A function to check for the equality of two objects.
const OSSmartPtr< OSOutput > osoutput
std::string solver
name of the solver to which this option applies
InitVarValue ** var
initial value for each variable
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string getInstanceLocationType()
Get the location type.
bool setPathPair(int numberOfPathPairs, PathPair **pathPair)
A function to set an array of <pathPair> elements.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string description
additional description about the memory
std::string name
optional variable name
std::string value
value of the option
int * getVariableInitialBasisStatusDense(int numberOfVariables)
Get the initial basis status for all variables in dense form.
DirectoriesAndFiles * requiredDirectories
directories required to run the job
int getNumberOfSOS()
Get the number of special ordered sets for which branching weights are provided.
~InstanceLocationOption()
Class destructor.
int getNumberOfOtherConstraintOptions()
Get the number of other constraint options.
bool IsEqual(PathPairs *that)
A function to check for the equality of two objects.
InitConValue ** getInitConValuesSparse()
Get the initial values associated with the constraints in sparse form.
int numberOfCon
number of <con> children
std::string category
name of the category into which this option falls
bool verifyTransportType(std::string type)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
InitConstraintValues()
Default constructor.
bool deepCopyFrom(JobOption *that)
A function to make a deep copy of an instance of this class.
bool setInitObjBoundsSparse(int numberOfObj, InitObjBound **obj)
std::string getInstanceName()
Get the instance name.
bool IsEqual(VariableOption *that)
A function to check for the equality of two objects.
bool IsEqual(JobOption *that)
A function to check for the equality of two objects.
std::string solver
name of the solver to which this option applies
bool setOther(int numberOfOptions, OtherObjectiveOption **other)
A function to set an array of <other> elements.
~SOSVariableBranchingWeights()
Class destructor.
bool setSolverOptions(int numberOfSolverOptions, SolverOption **solverOption)
the InitConstraintValues class.
std::string solver
the solver to which the option applies
ServiceOption * service
serviceOption holds the third child of the OSOption specified by the OSoL Schema. ...
bool IsEqual(CPUSpeed *that)
A function to check for the equality of two objects.
int * getSlackVariableInitialBasisStatusDense(int numberOfConstraints)
Get the initial basis status for all slack variables in dense form.
bool setInitObjValuesDense(int numberOfObj, double *value)
std::string serviceName
the name of the service
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string value
value of the option
InitObjectiveBounds()
Default constructor.
std::string requestedStartTime
the requested time to start the job
bool setOther(int numberOfOptions, OtherVariableOption **other)
A function to set an array of <other> elements.
OptimizationOption()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setAnotherJobDependency(std::string jobID)
bool setAnotherSolverOption(std::string name, std::string value, std::string solver, std::string category, std::string type, std::string description)
int getNumberOfRequiredFiles()
Get the number of required files.
double * m_mdInitVarValuesDense
m_mdInitVarValuesDense holds the initial variable values in dense form
OtherObjOption()
Default constructor.
std::string name
optional objective name
OtherConOption()
Default constructor.
~MinCPUNumber()
Class destructor.
bool setVar(int numberOfVar, InitVarValue **var)
A function to set an array of elements.
bool setObj(int numberOfObj, InitObjBound **obj)
A function to set an array of <obj> elements.
int numberOfCon
number of <con> children
bool setMinDiskSpace(std::string unit, std::string description, double value)
Set the minimum disk space required for the current job.
ENUM_COMBINE_ARRAYS
An enum to streamline set() methods of vectors.
bool deepCopyFrom(PathPairs *that)
A function to make a deep copy of an instance of this class.
std::string type
the service type
GeneralFileHeader * optionHeader
OSOption has a header and five other children: general, system, service, job, and optimization...
BranchingWeight()
Default constructor.
bool setOptionDbl(std::string optionName, double value)
the InitObjectiveBounds class.
int numberOfVar
number of children
~InitObjectiveValues()
Class destructor.
bool setInitConValues(int numberOfCon, int *idx, double *value, std::string *name)
bool addVar(int idx, double value)
A function to add a element.
int getNumberOfInitConValues()
Get the number of initial constraint values.
std::string errormsg
errormsg is the error that is causing the exception to be thrown
~SolverOptions()
Class destructor.
bool verifyStorageUnit(std::string unit)
double value
the minimum disk space required
bool setMinMemorySize(std::string unit, std::string description, double value)
Set the minimum memory size required for the current job.
bool setAnOtherVariableOption(OtherVariableOption *varOption)
SOSVariableBranchingWeights * sosVariableBranchingWeights
branching weights for SOS variables and groups
std::string getMinMemoryDescription()
get the memory description
bool setSOSVariableBranchingWeights(int numberOfSOS, SOSWeights **sos)
JobOption * job
jobOption holds the fourth child of the OSOption specified by the OSoL Schema.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherOption ** other
the list of other options
bool IsEqual(InitConValue *that)
A function to check for the equality of two objects.
bool setNumberOfConstraints(int numberOfConstraints)
StorageCapacity * minDiskSpace
the minimum disk space required
~InitDualVariableValues()
Class destructor.
bool setInitDualVarValuesDense(int numberOfCon, double *lb, double *ub)
double * getInitObjUpperBoundsDense()
Get the initial upper bounds associated with the objectives in dense form.
bool setUserName(std::string userName)
Set the username.
double * m_mdIntegerVariableBranchingWeightsDense
m_mdIntegerVariableBranchingWeightsDense holds the branching weights for integer variables ...
int sosIdx
index of the SOS (to match the OSiL file)
ConstraintOption()
Default constructor.
std::vector< SolverOption * > getSolverOptions(std::string solver_name)
Get the options associated with a given solver.
bool deepCopyFrom(InitObjValue *that)
A function to make a deep copy of an instance of this class.
bool setInitVarValuesDense(int numberOfVar, double *value)
std::string * getInitVarValuesStringDense()
Get the initial value strings associated with the variables in dense form.
~InitVarValue()
Class destructor.
int numberOfOtherObjectiveOptions
number of <other> child elements
JobOption()
Default constructor.
bool setInitVarValuesString(int numberOfVar, int *idx, std::string *value, std::string *name)
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.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string * path
the list of directory and file paths
bool IsEqual(InitObjBound *that)
A function to check for the equality of two objects.
std::string getMinMemoryUnit()
Get the memory unit.
std::string description
additional description about the CPU
std::string getSolverToInvoke()
Get the solver name.
~MinMemorySize()
Class destructor.
bool deepCopyFrom(InitObjectiveValues *that)
A function to make a deep copy of an instance of this class.
bool deepCopyFrom(CPUNumber *that)
A function to make a deep copy of an instance of this class.
bool setVar(int numberOfVar, InitBasStatus **var)
A function to set an array of elements.
std::string getFileLicence()
Get licence information associated with the file.
bool IsEqual(BasisStatus *that)
A function to check for the equality of two objects.
bool setInitVarValuesStringSparse(int numberOfVar, InitVarValueString **var)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double value
the number of units
std::string description
additional description about the disk space
the DirectoriesAndFiles class.
SystemOption * system
systemOption holds the second child of the OSOption specified by the OSoL Schema. ...
bool IsEqual(OptimizationOption *that)
A function to check for the equality of two objects.
bool IsEqual(InitialBasisStatus *that)
A function to check for the equality of two objects.
double * m_mdInitConValuesDense
m_mdInitConValuesDense holds initial constraint values in dense form
~OSOption()
Class destructor.
bool setAnotherInputFileToMove(std::string fromPath, std::string toPath, bool makeCopy)
SolverOption()
Default constructor.
int value
the number of CPUs
int numberOfEnumerations
number of <enumeration> child elements
PathPair ** getInputDirectoriesToMove()
Get the array of input directories to move.
std::string userName
the username
int numberOfVariables
the number of variables
std::string category
the category to which the option belongs
~OtherConstraintOption()
Class destructor.
OtherVariableOption ** other
other variable options
bool setAnOtherJobOption(std::string name, std::string value, std::string description)
std::string type
type of the option value (integer, double, boolean, string)
double * m_mdInitObjUpperBoundsDense
m_mdInitObjUpperBoundsDense holds initial upper bounds for the objectives in dense form ...
double * m_mdInitObjValuesDense
m_mdInitObjValuesDense holds initial objective values in dense form
bool getIntVector(int status, int *i)
Get the entire array of indices for a particular status.
int getNumberOfJobDependencies()
Get the number of job dependencies.
OtherOptions * otherOptions
the list of other general options
std::string solver
name of the solver to which this option applies
InitDualVariableValues * initialDualValues
initial dual values for the constraints
PathPair()
Default constructor.
bool deepCopyFrom(IntegerVariableBranchingWeights *that)
A function to make a deep copy of an instance of this class.
bool setRequiredDirectories(int numberOfPaths, std::string *paths)
std::string * m_mdInitVarValuesStringDense
m_mdInitVarValuesStringDense holds the initial values for string-valued variables ...
~OtherObjectiveOption()
Class destructor.
std::string name
name of the option
bool deepCopyFrom(OtherObjOption *that)
A function to make a deep copy of an instance of this class.
bool deepCopyFrom(JobDependencies *that)
A function to make a deep copy of an instance of this class.
bool setOther(int numberOfOptions, OtherConstraintOption **other)
A function to set an array of <other> elements.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
DirectoriesAndFiles * directoriesToDelete
directories to delete upon completion
ConstraintOption * constraints
the options for the constraints
std::string description
additional description about the CPU speed
bool setMinDiskSpaceUnit(std::string unit)
int getNumberOfRequiredDirectories()
Get the number of required directories.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setSolverToInvoke(std::string solverToInvoke)
Set the solver to be invoked.
~MinDiskSpace()
Class destructor.
bool setOutputFilesToMove(int numberOfPathPairs, PathPair **pathPair)
std::string category
name of the category into which this option falls
std::string name
name of the option
std::string * getRequiredFiles()
Get the array of required files.
StorageCapacity * minMemorySize
the minimum memory required
std::string getContactTransportType()
Get the transport type.
std::string value
initial value
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...
InitDualVarValue()
Default constructor.
bool deepCopyFrom(OtherVarOption *that)
A function to make a deep copy of an instance of this class.
std::string lbValue
lower bound of the option
OtherOptionOrResultEnumeration ** enumeration
std::string category
name of the category into which this option falls
std::string getServiceURI()
Get the service URI.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
~InitVariableValues()
Class destructor.
std::string getServiceType()
Get the service type.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
InitObjBound()
Default constructor.
int getNumberOfObjectives()
Get the number of objectives in the instance.
ServiceOption()
Default constructor.
int numberOfVar
number of children
std::string getFileDescription()
Get a description for the file or problem.
bool setAnOtherServiceOption(std::string name, std::string value, std::string description)
bool verifyServiceType(std::string type)
int getNumberOfDirectoriesToMake()
Get the number of directories to make.
std::string getMinDiskSpaceDescription()
get the disk space description
std::string unit
the unit in which CPU speed is measured
bool getInitialBasisElements(int type, int status, int *elem)
Get the initial basis elements for a particular variable type and basis status.
bool makeCopy
record whether a copy is to be made
std::string instanceName
the name of the instance
bool IsEqual(SolverOption *that)
A function to check for the equality of two objects.
PathPairs * outputFilesToMove
output files to move or copy
the SOSVariableBranchingWeights class.
bool setInputDirectoriesToMove(int numberOfPathPairs, PathPair **pathPair)
double groupWeight
branching weight for the entire SOS
Processes()
Default constructor.
int numberOfCon
number of <con> children
bool addSOS(int sosIdx, int nvar, double weight, int *idx, double *value, std::string *name)
A function to add an <sos> element.
bool setAnOtherObjectiveOption(OtherObjectiveOption *objOption)
bool IsEqual(PathPair *that)
A function to check for the equality of two objects.
std::string name
optional variable name
OtherVariableOption ** getAllOtherVariableOptions()
Get all <other> variable options.
std::string * getRequiredDirectories()
Get the array of required directories.
std::string getMinCPUNumberDescription()
Get the CPU description.
bool setNumberOfVariables(int numberOfVariables)
std::string conType
type of the values in the con array
the InitVariableValues class.
the OtherObjOption class.
int getNumberOfConstraints()
Get the number of constraints in the instance.
bool setRequestedStartTime(std::string time)
InitDualVarValue ** getInitDualVarValuesSparse()
Get the initial bounds associated with the dual variables in sparse form.
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 IsEqual(ObjectiveOption *that)
A function to check for the equality of two objects.
std::string name
optional variable name
bool setFilesToMake(int numberOfPaths, std::string *paths)
int getNumberOfOutputDirectoriesToMove()
Get the number of output directories to move.
int numberOfPathPairs
the number of <path> children
std::string name
name of the option
bool deepCopyFrom(SolverOptions *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(InitObjectiveBounds *that)
A function to check for the equality of two objects.
std::string password
the password
double * getInitDualVarLowerBoundsDense()
Get the initial dual variables associated with the lower bounds in dense form.
bool setAnotherDirectoryToDelete(std::string path)
bool setAnotherIntegerVariableBranchingWeight(int idx, double value)
std::string jobID
the job ID
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
std::string to
the file or directory to move/copy to
double lbValue
initial lower bound
std::string locationType
the type of the location
bool verifyTimeUnit(std::string unit)
int numberOfObj
number of <obj> children
IntegerVariableBranchingWeights()
Default constructor.
SolverOptions()
Default constructor.
int numberOfSolverOptions
the number of solver options
bool deepCopyFrom(SOSVariableBranchingWeights *that)
A function to make a deep copy of an instance of this class.
std::string name
optional variable name
bool deepCopyFrom(InitObjBound *that)
A function to make a deep copy of an instance of this class.
bool deepCopyFrom(BranchingWeight *that)
A function to make a deep copy of an instance of this class.
OtherOption ** getAllOtherOptions()
Get the array of all other options associated with the <general>, <system>, <service> and <job> eleme...
std::string * getProcessesToKill()
Get the array of processes to kill.
std::string varType
type of the values in the var array
~InitVarValueString()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(CPUNumber *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 OtherVarOption class.
double OSNaN()
returns the value for NaN used in OS
bool setIntVector(int status, int *i, int ni)
Set the indices for a particular status.
DirectoriesAndFiles * filesToDelete
files to delete upon completion
GeneralOption()
Default constructor.
bool setVar(int numberOfVar, BranchingWeight **var)
A function to set an array of elements.
bool IsEqual(ServiceOption *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.
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.
std::string getContact()
Get the contact information.
int getNumberOfOtherObjectiveOptions()
Get the number of other objective options.
int numberOfEnumerations
number of <enumeration> child elements
int numberOfObjectives
the number of objectives
bool addOther(OtherObjectiveOption *other)
A function to add an <other> element.
OtherVariableOption()
Default constructor.
~DirectoriesAndFiles()
Class destructor.
int numberOfVar
number of child elements
InstanceLocationOption * instanceLocation
the location of the instance
std::string from
the file or directory to move/copy from
double * m_mdInitDualVarLowerBoundsDense
m_mdInitDualVarLowerBoundsDense holds initial dual values for the lower bound of the constraints in d...
bool IsEqual(InitBasStatus *that)
A function to check for the equality of two objects.
std::string serviceURI
the service URI
VariableOption()
Default constructor.
double value
the minimum memory size required
~PathPair()
Class destructor.
std::string * getDirectoriesToMake()
Get the array of directories to make.
bool setMaxTime(double value, std::string unit)
bool IsEqual(OtherOption *that)
A function to check for the equality of two objects.
bool IsEqual(OtherVarOption *that)
A function to check for the equality of two objects.
OtherObjectiveOption()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setMinMemoryUnit(std::string unit)
InstanceLocationOption()
Default constructor.
PathPair ** getOutputFilesToMove()
Get the array of output files to move.
~OtherVariableOption()
Class destructor.
std::string getMinCPUSpeedUnit()
Get the CPU speed unit.
bool setServiceName(std::string serviceName)
Set the service name.
int getNumberOfInitDualVarValues()
Get the number of initial dual variable values.
bool setLicense(std::string license)
Set the license information.
std::string description
additional description about the CPU speed
OSOption()
Default constructor.
std::string * getJobDependencies()
Get the array of job dependencies.
std::string description
additional description about the CPU
std::string name
optional variable name
BasisStatus * initialBasisStatus
initial basis information
bool IsEqual(SolverOptions *that)
A function to check for the equality of two objects.
bool addObj(int idx, double lbValue, double ubValue)
A function to add a <obj> element.
bool IsEqual(Processes *that)
A function to check for the equality of two objects.
double getOptionDbl(std::string optionName)
Get any of the double-valued options.
bool addVar(int idx, double value)
A function to add a element.
the OptimizationOption class.
~Processes()
Class destructor.
~ObjectiveOption()
Class destructor.
~InitObjBound()
Class destructor.
std::string * getFilesToMake()
Get the array of files to make.
bool deepCopyFrom(InitConValue *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(MinCPUNumber *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.
InitialBasisStatus()
Default constructor.
bool IsEqual(InitVariableValuesString *that)
A function to check for the equality of two objects.
BranchingWeight ** var
branching weights for individual variables
bool deepCopyFrom(InitVariableValuesString *that)
A function to make a deep copy of an instance of this class.
bool deepCopyFrom(OtherOption *that)
A function to make a deep copy of an instance of this class.
DirectoriesAndFiles()
Default constructor.
bool setOtherObjectiveOptions(int numberOfObj, OtherObjectiveOption **obj)
int numberOfOtherVariableOptions
number of <other> child elements
the VariableOption class.
bool setDirectoriesToDelete(int numberOfPaths, std::string *paths)
std::string getOptionStr(std::string optionName)
Get any of the string-valued options.
double * getInitVarValuesDense()
Get the initial values associated with the variables in dense form.
bool IsEqual(InitObjectiveValues *that)
A function to check for the equality of two objects.
std::string enumType
type of the values in the enumeration array
double * getInitConValuesDense()
Get the initial values associated with the constraints in dense form.
bool addOther(OtherVariableOption *other)
A function to add an <other> element.
bool setOtherGeneralOptions(int numberOfOptions, OtherOption **other)
Set the other general options as an entire array.
bool IsEqual(SOSWeights *that)
A function to check for the equality of two objects.
std::string description
the description of the option
int numberOfVar
number of children
bool setProcess(int numberOfProcesses, std::string *process)
A function to set an array of <process> elements.
~VariableOption()
Class destructor.
bool setAnotherInitDualVarValue(int idx, double lbValue, double ubValue)
InitObjValue ** obj
initial value for each objective
int getNumberOfOtherGeneralOptions()
Get the number of <other> options in the <general> element.
bool setAnotherInitConValue(int idx, double value)
double getMinDiskSpace()
Get the minimum required disk space.
CPUNumber * minCPUNumber
the minimum number of processors required
bool IsEqual(OtherObjectiveOption *that)
A function to check for the equality of two objects.
bool setInitObjBounds(int numberOfObj, int *idx, double *lbValue, double *ubValue, std::string *name)
OtherOption ** getOtherServiceOptions()
Get the array of other options associated with the <service> element.
bool setAnotherRequiredFile(std::string path)
bool setJobDependencies(int numberOfDependencies, std::string *jobDependencies)
bool setAnotherOutputDirectoryToMove(std::string fromPath, std::string toPath, bool makeCopy)
int numberOfPaths
the number of <path> children
bool deepCopyFrom(InitDualVarValue *that)
A function to make a deep copy of an instance of this class.
std::string name
the name of the option
double value
branching weight
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.
int getNumberOfVariables()
Get the number of variables in the instance.
InitObjValue()
Default constructor.
the OtherObjectiveOption class.
bool setServiceURI(std::string serviceURI)
Set the serviceURI.
bool deepCopyFrom(SOSWeights *that)
A function to make a deep copy of an instance of this class.
MinMemorySize()
Default constructor.
SolverOption ** getAllSolverOptions()
Get all solver options.
int numberOfConstraints
the number of constraints
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherOption ** getOtherOptions(std::string elementName)
Get the array of other options associated with any element.
double value
initial value
~OtherObjOption()
Class destructor.
std::string value
initial value
std::string description
description of the option
DirectoriesAndFiles * directoriesToMake
directories to make during the job
ObjectiveOption()
Default constructor.
bool IsEqual(InitDualVarValue *that)
A function to check for the equality of two objects.
int idx
index of the variable
bool addPathPair(std::string fromPath, std::string toPath, bool makeCopy)
A function to add a <pathPair> element.
bool setInitObjValuesSparse(int numberOfObj, InitObjValue **obj)
double * getInitObjValuesDense()
Get the initial values associated with the objectives in dense form.
bool setAnotherInitBasisStatus(int type, int idx, int status)
Set the basis status for another variable, objective or constraint/slack.
PathPairs * inputDirectoriesToMove
input directories to move or copy
the ConstraintOption class.
bool IsEqual(OtherConOption *that)
A function to check for the equality of two objects.
bool setInitObjBoundsDense(int numberOfObj, double *lb, double *ub)
bool IsEqual(InitDualVariableValues *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.
bool setCon(int numberOfCon, InitConValue **con)
A function to set an array of <con> elements.
SystemOption()
Default constructor.
~MinCPUSpeed()
Class destructor.
std::string value
the value of the option
int numberOfVar
number of children
~JobOption()
Class destructor.
bool setInstanceLocationType(std::string locationType)
Set the instance location type.
bool deepCopyFrom(InitObjectiveBounds *that)
A function to make a deep copy of an instance of this class.
int * getObjectiveInitialBasisStatusDense(int numberOfObjectives)
Get the initial basis status for all objectives in dense form.
the InitialBasisStatus class.
double * getInitDualVarUpperBoundsDense()
Get the initial dual variables associated with the upper bounds in dense form.
bool deepCopyFrom(InitVariableValues *that)
A function to make a deep copy of an instance of this class.
bool setPath(int numberOfPaths, std::string *path)
A function to set an array of <path> elements.
OtherOptions * otherOptions
the list of other service options
int getNumberOfEl(int status)
Get the number of indices for a particular status.
std::string getServiceName()
Get the service name.
the JobDependencies class.
bool addOther(std::string name, std::string value, std::string description)
A function to add an <other> element.
InitVariableValuesString()
Default constructor.
~OtherOption()
Class destructor.
double value
initial value
PathPair ** getInputFilesToMove()
Get the array of input files to move.
bool setSOS(int numberOfSOS, SOSWeights **sos)
A function to set an array of <sos> elements.
PathPair ** getOutputDirectoriesToMove()
Get the array of output directories to move.
bool setInputFilesToMove(int numberOfPathPairs, PathPair **pathPair)
std::string unit
the unit in which storage capacity is measured
bool setNumberOfOtherConstraintOptions(int numberOfOther)
bool setSolverOptions(int numberOfOptions, SolverOption **solverOption)
A function to set an array of solver options.
bool setNumberOfObjectives(int numberOfObjectives)
std::string enumType
type of the values in the enumeration array
bool deepCopyFrom(CPUSpeed *that)
A function to make a deep copy of an instance of this class.
OtherOption ** getOtherSystemOptions()
Get the array of other options associated with the <system> element.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int numberOfProcesses
the number of <process> children
int getNumberOfInitObjBounds()
Get the number of initial objective bounds.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setAnotherInitVarValueString(int idx, std::string value)
double lbDualValue
initial lower bound
SolverOptions * solverOptions
other solver options
int getNumberOfSOSVarBranchingWeights(int iSOS)
Get the number of variables for which branching weights are provided in a particular SOS...
bool addPath(std::string path)
A function to add a <path> element.
bool setJobID(int numberOfJobIDs, std::string *jobID)
A function to set an array of <jobID> elements.
bool setOtherVariableOptions(int numberOfVar, OtherVariableOption **var)
bool addIdx(int status, int idx)
Add one index to a particular status.
std::string value
value of the option
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setInitDualValues(int numberOfCon, int *idx, double *lbValue, double *ubValue, std::string *name)
~OtherOptions()
Class destructor.
OtherOption ** getOtherJobOptions()
Get the array of other options associated with the <job> element.
bool setNumberOfOtherVariableOptions(int numberOfOther)
the ObjectiveOption class.
std::string * item
the list of items of the option
bool deepCopyFrom(PathPair *that)
A function to make a deep copy of an instance of this class.
OtherOptionOrResultEnumeration ** enumeration
double * getIntegerVariableBranchingWeightsDense()
Get the integer branching weights in dense form.
OtherObjectiveOption * getOtherObjectiveOption(int optionNumber)
Get one particular <other> objective option from the array of options.
InitVarValueString ** var
initial value for each variable
the InitVariableValuesString class.
~SystemOption()
Class destructor.
bool IsEqual(MinDiskSpace *that)
A function to check for the equality of two objects.
bool IsEqual(SystemOption *that)
A function to check for the equality of two objects.
std::string getMaxTimeUnit()
Get the time unit.
InitConValue ** con
initial value for each constraint
bool setAnOtherSystemOption(std::string name, std::string value, std::string description)
bool setNumberOfSolverOptions(int numberOfOptions)
BranchingWeight ** getIntegerVariableBranchingWeightsSparse()
Get the integer branching weights in sparse form.
int getNumberOfInputFilesToMove()
Get the number of input files to move.
bool deepCopyFrom(GeneralOption *that)
A function to make a deep copy of an instance of this class.
bool deepCopyFrom(OSOption *that)
A function to make a deep copy of an OSOption object.
DirectoriesAndFiles * filesToMake
files to make during the job
bool setAnotherFileToMake(std::string path)
bool setIntegerVariableBranchingWeightsSparse(int numberOfVar, BranchingWeight **var)
std::string lbValue
lower bound on the value
~SOSWeights()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(OSOption *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.
OtherOption()
Default constructor.
OtherOptions * otherOptions
the list of other system options
PathPairs * outputDirectoriesToMove
output directories to move or copy
int numberOfObj
number of <obj> children
CPUSpeed * minCPUSpeed
the minimum CPU speed required
std::string getFileCreator()
Get the name of the person who created the file.
~InitialBasisStatus()
Class destructor.
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
BasisStatus * initialBasisStatus
initial basis status for the objectives
std::string description
description of the option
std::string getUserName()
Get the user name.
VariableOption * variables
the options for the variables
bool deepCopyFrom(VariableOption *that)
A function to make a deep copy of an instance of this class.
OtherVarOption ** var
array of option values
OtherVarOption()
Default constructor.
Processes * processesToKill
processes to kill upon completion
OtherOptions()
Default constructor.
std::string value
value of the option
std::string name
the name of the option
InitVariableValuesString * initialVariableValuesString
initial values for string-valued variables
~OtherVarOption()
Class destructor.
SOSWeights ** getSOSVariableBranchingWeightsSparse()
Get the SOS branching weights in sparse form.
bool addObj(int idx, double value)
A function to add a <obj> element.
std::string license
the license information
bool setServiceType(std::string serviceType)
set() options in the <service> element
bool deepCopyFrom(OtherOptions *that)
A function to make a deep copy of an instance of this class.
bool addVar(int idx, std::string value)
A function to add a element.
OtherOption ** getOtherGeneralOptions()
Get the array of other options associated with the <general> element.
InitVarValueString()
Default constructor.
double value
the CPU speed (expressed in multiples of unit)
bool setIntegerVariableBranchingWeightsDense(int numberOfVar, double *value)
ContactOption * contact
the contact method
bool deepCopyFrom(TimeSpan *that)
A function to make a deep copy of an instance of this class.
OtherConOption ** con
array of option values
bool setAnotherProcessToKill(std::string process)
PathPair ** pathPair
the list of directory and file paths
int getNumberOfInitVarValuesString()
Get the number of initial variable strings.
TimeSpan * maxTime
the maximum time allowed
SOSWeights ** sos
branching weights for the SOS
bool addVar(int idx, std::string value, std::string lbValue, std::string ubValue)
A function to add a element.
std::string type
the type of the option value (integer, double, boolean, string)
bool IsEqual(InitVarValueString *that)
A function to check for the equality of two objects.
bool setOtherServiceOptions(int numberOfOptions, OtherOption **other)
int getNumberOfProcessesToKill()
Get the number of processes to kill.
~InitVariableValuesString()
Class destructor.
int getNumberOfSolverOptions()
Get the number of solver options.
bool deepCopyFrom(InitVarValueString *that)
A function to make a deep copy of an instance of this class.
the InitDualVarValue class.
InitObjectiveValues()
Default constructor.
bool setOtherOptionOrResultEnumeration(std::string value, std::string description, int *i, int ni)
Set the indices for a particular level in an enumeration.
double ubValue
initial upper bound
int getNumberOfFilesToDelete()
Get the number of files to delete.
~InitDualVarValue()
Class destructor.
bool addJobID(std::string jobID)
A function to add an <jobID> element.
std::string value
value of the option
bool IsEqual(InitVarValue *that)
A function to check for the equality of two objects.
int getMinCPUNumber()
Get the minimum required number of CPUs.
InitDualVarValue ** con
initial dual values for each constraint
bool OSIsEqual(double x, double y)
JobDependencies()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OtherObjectiveOption ** other
other information about the objectives
bool setMinCPUSpeed(std::string unit, std::string description, double value)
Set the minimum CPU speed required for the current job.
bool setOptionStr(std::string optionName, std::string optionValue)
int getNumberOfOtherSystemOptions()
Get the number of <other> options in the <system> element.
std::string type
type of the option value (integer, double, boolean, string)
int numberOfSOS
number of <sos> children
bool IsEqual(OtherObjOption *that)
A function to check for the equality of two objects.
OtherConstraintOption()
Default constructor.
bool IsEqual(OtherConstraintOption *that)
A function to check for the equality of two objects.
std::string solverToInvoke
the solver to invoke
PathPairs * inputFilesToMove
input files to move or copy
std::string objType
type of the values in the obj array
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
InitVarValue ** getInitVarValuesSparse()
Get the initial values associated with the variables in sparse form.
std::string ubValue
lower bound on the value
SOSWeights()
Default constructor.
InitVarValue()
Default constructor.
int getNumberOfOtherJobOptions()
Get the number of <other> options in the <job> element.
bool setRandom(double density, bool conformant, int iMin, int iMax)
A function to make a random instance of this class.
~InitObjValue()
Class destructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setInitObjValues(int numberOfObj, int *idx, double *value, std::string *name)
bool addVar(int idx, double value)
A function to add a element.
bool setAnotherInputDirectoryToMove(std::string fromPath, std::string toPath, bool makeCopy)
bool deepCopyFrom(OtherObjectiveOption *that)
A function to make a deep copy of an instance of this class.
bool addCon(int idx, double lbDualValue, double ubDualValue)
A function to add a <con> 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 numberOfVar
number of children
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
InitVariableValues()
Default constructor.
bool setCon(int numberOfCon, InitDualVarValue **con)
A function to set an array of <con> elements.
double * getInitObjLowerBoundsDense()
Get the initial lower bounds associated with the objectives in dense form.
int numberOfItems
the number of items (additional pieces of data) of the option
std::string getLicense()
Get the license string.
int numberOfObj
number of <obj> children
std::string getRequestedStartTime()
Get the requested starting time.
bool deepCopyFrom(StorageCapacity *that)
A function to make a deep copy of an instance of this class.
bool addObj(int idx, std::string value, std::string lbValue, std::string ubValue)
A function to add a <obj> element.
int numberOfJobIDs
the number of entries in the list of job dependencies
std::string type
type of the option value (integer, double, boolean, string)
bool IsEqual(OtherVariableOption *that)
A function to check for the equality of two objects.
bool setJobID(std::string jobID)
Set the job ID.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setObj(int numberOfObj, InitObjValue **obj)
A function to set an array of <obj> elements.
InitVarValueString ** getInitVarValuesStringSparse()
Get the initial value strings associated with the variables in sparse form.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
OptimizationOption * optimization
optimizationOption holds the fifth child of the OSOption specified by the OSoL Schema.
int numberOfOtherConstraintOptions
number of <other> child elements
std::string name
optional variable name
int numberOfEnumerations
number of <enumeration> child elements
std::string value
the value of the <instanceLocation> element
GeneralOption * general
generalOption holds the first child of the OSOption specified by the OSoL Schema. ...
bool setProcessesToKill(int numberOfProcesses, std::string *processes)
~InitConstraintValues()
Class destructor.
IntegerVariableBranchingWeights * integerVariableBranchingWeights
branching weights for integer variables
the OtherVariableOption class.
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.
the InitDualVariableValues class.
std::string lbValue
lower bound on the value
InitConValue()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
~PathPairs()
Class destructor.
bool deepCopyFrom(ObjectiveOption *that)
A function to make a deep copy of an instance of this class.
bool IsEqual(TimeSpan *that)
A function to check for the equality of two objects.
std::string value
the value of the option
bool setDirectoriesToMake(int numberOfPaths, std::string *paths)
bool setInitVarValuesSparse(int numberOfVar, InitVarValue **var)
std::string description
description of the option
bool deepCopyFrom(SolverOption *that)
A function to make a deep copy of an instance of this class.
bool setInitConValuesDense(int numberOfCon, double *value)
bool setAnotherDirectoryToMake(std::string path)
bool setInitConValuesSparse(int numberOfCon, InitConValue **con)
std::string ubValue
upper bound of the option
bool setVar(int numberOfVar, InitVarValueString **var)
A function to set an array of elements.
int getNumberOfOtherVariableOptions()
Get the number of other variable options.
bool setMinCPUNumber(int number, std::string description)
Set the minimum number of CPU cores required for the current job.
bool setOtherConstraintOptions(int numberOfOptions, OtherConstraintOption **other)
std::string name
optional variable name
~OptimizationOption()
Class destructor.
bool setInstanceLocation(std::string instanceLocation)
Set the instance location.
int * m_mdInitBasisStatusDense
m_mdInitBasisStatusDense holds the initial basis status in dense form
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double getMinCPUSpeed()
Get the minimum required CPU speed.
MinDiskSpace()
Default constructor.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setContactTransportType(std::string transportType)
Set the transport type for contact.
std::string * getFilesToDelete()
Get the array of files to delete.
bool setAnOtherConstraintOption(OtherConstraintOption *optionValue)
bool IsEqual(JobDependencies *that)
A function to check for the equality of two objects.
int getNumberOfInputDirectoriesToMove()
Get the number of input directories to move.
bool addCon(int idx, double value)
A function to add a <con> element.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(SOSVariableBranchingWeights *that)
A function to check for the equality of two objects.
bool IsEqual(StorageCapacity *that)
A function to check for the equality of two objects.
double getMinMemorySize()
Get the minimum required memory.
std::string unit
the unit in which disk space is measured
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
the InitVarValueString class.
ObjectiveOption * objectives
the options for the objectives
bool IsEqual(ConstraintOption *that)
A function to check for the equality of two objects.
int numberOfOtherOptions
the number of other options
bool deepCopyFrom(InitVarValue *that)
A function to make a deep copy of an instance of this class.
BasisStatus * initialBasisStatus
initial basis status for the slack variables
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.
~IntegerVariableBranchingWeights()
Class destructor.
std::string getMinCPUSpeedDescription()
Get the CPU speed description.
std::vector< OtherObjectiveOption * > getOtherObjectiveOptions(std::string solver_name)
Get the array of other objective options.
SolverOption ** solverOption
the list of solver options
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
int getNumberOfIntegerVariableBranchingWeights()
Get the number of variables for which integer branching weights are provided.
bool deepCopyFrom(OtherConOption *that)
A function to make a deep copy of an instance of this class.
double value
initial value
bool setAnotherOutputFileToMove(std::string fromPath, std::string toPath, bool makeCopy)
bool setObj(int numberOfObj, OtherObjOption **obj)
A function to set an array of <obj> elements.
InitObjectiveBounds * initialObjectiveBounds
initial bounds for the objectives
bool setVar(int numberOfVar, BranchingWeight **var)
A function to set an array of elements.
bool setRequiredFiles(int numberOfPaths, std::string *paths)
BranchingWeight ** var
branching weight for each variable
bool setNumberOfOtherObjectiveOptions(int numberOfOther)
OtherObjOption ** obj
array of option values
std::string * getDirectoriesToDelete()
Get the array of directories to delete.
int getNumberOfInitObjValues()
Get the number of initial objective values.
InitObjBound ** obj
initial bounds for each objective
InitBasStatus()
Default constructor.
int getNumberOfFilesToMake()
Get the number of files to make.
bool IsEqual(InstanceLocationOption *that)
A function to check for the equality of two objects.
the InstanceLocationOption class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setMinCPUSpeedUnit(std::string unit)
std::string ubValue
lower bound on the value
MinCPUNumber()
Default constructor.
std::string getFileSource()
Get the source of the file or problem.
bool addCon(int idx, std::string value, std::string lbValue, std::string ubValue)
A function to add a <con> element.
std::string getFileName()
Get the name of the file.
int getNumberOfOtherServiceOptions()
Get the number of <other> options in the <service> element.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setInitDualVarValuesSparse(int numberOfCon, InitDualVarValue **con)
std::string description
the description of the option
bool setFilesToDelete(int numberOfPaths, std::string *paths)
~JobDependencies()
Class destructor.
bool setRandom(double density, bool conformant, int iMin, int iMax)
A function to make a random instance of this class.
bool setOptionInt(std::string optionName, int optionValue)
used for throwing exceptions.
the OtherConOption class.
~BranchingWeight()
Class destructor.
bool setInstanceName(std::string instanceName)
Set the instance name.
int getNumberOfDirectoriesToDelete()
Get the number of directories to delete.
bool deepCopyFrom(SystemOption *that)
A function to make a deep copy of an instance of this class.
OtherConstraintOption ** getAllOtherConstraintOptions()
Get all <other> constraint options.
std::string getMinDiskSpaceUnit()
Get the disk space unit.
bool deepCopyFrom(OtherConstraintOption *that)
A function to make a deep copy of an instance of this class.
bool setMaxTimeUnit(std::string unit)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(MinCPUSpeed *that)
A function to check for the equality of two objects.
OtherConstraintOption * getOtherConstraintOption(int optionNumber)
Get one particular <other> constraint option from the array of options.
double value
the minimum CPU speed required
the InitObjectiveValues class.
bool setOther(int numberOfOptions, OtherOption **other)
A function to set an array of <other> elements.
InitObjValue ** getInitObjValuesSparse()
Get the initial values associated with the objectives in sparse form.
double * m_mdInitDualVarUpperBoundsDense
m_mdInitDualVarUpperBoundsDense holds initial dual values for the upper bound of the constraints in d...
OtherVariableOption * getOtherVariableOption(int optionNumber)
Get one particular <other> variable option from the array of options.
bool setInitVarValuesStringDense(int numberOfVar, std::string *value)
~InitConValue()
Class destructor.
bool setAnotherInitObjBound(int idx, double lbValue, double ubValue)
~ServiceOption()
Class destructor.
bool IsEqual(GeneralOption *that)
A function to check for the equality of two objects.
std::string * process
the list of processes
OtherOptions * otherOptions
list of other job options
std::string getPassword()
Get the password.
bool deepCopyFrom(InitConstraintValues *that)
A function to make a deep copy of an instance of this class.
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.
a data structure to represent an LP basis on both input and output
std::string unit
the unit in which memory size is measured
bool addVar(int idx, std::string value)
A function to add a element.
the StorageCapacity class.
bool deepCopyFrom(ServiceOption *that)
A function to make a deep copy of an instance of this class.
int getNumberOfInitialBasisElements(int type, int status)
Get the number of initial basis elements for a particular variable type and basis status...
~InitBasStatus()
Class destructor.
std::string unit
the unit in which time is measured
bool setOtherSystemOptions(int numberOfOptions, OtherOption **other)
double value
the number of units of storage capacity
OtherConstraintOption ** other
other information about the constraints
the BranchingWeight class.
bool setOutputDirectoriesToMove(int numberOfPathPairs, PathPair **pathPair)
JobDependencies * dependencies
the dependency set
InitObjBound ** getInitObjBoundsSparse()
Get the initial bounds associated with the objectives in sparse form.
InitVariableValues * initialVariableValues
initial values for the variables
DirectoriesAndFiles * requiredFiles
files required to run the job
bool setContact(std::string contact)
Set the contact information.
~InitObjectiveBounds()
Class destructor.
bool setAnotherRequiredDirectory(std::string path)
bool IsEqual(InitVariableValues *that)
A function to check for the equality of two objects.
bool setInitVarValues(int numberOfVar, int *idx, double *value, std::string *name)
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setPassword(std::string password)
Set the password.
std::string getInstanceLocation()
Get the instance location.
std::string enumType
type of the values in the enumeration array
bool deepCopyFrom(InitDualVariableValues *that)
A function to make a deep copy of an instance of this class.
std::vector< OtherVariableOption * > getOtherVariableOptions(std::string solver_name)
Get the <other> variable options associated with a particular solver.