Closed sinashm closed 4 years ago
I can't tell - I need to see your code or a minimum working example. You might not have started the TCP server, you might not be calling it properly, or not have set the TCP configuration right.
@sinashm any updates on this one?
@alphaville I try to build the optimizer again with Python3 but it seems it got stuck.
(env) pixy@pixy:~/catkin_workspaces/catkin_sina/src/nmhe$ python3 NMHE.py
INFO:root:Initialising builder
INFO:root:Checking user parameters
INFO:root:Creating necessary folders
INFO:root:Copying icasadi interface to target directory
INFO:root:Generating Cargo.toml for target optimizer
INFO:root:Generating icasadi Rust library file
INFO:root:Defining CasADi functions and generating C code
INFO:root:Defining function psi(u, xi, p) and its gradient
INFO:root:Function psi and its gradient (C code)
INFO:root:Defining function F1(u, p)
INFO:root:Mapping F1 (C code)
INFO:root:Defining function F2(u, p)
INFO:root:Mapping F2 (C code)
INFO:root:Generating casadi_memory.h
INFO:root:Generating intercafe.c (C interface)
INFO:root:Generating main code for target optimizer (lib.rs)
INFO:root:Generating build.rs for target optimizer
INFO:root:Generating YAML configuration file
INFO:root:Building optimizer
It turns out that the problem is that you hadn't included with_constraints
in the problem formulation, therefore the build fails. What we need to do is to have NoConstraint()
as the default constraints (instead of None
) so that users don't have to specify the absence of constraints.
I am using Python 3.6 for opengen and I am getting following warning and the error. Does this problem due to virtualenv? The TCP IP is: