Skip to content

An error occurs when running the design optimization. #2

@kmymch

Description

@kmymch

Hi,
I am following the quick start steps, and everything ran smoothly up to the sensitivity analysis. However, when I try to run the optimization, it throws an error and stops. I am using the SensorFinger project as it is. What should I do?
Here is the some outputs of my code.
$python3 main.py -n SensorFinger -op 0 -o -ni 100

Load optimization problem config number 0
Starting design optimization.
---------------------------------------
Checking SOFA_ROOT and SOFAPYTHON3_ROOT
Using environment variable SOFA_ROOT: /home/<username>/SOFA/v22.12.00
---------------------------------------
[ERROR]   [PythonScript] OperationalError: (sqlite3.OperationalError) database is locked
[SQL: INSERT INTO alembic_version (version_num) VALUES ('v2.6.0.a')]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
  File "main.py", line 109, in <module>
    main()
  File "main.py", line 99, in main
    optimization_lib.optimize(Config, id_config=id_config, n_iter=args.n_iter, solver_library_name=args.solver_library, solver_name=args.solver_name, plot_results=not args.no_plot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions