Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-11-2009
Member
 
Join Date: Jun 2009
Posts: 3,620
Programming in C++ and CPLEX

I started all just in c++ and Cplex. Currently I'm training and I have to implement my mathematical model in c++ using macros that use Cplex solver.

Binary variables were created: I have a 4-variable index, I would like to know how do I do? I thought to create a table of many dimensions but I do not know how it works and where it should be done if you have any suggestions and/or reading materials, then please help me.
Reply With Quote
  #2  
Old 07-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Programming in C++ and CPLEX

Could you provide us an example of what you want to do (not the code, the principle behind)? CPLX must have a good doc on interfacing C/CPLX and hence the associated data structures.
Reply With Quote
  #3  
Old 07-11-2009
Member
 
Join Date: Jun 2009
Posts: 3,620
Re: Programming in C++ and CPLEX

My goal is to rewrite my mathematical model in visual c++, so I'll create a class called mathematical model, then from there I'd call the solver cplec using macros. My primary function is the creation of binary variables. My variable is an index variable with 4. So the c or I wonder when to declare the variable that is in the constructor or it is in the public creation binary variables and how to declare a vector with many dimensions!

Basically I want to know how to pass a multidimensional array in c++, a variable representing the cplex. I explain if this is not always so clear: I have a variable dimension 4, for its memory location once the results are displayed, I create a table control unit but how I say to my program Variable No. xxxx represents the variable X_1111 (ijkm with indices that are equal to 1)
Reply With Quote
  #4  
Old 07-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Programming in C++ and CPLEX

It's not possible because your variable is in several dimensions and thus it corresponds to a multidimensional array.
Reply With Quote
  #5  
Old 07-11-2009
Member
 
Join Date: Jun 2009
Posts: 3,620
Re: Programming in C++ and CPLEX

I am beginner in CPLEX. Is that you can point me to the setup of CPLEX and its use? And how I'm doing now for the declaration of my variables to several Measurements? Thank you for helping me
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Programming in C++ and CPLEX"
Thread Thread Starter Forum Replies Last Post
A problem using cplex with visual c++ 2008 divange Software Development 1 31-05-2011 08:25 AM
c++ and cplex - model implementing golemmbarbarr Software Development 1 11-05-2011 06:57 AM
GUI programming in C Isdel Software Development 3 30-01-2010 07:02 AM
Socket programming: Is any new Programming Language? Kushan Software Development 3 14-11-2009 11:13 AM
JetBrains Introduces a New Programming Paradigm With its Meta Programming System JoeFrat Software Development 3 13-12-2008 01:49 PM


All times are GMT +5.5. The time now is 10:20 PM.