You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--tae_class acclingo/tae/clasp_opt_tae.py`: TAE that expects `<solver>` to be a `clingo` binary and grounded instances to include `#minimize` statements. If no solution was found or the resulting cost is bigger then the ParN score, the ParN score is returned as costs. Per default 10*cutoff. Otherwise the cost is runtime times percental difference of achieved quality to best known bound.
48
48
-`--tae_args "{\"best_known\": \"<csv file>\"}"`: String in json format that passes auxiliary arguments to the TAE. The TAE expects the csv file to have instance names without extension in the first column and integers representing the best known bound in the second.
49
49
50
+
# Additional Options
50
51
51
-
52
-
52
+
the --tae_args can also be used to change the mode of clingo. By default it is set to "clasp". If the instances require an additional file(encoding) to run, you can also provide it with the --tae_args option using "encoding":
Copy file name to clipboardexpand all lines: acclingo/tae/README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Asprin TAE
2
2
3
-
This TAE is very similar to the basic clasp TAE. The only differences are that it only counts a solution as a succesful solution if the optimum was found and it needs an asprin "binary" or a way to call asprin. The penalty for no solution or no optimal solution is the maximum available time multiplied by some penalty. This penalty can be given as a parameter:
3
+
This TAE is very similar to the basic clasp TAE. The only differences are that it only counts a solution as a succesful solution if the optimum was found and that it needs an asprin "binary" or a way to call asprin. The penalty for no solution or no optimal solution is the maximum available time multiplied by some penalty value . This penalty value can be given as a parameter:
4
4
5
5
⋅⋅* Parameter to penalize no optimal solution = "penalty": float
6
6
@@ -14,13 +14,13 @@ example:
14
14
The optimization weights TAE is a variant of "clasp\_opt\_tae" where the cost of not finding the optimal solution is calculated based on the time it takes to find some solution (or no solution) and the solution quality.
15
15
16
16
## Solution quality
17
-
There are two ways to calculate the cost of the solution, normalized cost and not normalized cost. For both calculations we assume that a higher value is always worse.
17
+
There are two ways to calculate the cost of the solution: normalized cost and not normalized cost. For both calculations we assume that a higher value is always worse.
this formula will be between 0 and 1 for all values *worse* than the best solution. This also assumes that worse values are higher than better values(E.g 10 is worse than 5).
23
+
this formula will be between 0 and 1 for all values *worse* than the best solution. A solution is worse than another if its value is higher(E.g 10 is worse than 5). If the solution found is better, the value will become negative.
24
24
25
25
Not normalized quality cost uses the following formula:
26
26
```
@@ -29,7 +29,7 @@ Not normalized quality cost uses the following formula:
29
29
This formula basically gives a ratio of the quality of the found solution to the best known solution. So, a value higher than 1 means that the found solution is worse and a value below 1 means that the found solution is better.
30
30
31
31
## Runtime quality
32
-
The Above formulas are used to gage the solution quality. To calculate the actual cost we also want to take a loot at the time quality. The following formula is used regardless of the which quality formula is used:
32
+
The Above formulas are used to gage the solution quality. To calculate the actual cost we also want to take a look at the time quality. The following formula is used regardless of the which quality formula is used:
@@ -41,7 +41,7 @@ If a solution was not found for the current instance, the following formula is u
41
41
```
42
42
cost = par_factor * unsolved_penalty
43
43
```
44
-
Par factor is usually set to 10 and unsolved penalty is a predefined value that modifies par factor. Users need to be careful when choosing a low unsolved_penalty when using the not normalized formula for solution quality as the value for solution quality can potentially be very big.
44
+
Par factor is usually set to 10 and unsolved penalty is a predefined value that modifies par factor.
45
45
46
46
The actual cost is then calculated with the following formula:
0 commit comments