varying objective function in geometric programming

조회 수: 9 (최근 30일)
Maymoona Hayajneh
Maymoona Hayajneh 2019년 11월 23일
댓글: Maymoona Hayajneh 2019년 11월 23일
I am trying to maximize the secrecy capacity of a relaying network with five design variables. I am using GGPLAB to solve the problem through iterative geometric programming. The objective function is to be updated every iteration. GP solver accepts the objective function if I added it manually feom the previous iteration. But if I dirct the code to a function to calculate the new objective function I get error message:
Error using sym/eval
Too many input arguments.
Error in gpproblem>standardize (line 318)
obj = eval( obj, {'' []} );
Error in gpproblem (line 135)
[r.std_obj new_con new_vars] =
standardize(r.obj,r.new_gpvars_count);
Error in gpsolve (line 44)
gp_problem_obj = gpproblem(obj, constr, flag);
Error in GGPLAB_theta_c (line 79)
[min_c solution status] = gpsolve(obj,constr,'min');
I cannot keep doing it manually . Any ideas?
  댓글 수: 1
Maymoona Hayajneh
Maymoona Hayajneh 2019년 11월 23일
The objective functionis recognized as a generalized posynomial when i copy paste it to the code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by