Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Constraint function
Post: RE: Constraint function

N = 1; T =24; P = 10 E = 20 dt = 1 # eta_c = 0.8 eta_d = 0.9 e0 = 0.95* E t = 0.02 p_c = np.linspace(0, P, T, endpoint=True) p_d = np.linspace(0, P, T, endpoint=False) A = np.tri(T) # lower trinagula...
tman Homework 4 1,341 Dec-27-2022, 01:48 PM
    Thread: Constraint function
Post: RE: Constraint function

Thanks a lot. Here are my attempts. The constraints are not obeyed in the results N = 1; T =24; P = 10 E = 20 dt = 1 # eta_c = 0.8 eta_d = 0.9 e0 = 0.95* E t = 0.02 p_c = np.linspace(0, P, T, ...
tman Homework 4 1,341 Dec-27-2022, 11:03 AM
    Thread: Constraint function
Post: Constraint function

I need to code this function out; it’s subject to the following constraints. e[k+1] = t*e[k+1] + eta_c*p_c[k] -p_d[k]/eta_c. (1) p_c[k]*p_d[k] = 0 e[0] = 0 0<= p_c[k] <= P 0<= p_d[k] &l...
tman Homework 4 1,341 Dec-27-2022, 08:50 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020