Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I have the max function in the objective function? #18

Open
hssharadga opened this issue Mar 13, 2021 · 2 comments
Open

Can I have the max function in the objective function? #18

hssharadga opened this issue Mar 13, 2021 · 2 comments

Comments

@hssharadga
Copy link

hssharadga commented Mar 13, 2021

A) Can I have the max function in the objective function? Is the SDDP able to solve this kind of problem?

For example the objective function: obj = energy (1,t) * 10 if t<H
.........................................................................obj = energy (1,t) * 10 + max (energy(1,1:t)) if t=H
I am getting the following error: Error using max
Invalid data type. First argument must be numeric or logical.

B) If my problem got solved How can I get the solution that would lead to the best objective function with the highest probability?

C) Why the lattice.randomPath() assumes for the first stage that the selected node is node 1. Let me explain it: in my problem, I assume that I have 3 stages and for each stage, I have 3 nodes. My question: Why this function take random nodes for stage 2 and stage 3 while it assumes the selected node for stage 1 is node number 1.

@windows7lover
Copy link
Collaborator

windows7lover commented Mar 14, 2021 via email

@hssharadga
Copy link
Author

Thank you again @windows7lover

I have one question what if the realization is not one of the expected scenarios (node)?
Can you provide me with a command that I should use for your comment B above?

Your help is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants