Type: Posts; User: gugge444
Search took 0.01 seconds.
December 9th, 2012, 05:44 AM
At this point, for time reasons, I have to leave the programming part of my dissertation for a few week.
I therefore wanted to take this opportunity to thank you for your help and patience. I have...
December 8th, 2012, 08:20 PM
Alright, that is very good to know, I thought the variables were only to be called in that way when you desired to modify their value within the function.
The function now runs, and the Linear...
December 8th, 2012, 01:15 PM
allright, solved that now, no need to reply
December 8th, 2012, 01:12 PM
I ran a cin >> through the text and found that the error is in the
glp_load_matrix(lp, OBJ.n_rows*3, &ia(1), &ja(1), &ar(1)); statement... any ideas?
December 8th, 2012, 12:26 PM
It may possibly be that I use too much memory?
December 8th, 2012, 12:12 PM
I feel the code should make more sense now, but the "The program ' top.exe: Native' has exited with code 3 (0x3)." error still appears... Here is the code now if you feel like having a look.
December 8th, 2012, 11:24 AM
This is all very useful, and the std::Vector (or rather arma::Col) that I am now using thanks to you works great!
I actually tried to do it this way earlier, but did not add the ...
December 8th, 2012, 07:56 AM
The error only occurs when I call the linprog1 function, so the error should lie in the second code.
December 8th, 2012, 07:52 AM
I have two pieces of code:
December 7th, 2012, 08:06 PM
Sorry, that is suppose to be char* and char, not double* and double
December 7th, 2012, 06:44 PM
I got the code to work! Thank you for all your help! :)
By the way, I created a 1d array using the trick double* x = new double[var]; which seems to be the only way of creating an array with a...
December 7th, 2012, 01:38 PM
YES! It is all sorted! Sorry for all the frustrating newbi questions, but I should be fine from now! Thanks for all help
December 7th, 2012, 01:25 PM
I made it past that problem by adding files to the resources folder. I now run the program fine, but when the cmd prompt appears it appears with a message claiming that the dll file used is missing...
December 7th, 2012, 01:23 PM
Ah once again I moved on, I simply took all the files in the folder, such as dlls and libs and put them under resources, now the error that appears is that the file "glpk_4_47.dll is missing" so I...
December 7th, 2012, 01:15 PM
Clearly if anyone wants to have a look at the package to see if they can make it work, that would be much appreciated.
The file can be downloaded for free from https://www.gnu.org/software/glpk/
December 7th, 2012, 01:12 PM
Modified the text! :) I think you are right about the dependencies, but I am not sure how to make this work.. All the linker --> input --> additional dependencies allows me to do is write names of...
December 7th, 2012, 01:09 PM
Cheers Paul :)
You are right about the fact that I do not know enough about c++ yet, as I keep getting into trouble... I have now moved onto trying to add the gnu glpk library to my code, but I...
December 7th, 2012, 12:39 PM
I am new to c++, so I apologize for the possibly poorly formulated question below.
I am trying to use gnu glpk library, and I am doing something wrong.
I code in visual studio 2010. To use the...
December 6th, 2012, 06:31 PM
Thank you Paul!
I needed to rethink what I was doing and am now on the right track! It is annoying however that now I have stumbled upon:
1>C:\Program Files\MATLAB\MATLAB Compiler...
December 6th, 2012, 05:21 PM
Thank you for your reply Paul.
Although I am new to C++ I understand the concept of prototyping. I apologize for the confusing formulation of my question. I believe this function I am trying to use...
December 6th, 2012, 04:48 PM
I am trying to use the linprog function in visual studio 2010. I have used the matlab compiler according to the walkthrough at...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!