Add support for using preferred number series with the ASCO optimizer + variables search string fix #412
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ASCO optimizer used by Qucs supports constraining optimization variables to assume discrete values in the IEC 60063 preferred number series but this option was not available in the optimization dialog (I guess the dialog was written before ASCO added support for this), so here is a simple modification to allow this selection.
I have also added an example using this feature of the optimizer. Note that for some reason the ASCO installed on my Linux system with Qucs 0.0.18 throws an error with this schematic, saying that the variable(s) is outside the allowed range. Recompiling ASCO from the sources, it works as expected. I guess this is due to some numerical precision issue, but did not have time to investigate further.
While trying to add the new
.sch
example file, I noticed that all the.sch
files were ignored byGit
, apparently due to a rule added to.gitignore
some time ago.I have modified the rule to not ignore the
.sch
inexamples/
and tried to clean up.gitignore
a bit, but I realized we should probably think a bit more on how to handle this in general, as we have sometimes alsogitignore
files in subdirectories repeating the same rules...