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
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
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.
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
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