brocksam / pycollo

General-purpose optimal control, trajectory optimisation and parameter optimisation using direct collocation
https://brocksam.github.io/pycollo/
MIT License
8 stars 3 forks source link

Error messaging pycollo #74

Open jtheinen opened 1 year ago

jtheinen commented 1 year ago

In this issue I will state all the error messages as a result of an error in the code.

jtheinen commented 1 year ago

Minimal reproduction:

phase_A = problem.new_phase(name="A") ... phase_A = bounds.path_constraints = [[0,10]] ... problem.initialise problem.solve

Explanation

Error due to a provided bound to an object without the object being declared.

Link to code

https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/optimal_control_problem.py#L341 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/optimal_control_problem.py#L390 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/backend.py#L829 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/backend.py#L844 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/iteration.py#L58 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/iteration.py#L77 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/iteration.py#L401 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/iteration.py#L452 https://github.com/brocksam/pycollo/blob/6e01d6c6300856408c942830cf78b4f2ea3fc049/pycollo/scaling.py#L195

brocksam commented 1 year ago

If possible can you also please:

jtheinen commented 1 year ago
  • Provide a link to the location in the source code.

Just the last line or whole output?