[julia-users] Solver does not support quadratic solver .

2016-06-23 Thread tannirind
Hello,

After coming this error i add SCS solver . But the same error is happening 
. How can i remove ?

Thank you !

Best Regards,
Tanveer Iqbal


[julia-users] Re: How to get the particular value from the table

2016-06-08 Thread tannirind
Thank you Marcus

On Tuesday, June 7, 2016 at 10:40:51 PM UTC+2, Marcus Appelros wrote:
>
> Alternatively readdlm("file.text",',') might be sufficient.



[julia-users] Re: How to get the particular value from the table

2016-06-07 Thread tannirind
Thank you David,

Basically I want to solve a simple optimization problem for the cost of the 
grid. So I want to to to import the forecasting file(file.text) for the 
power consumption (p1,p2...p24) and the cost (c1,c2c24)of the energy 
for the 24hrs. Cost and power is different at every hour.

with this formula
@objective(m, Max, sum{p[i]*c[i], i=1:24})

Is this right approach ? or if you have any idea then please suggest me how 
can I handle this problem ? 


On Tuesday, June 7, 2016 at 7:23:00 PM UTC+2, David P. Sanders wrote:
>
>
>
> El martes, 7 de junio de 2016, 12:39:47 (UTC-4), tann...@gmail.com 
> escribió:
>>
>> According to time interval (hours) I want to access different power 
>> values 
>>
>> like sum{p[t]*c[t]}, t = 1:N
>>
>
> This should be the dot product of the two vectors,
>
> dot(p, c)
>
> But you really need to provide more information: what is p, what is c.
>
> You also did not answer my question: how do you import the data? (And what 
> format do you have it in?
>
>  
>
>>
>>
>> On Tuesday, June 7, 2016 at 5:57:16 PM UTC+2, tann...@gmail.com wrote:
>>>
>>> Hello,
>>>
>>> If I have this kind of table attached here. How can I access the 
>>> particular value to use in problem after importing in the julia. Thank you 
>>>
>>

[julia-users] Re: How to get the particular value from the table

2016-06-07 Thread tannirind
According to time interval (hours) I want to access different power values 

like sum{p[t]*c[t]}, t = 1:N


On Tuesday, June 7, 2016 at 5:57:16 PM UTC+2, tann...@gmail.com wrote:
>
> Hello,
>
> If I have this kind of table attached here. How can I access the 
> particular value to use in problem after importing in the julia. Thank you 
>


[julia-users] Quadratic equation solver ?

2016-05-31 Thread tannirind
which one is a good  solver(open source) for quadratic equation using jump 
? Thank you 


Re: [julia-users] This application has requested the Runtime to terminate it in an unusual way

2016-05-27 Thread tannirind

This is the whole message which I get on the console. you needed this 
information or any other ?


"This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Assertion failed
Program:C:\User\Tanveer Iqbal\AppData\Local\Julia-0.4.3\bin\julia.exe.
File:
User/x86_64-w64-mingw32/sys-root/mingw/include/Line3934
Expression: i 
> You should at least provide some information on the system (e.g. what 
> Julia version you were using by copying the output of versioninfo()) and a 
> minimal script to reproduce the problem.
>
> On Thu, May 26, 2016 at 10:47 PM, > wrote:
>
>> When i execute the problem . This message appears on the julia window. 
>> How can I fix it ? Thank you
>>
>>
>> "This application has requested the Runtime to terminate it in an unusual 
>> way.
>> Please contact the application's support team for more information."
>>
>>
>>
>

[julia-users] This application has requested the Runtime to terminate it in an unusual way

2016-05-26 Thread tannirind
When i execute the problem . This message appears on the julia window. How 
can I fix it ? Thank you


"This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information."




Re: [julia-users] Redefine constant

2016-05-26 Thread tannirind
Thnak you Michele .but I am using Jump

On Thursday, May 26, 2016 at 1:00:16 PM UTC+2, Michele Zaffalon wrote:
>
> At the REPL, you can use workspace() 
> 
>
> On Thu, May 26, 2016 at 12:10 PM, > wrote:
>
>> when  i defined the const like
>>
>> Const a_max = [30,30]
>> Const a_min = [0,10]
>>
>> I fined the warning
>>
>> WARNING: redefining constant a_max
>> WARNING: redefining constant a_min
>>
>>
>>
>> how can I resolve this issue ?? Thank you 
>>
>>
>>
>>
>

[julia-users] Redefine constant

2016-05-26 Thread tannirind
when  i defined the const like

Const a_max = [30,30]
Const a_min = [0,10]

I fined the warning

WARNING: redefining constant a_max
WARNING: redefining constant a_min



how can I resolve this issue ?? Thank you 





[julia-users] Warning getValue is deprecated , use getvalue instead

2016-05-25 Thread tannirind


 Every time I find this kind of warning and the program is not solved 
optimally. how can I solve this ?? Thanks for your help.



WARNING: getValue is deprecated, use getvalue instead.
 in depwarn at deprecated.jl:73
 in getValue at deprecated.jl:30
 in solve_ed at In[1]:52
 in include_string at loading.jl:266
 in execute_request_0x535c5df2 at 
C:\JULIA\.julia\v0.4\IJulia\src\execute_request.jl:183
 in eventloop at C:\JULIA\.julia\v0.4\IJulia\src\IJulia.jl:143
 in anonymous at task.jl:447
while loading In[1], in expression starting on line 56
WARNING: getValue is deprecated, use getvalue instead.
 in depwarn at deprecated.jl:73
 in getValue at deprecated.jl:30
 in solve_ed at In[1]:52
 in include_string at loading.jl:266
 in execute_request_0x535c5df2 at 
C:\JULIA\.julia\v0.4\IJulia\src\execute_request.jl:183
 in eventloop at C:\JULIA\.julia\v0.4\IJulia\src\IJulia.jl:143
 in anonymous at task.jl:447
while loading In[1], in expression starting on line 56
WARNING: getObjectiveValue is deprecated, use getobjectivevalue instead.
 in depwarn at deprecated.jl:73
 in getObjectiveValue at deprecated.jl:30
 in solve_ed at In[1]:52
 in include_string at loading.jl:266
 in execute_request_0x535c5df2 at 
C:\JULIA\.julia\v0.4\IJulia\src\execute_request.jl:183
 in eventloop at C:\JULIA\.julia\v0.4\IJulia\src\IJulia.jl:143
 in anonymous at task.jl:447
while loading In[1], in expression starting on line 56



[julia-users] My Julia window Close Down

2016-05-23 Thread tannirind
When I include this optimization problem in julia with include("file 
name.jl") my julia window automatically close.Have you any idea about this 
? Thank you for your time.


# In this cell we introduce binary decision u to the economic dispatch 
problem (function solve_ed)
function solve_uc (g_max, g_min, c_g, c_w, d, w_f)
#Define the unit commitment (UC) model
uc=Model()

# Define decision variables
@defVar(uc, 0 <= g[i=1:2] <= g_max[i]) # power output of generators
@defVar(uc, u[i=1:2], Bin) # Binary status of generators
@defVar(uc, 0 <= w  <= w_f ) # wind power injection

# Define the objective function
@setObjective(uc,Min,sum{c_g[i] * g[i],i=1:2}+ c_w * w)

# Define the constraint on the maximum and minimum power output of each 
generator
for i in 1:2
@addConstraint(uc,  g[i] <= g_max[i] * u[i]) #maximum
@addConstraint(uc,  g[i] >= g_min[i] * u[i]) #minimum
end

# Define the constraint on the wind power injection
@addConstraint(uc, w <= w_f)

# Define the power balance constraint
@addConstraint(uc, sum{g[i], i=1:2} + w == d)

# Solve statement
status = solve(uc)

return status, getValue(g), getValue(w), w_f-getValue(w), getValue(u), 
getObjectiveValue(uc)
end

# Solve the economic dispatch problem
status,g_opt,w_opt,ws_opt,u_opt,obj=solve_uc (g_max, g_min, c_g, c_w, d, 
w_f);


println("\n")
println("Dispatch of Generators: ", g_opt[:], " MW")
println("Commitments of Generators: ", u_opt[:])
println("Dispatch of Wind: ", w_opt, " MW")
println("Wind spillage: ", w_f-w_opt, " MW")
println("\n")
println("Total cost: ", obj, "\$")



[julia-users] Re: Read External file data

2016-04-04 Thread tannirind
Thank you Fred for your cooperation 

BR,

On Monday, April 4, 2016 at 3:59:03 PM UTC+2, Fred wrote:
>
> Hi,
>
> Of course it is possible :
>
> https://en.wikibooks.org/wiki/Introducing_Julia/Working_with_text_files
>
> You can read data frames to :
>
> https://dataframesjl.readthedocs.org/en/latest/io.html
>


[julia-users] Read External file data

2016-04-04 Thread tannirind
How we can read data from external file using julia? Tank you for your time.

Best Regards,
Tanveer Iqbal


[julia-users] Given code is not giving the optimal solution .

2016-04-01 Thread tannirind
Hello to every one,

Any one can tell me the code given below is not giving the optimal solution 
.it gives the just range of x1 and x2. I want to calculate optimal value of 
the function. Thank you for your time.

Best Regards,
Tanveer Iqbal

using JuMP
using Ipopt
m = Model(solver = IpoptSolver())

@defVar(m, 0 <= x1 <=3)
@defVar(m, 0 <= x2 <=7)

@addNLConstraint(m, x1+2x2 <=8)
@addNLConstraint(m, 2x1 + x2 <= 10)
@addNLConstraint(m,  x2 <= 3)

@setNLObjective(m, Min, (x1)^2 +2(x2)^2 + 2(x1)+ 3(x2))

solve (m)

print(m)


[julia-users] My julia window goes to close why?

2016-03-31 Thread tannirind
When I open my code with a function call back my julia window turns to 
close. but while compiling other code its going turn off.Can any body help 
me to fix this problem ?

Best Regards,
Tanveer Iqbal.


[julia-users] Re: Load error:UdefVarError : Model not defined in include boot.jl:261

2016-03-30 Thread tannirind
Yes I got it Thank you 
BR

On Wednesday, March 30, 2016 at 5:42:54 PM UTC+2, Iain Dunning wrote:
>
> You need to use the correct case: using JuMP
>
> On Wednesday, March 30, 2016 at 9:19:10 AM UTC-4, tann...@gmail.com wrote:
>>
>> Thank you Kelman,
>>
>> I was trying with this code here "using JuMp" is already mentioned
>>
>> using jump
>> using Ipopt
>> m=Model(solver=IpoptSolver())
>> @defVar(m, x, start = 0.0)
>> @defVar(m, y, start = 0.0)
>> @setNLObjective(m, Min, (1-x)^2 + 100(y-x^2)^2)
>>
>> solve(m)
>>
>> println("x = ", getValue(x), "y = ", getValue(y))
>>
>> BR
>>
>>
>>
>> On Wednesday, March 30, 2016 at 2:11:39 PM UTC+2, Tony Kelman wrote:
>>>
>>> You need
>>> using JuMP
>>
>>

[julia-users] Re: Load error:UdefVarError : Model not defined in include boot.jl:261

2016-03-30 Thread tannirind
Thank you Kelman,

I was trying with this code here "using JuMp" is already mentioned

using jump
using Ipopt
m=Model(solver=IpoptSolver())
@defVar(m, x, start = 0.0)
@defVar(m, y, start = 0.0)
@setNLObjective(m, Min, (1-x)^2 + 100(y-x^2)^2)

solve(m)

println("x = ", getValue(x), "y = ", getValue(y))

BR



On Wednesday, March 30, 2016 at 2:11:39 PM UTC+2, Tony Kelman wrote:
>
> You need
> using JuMP



[julia-users] Load error:UdefVarError : Model not defined in include boot.jl:261

2016-03-30 Thread tannirind
Hello Every one,

I am solving simple non linear examples using JuMp with IpoptSolver. when i 
include file on julia. the specific error come .I updated packages  as well.

Load Error: UNdefVarError : Model not defined in include boot.jl:261
include_from model at loading. jl : 304

Any one have any idea about this? Thank you for your time 

Best Regards,
Tanveer Iqbal


[julia-users] To solve optimization problem in julia is it necessary to add any module.

2016-03-25 Thread tannirind
For the solving of optimization problems in julia is it necessary to add 
any module first such as  jump , NLopt or any other ?? 
If it is necessary to add then which one is best ?

Best Regards,
Tanveer Iqbal


[julia-users] Re: I am Getting problem with julia and light table to work them together

2016-03-19 Thread tannirind
Yes Tomak,

When i write a code but it is not connected with julia in real time.Or even 
when I I press the key Shift+Enter it doesn't work also. suppose I wrote a 
simple code such as 
a=2
b=3
c=2+3
but pressing the key Shift+Enter it dont show the result on the julia.Can I 
fix this problem ? if i do not install any other text editor.

Best Regards  

On Thursday, March 17, 2016 at 1:45:26 PM UTC+1, Lutfullah Tomak wrote:
>
> Hi again,
> Julia programmes not yet can be compiled in the sense that c and fortran 
> can be compiled. You define your methods/functions and later you use them 
> in real context. As your julia file executed from top to down, the main 
> julia executable parses it to internal codes and as you call a function 
> within the file julia converts it to machine code and  runs it similar to 
> python but JITed.
>
> I don't know what you mean by synchronize but you can run a part of code 
> where cursor is in your file by just shift+enter.
>
> I think you may better start with generic distribution at 
> julilang.org/download to get feel how julia compilation works. Also, if 
> you don't have a reason to use discontinued or deprecated lighttable IDE 
> interface you'd better start with Atom IDE interface and instructions for 
> it is here https://github.com/JunoLab/atom-julia-client/tree/master/manual 
>
> Best,
>
> On Thursday, March 17, 2016 at 2:13:39 PM UTC+2, tann...@gmail.com wrote:
>>
>> Hello Tomak,
>>
>> Please dont mind if I am asking stupid question because I am just 
>> beginner on julia.I think I am not conveying you people right.Now I try 
>> again. I wrote the program on Light table and now I want to compile this 
>> program on julia.I dont know how I can synchronize both Julia and Light 
>> table.
>>
>> Best Regards 
>>
>> On Thursday, March 17, 2016 at 10:33:17 AM UTC+1, Lutfullah Tomak wrote:
>>>
>>> Hi.
>>> I think you need Shift+Enter or equivalent on OSX? If you want to print 
>>> something you can open console tab to see. Also there is 'Evaluate All' in 
>>> one of the top down menus. 
>>> But it'd better use new Atom interface because if you update lighttable 
>>> you can break working setting.
>>> Best,
>>> On Thursday, March 17, 2016 at 11:24:20 AM UTC+2, tann...@gmail.com 
>>> wrote:

 Hello Sebastian,

 Thank you for you reply. But when I open the light table it gives the 
 notification "Connect with julia".But just the problem is that I dont know 
 how to synchronize them both.Means if I write a program on light table 
 then 
 how i can run on julia.

 Best Regards

 On Wednesday, March 16, 2016 at 12:51:47 PM UTC+1, randm...@gmail.com 
 wrote:
>
> Hi Tanveer,
>
> the Julia plugin for LightTable isn't maintened anymore. Recent work 
> has focussed on getting Julia nicely integrated into Atom -- you can find 
> the install instructions for that here 
> . 
> There's also a nice piece on the Juno workflow and how it differs from 
> the 
> usual REPL workflow here 
> 
> .
>
> Best,
> Sebastian
>
> Am Dienstag, 15. März 2016 15:07:27 UTC+1 schrieb tann...@gmail.com:
>>
>> Hello,
>>
>> I installed julia and light table is also connect with julia.But I 
>> dont know how to run code of light table on julia.Or we can say that how 
>> to 
>> make them on work together.
>> Thank you for your time 
>>
>> BR,
>> Tanveer
>>
>

[julia-users] Re: I am Getting problem with julia and light table to work them together

2016-03-19 Thread tannirind
Hello Sebastian,

Thank you for you reply. But when I open the light table it gives the 
notification "Connect with julia".But just the problem is that I dont know 
how to synchronize them both.Means if I write a program on light table then 
how i can run on julia.

Best Regards

On Wednesday, March 16, 2016 at 12:51:47 PM UTC+1, randm...@gmail.com wrote:
>
> Hi Tanveer,
>
> the Julia plugin for LightTable isn't maintened anymore. Recent work has 
> focussed on getting Julia nicely integrated into Atom -- you can find the 
> install instructions for that here 
> . 
> There's also a nice piece on the Juno workflow and how it differs from the 
> usual REPL workflow here 
> 
> .
>
> Best,
> Sebastian
>
> Am Dienstag, 15. März 2016 15:07:27 UTC+1 schrieb tann...@gmail.com:
>>
>> Hello,
>>
>> I installed julia and light table is also connect with julia.But I dont 
>> know how to run code of light table on julia.Or we can say that how to make 
>> them on work together.
>> Thank you for your time 
>>
>> BR,
>> Tanveer
>>
>

[julia-users] Re: I am Getting problem with julia and light table to work them together

2016-03-19 Thread tannirind
Hello Tomak,

Please dont mind if I am asking stupid question because I am just beginner 
on julia.I think I am not conveying you people right.Now I try again. I 
wrote the program on Light table and now I want to compile this program on 
julia.I dont know how I can synchronize both Julia and Light table.

Best Regards 

On Thursday, March 17, 2016 at 10:33:17 AM UTC+1, Lutfullah Tomak wrote:
>
> Hi.
> I think you need Shift+Enter or equivalent on OSX? If you want to print 
> something you can open console tab to see. Also there is 'Evaluate All' in 
> one of the top down menus. 
> But it'd better use new Atom interface because if you update lighttable 
> you can break working setting.
> Best,
> On Thursday, March 17, 2016 at 11:24:20 AM UTC+2, tann...@gmail.com wrote:
>>
>> Hello Sebastian,
>>
>> Thank you for you reply. But when I open the light table it gives the 
>> notification "Connect with julia".But just the problem is that I dont know 
>> how to synchronize them both.Means if I write a program on light table then 
>> how i can run on julia.
>>
>> Best Regards
>>
>> On Wednesday, March 16, 2016 at 12:51:47 PM UTC+1, randm...@gmail.com 
>> wrote:
>>>
>>> Hi Tanveer,
>>>
>>> the Julia plugin for LightTable isn't maintened anymore. Recent work has 
>>> focussed on getting Julia nicely integrated into Atom -- you can find the 
>>> install instructions for that here 
>>> . 
>>> There's also a nice piece on the Juno workflow and how it differs from the 
>>> usual REPL workflow here 
>>> 
>>> .
>>>
>>> Best,
>>> Sebastian
>>>
>>> Am Dienstag, 15. März 2016 15:07:27 UTC+1 schrieb tann...@gmail.com:

 Hello,

 I installed julia and light table is also connect with julia.But I dont 
 know how to run code of light table on julia.Or we can say that how to 
 make 
 them on work together.
 Thank you for your time 

 BR,
 Tanveer

>>>

[julia-users] I am Getting problem with julia and light table to work them together

2016-03-15 Thread tannirind
Hello,

I installed julia and light table is also connect with julia.But I dont 
know how to run code of light table on julia.Or we can say that how to make 
them on work together.
Thank you for your time 

BR,
Tanveer