Skip to content

New strategy system#36

Open
msoos wants to merge 7 commits intoaig-shared-ptr-better-fixfrom
new-strategy-system
Open

New strategy system#36
msoos wants to merge 7 commits intoaig-shared-ptr-better-fixfrom
new-strategy-system

Conversation

@msoos
Copy link
Collaborator

@msoos msoos commented Feb 26, 2026

This adds a new strategy system that allows us to write strategies such as:

"learn(samples=1,max_repairs=80),learn(max_repairs=400),bve

The last strategy runs forever, the others until max_repairs. max_repairs must be set for all strategies except the last one. The parameters can be overridden at toplevel with e.g. --bwequal which sets the default. You can then override them per-strategy, putting bwequal=x inside the bracket, and that will override it for that particular strategy.

This PR also fixes the parsing of all parameters in the main.cpp. It now correctly validates the types of the parameters, so if 0.1 is given for an int, it will error out. So we are much more careful now.

Let me know what you think.

Fixing up

UPdate

Better safety

More thorough checking during parsing

Better options

More checking

More checking

More checking

Less warnuings

Update

Update

Update

BEtter

Cleaner

Fixing

Fixing

Update

Update
@msoos msoos requested a review from kuldeepmeel February 26, 2026 22:55
@msoos msoos force-pushed the new-strategy-system branch from 837b2fd to 500a36c Compare February 27, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant