CSMOn
Convergence Stabilization Modeling operating in Online mode
Data Structures | Typedefs | Functions
CSMOn_wrapper.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <iostream>
#include "PSO.hpp"
#include "CSMOn.hpp"
Include dependency graph for CSMOn_wrapper.cpp:

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...
 

Detailed Description

This file contains the wrapper code for Python calls.

Date
02/Jul/2017
Author
Peter Frank Perroni (pfper.nosp@m.roni.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)

Definition in file CSMOn_wrapper.cpp.

Function Documentation

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.

Parameters
methodA string speficying the search method to be used.
inParamThe parameters required to call the search method specified.
outParamThe parameters returned by the search method called. This will be returned back to the Python caller.
outPosThe final result containing the optimized position. This will be returned back to the Python caller.
fitnessFunctionThe callback Python function containing the code for the fitness function evaluation.

Definition at line 69 of file CSMOn_wrapper.cpp.