help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] glpk Limitation? Or what is the problem


From: xypron . glpk
Subject: Re: [Help-glpk] glpk Limitation? Or what is the problem
Date: Wed, 19 Jun 2013 12:52:16 +0200 (CEST)

Hello John,

error C0000005 is a memory access violation.

Best regards

Heinrich Schuchardt

http://www.xypron.de

Am 19.06.13 um 11:28 schrieb john tass

> Good morning,
> 
> I am trying to solve a large LP problem and I start my code (in C++) using
> 
> the following lines.
> 
> 
> 
> 
> 
> int C = 30;
> 
>  int H = 30;
> 
>  int R = 6;
> 
> 
> 
>  glp_prob *lp;
> 
>  int ia[1 + C*H*R + C*R], ja[1 + C*H*R + C*R];
> 
>  double ar[1 + C*H*R + C*R], z;
> 
> 
> 
>  cout<<"Basic matrices of LP problem are defined"<<"\n";
> 
> 
> 
>  lp = glp_create_prob();
> 
>  cout<<"lp problem created"<<"\n";
> 
>  glp_set_prob_name(lp, "sample");
> 
>  cout<<"Name of lp problem defined"<<"\n";
> 
>  glp_set_obj_dir(lp, GLP_MIN);
> 
>  cout<<"Direction of lp problem defined"<<"\n";
> 
> 
> 
> But something is wrong and I can not realize what it is. The program
> 
> interrupt as soon as it gets at line 9
> 
>  (cout<<"Basic matrices of LP problem are defined"<<"\n";) which is
> 
> executed fine. The problem occurs at the next line 10
> 
> (lp = glp_create_prob();)
> 
> and the program returns an error code like "3221225477". Is the problem
> 
> related to the size of LP problem?
> 
> Thanks for helping me
> 
> Ioannis Tassopoulos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]