Re: [julia-users] Stateflow equivalent in Julia

2015-09-25 Thread Narayani Vedam
Thank you, I've realised my mistake and corrected the code. It now works as expected! Thanks On Sep 25, 2015 1:28 PM, "Miles Lubin" wrote: > It's not too clear to me what's trying to be accomplished here, but "gear" > and "N" are optimization variables and can't be used inside conditional > state

Re: [julia-users] Stateflow equivalent in Julia

2015-09-25 Thread Miles Lubin
It's not too clear to me what's trying to be accomplished here, but "gear" and "N" are optimization variables and can't be used inside conditional statements. You can use getValue() to query the value of the variables in an optimal solution after calling solve(). If these statements are supposed

Re: [julia-users] Stateflow equivalent in Julia

2015-09-25 Thread NV
Yes, I have a transmission model to implement. I used the following code. But I need it to run for as long as I have initialized the time variable to. using JuMP, Ipopt Truck = Model(solver=IpoptSolver(print_level=0)) #Initial Values gear_0 = 1 v_0 = 20 N_0 = 600 #Constants: i_f = 3.27 eta_f = 0.

Re: [julia-users] Stateflow equivalent in Julia

2015-09-25 Thread Spencer Russell
Welcome to Julia! To get useful answers you’re going to need to provide quite a bit more detail on what problems you’re running into. What did you try? What errors are you getting? Are there specific concepts from the documentation that you’re having trouble with? -s > On Sep 25, 2015, at 1:1

[julia-users] Stateflow equivalent in Julia

2015-09-24 Thread Narayani Vedam
Hi, I am new to Julia. I tried implementing a logic that I had in Simulink - Stateflow using Julia, but ran into trouble. Any heads-up on this? Thank you