Skip to content

issues with arguments fed to solver #3

@ttruneh

Description

@ttruneh

Hi,

This looks like a really cool library ! I've been trying to get it up and running but have been having this error when arguments are fed to the solver:

TypeError: long() argument must be a string or a number, not 'ok_function'

I tried with my own examples and also ran some of the test cases e.g. radiation.py. Any advice as to what I'm doing wrong would be greatly appreciated!

I've been using the dev branch as had issues with the master branch as described previously.

Thanks a lot !

The full error for radiation.py below

/removed path----/opt/anaconda3/envs/py27/bin/python removed path----/Documents/GitHub/optkit/examples/pogs_radiation.py
optkit backend set to cpu64
Traceback (most recent call last):
File "/removed path----/GitHub/optkit/examples/pogs_radiation.py", line 94, in
solver.solve(objective_voxels, objective_beams)
File "/removed path----/opt/anaconda3/envs/py27/lib/python2.7/site-packages/optkit/types/pogs/base.py", line 552, in solve
self._update_function_vectors(f, g)
File "/removed path----/opt/anaconda3/envs/py27/lib/python2.7/site-packages/optkit/types/pogs/base.py", line 527, in _update_function_vectors
f.s[i])
TypeError: long() argument must be a string or a number, not 'ok_function'

Process finished with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions