CSMOn
Convergence Stabilization Modeling operating in Online mode
|
#include <stdio.h>
#include <string.h>
#include <iostream>
#include "PSO.hpp"
#include "CSMOn.hpp"
Go to the source code of this file.
Data Structures | |
struct | _Param |
Contains a parameter received from / sent to the Python caller. More... | |
Typedefs | |
typedef struct _Param | Param |
Contains a parameter received from / sent to the Python caller. | |
Functions | |
void | search (char *method, Param *inParam, Param *outParam, double *outPos, callback_t fitnessFunction) |
The wrapper function for Python calls. More... | |
This file contains the wrapper code for Python calls.
Definition in file CSMOn_wrapper.cpp.
void search | ( | char * | method, |
Param * | inParam, | ||
Param * | outParam, | ||
double * | outPos, | ||
callback_t | fitnessFunction | ||
) |
The wrapper function for Python calls.
Call this method from Python using ctypes interface.
method | A string speficying the search method to be used. |
inParam | The parameters required to call the search method specified. |
outParam | The parameters returned by the search method called. This will be returned back to the Python caller. |
outPos | The final result containing the optimized position. This will be returned back to the Python caller. |
fitnessFunction | The callback Python function containing the code for the fitness function evaluation. |
Definition at line 69 of file CSMOn_wrapper.cpp.