Skip to content

Commit

Permalink
feat(optimizer): add greedy execution mode
Browse files Browse the repository at this point in the history
  • Loading branch information
goerlibe committed Jan 24, 2024
1 parent ff1cb00 commit 4473da2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runners/tools/DiscoPoPOptimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CommandExecution } from '../helpers/CommandExecution'
export enum OptimizerExecutionType {
Exhaustive = 'exhaustive',
Evolutionary = 'evolutionary',
// greedy
Greedy = 'greedy',
}

export interface OptimizerOptions {
Expand Down Expand Up @@ -35,6 +35,9 @@ export class DiscoPoPOptimizer {
case OptimizerExecutionType.Exhaustive:
command += ' --exhaustive'
break
case OptimizerExecutionType.Greedy:
command += ' --greedy'
break
default:
throw new Error(
`Unknown execution type: ${options.executionType}`
Expand Down

0 comments on commit 4473da2

Please sign in to comment.