herclau

Mr. Hermes Rozsa Iglesias

1038 Reputation

13 Badges

20 years, 166 days

MaplePrimes Activity


These are replies submitted by herclau

@mois 

sol := Search(ObjFn, [op(ModCons), op(Bounds)], startpoint, variables = var, tolerances = 10^(-8), checkexit = 10, evaluationlimit = 10000, step = 0.1e-3, maximize)
Error, (in LinearAlgebra:-VectorNorm) object too large

sol := Search(ObjFn, [op(ModCons), op(Bounds)], startpoint, variables = var, tolerances = 10^(-8), checkexit = 10, step = 0.1e-3, maximize)
Error, (in is/internal) object too large

 sol := Search(ObjFn, [op(ModCons), op(Bounds)], startpoint, variables = var, tolerances = 10^(-8), checkexit = 10, step = 0.1e-1, maximize);
Error, (in LinearAlgebra:-VectorNorm) object too large

sol_2 := Search(ObjFn, [op(ModCons), op(Bounds)], startpoint, variables = var, tolerances = 10^(-8), checkexit = 10, evaluationlimit = 5000000, maximize, penaltymethod = true)
Error, (in evalf/piecewise) object too large

Please be that exemplifies the use of options evaluationlimit, step, penaltymethod, using maple_WorkSheet

http://www.mapleprimes.com/view.aspx?sf=130474/430212/DirectSearch_Alkylat.zip

@mois  My question is how to determine the mean values, by default, have the step and limit evaluation?

Gracias

 

@mois  My question is how to determine the mean values, by default, have the step and limit evaluation?

Gracias

 

@mois How to increase the limit evaluation?
If I increase a lot the evaluation limit, I move away from the result.
There is a compromise between criterion of evaluation limit and the step?
How slow the step?
I received the following alert:

“Warning, cannot find feasible initial direction of search;specify a new initial point, decrease step or repeat search”
Gracias

DirectSearch_Alkylat.zip

@mois How to increase the limit evaluation?
If I increase a lot the evaluation limit, I move away from the result.
There is a compromise between criterion of evaluation limit and the step?
How slow the step?
I received the following alert:

“Warning, cannot find feasible initial direction of search;specify a new initial point, decrease step or repeat search”
Gracias

DirectSearch_Alkylat.zip

I get the error:

> earthquakedatasave();

Error, (in HTTP:-Get) cannot establish TCP connection to `earthquake.usgs.gov' at port 80

Gracias

How to implement this Warning from "DirectSearch"?
Warning:

Warning, limiting number of function evaluations (10000) is reached; set initial point equal to extremum point obtained, increase evaluationlimit option and continue search


How to increase the evaluationlimit option?

Gracias

How to implement this Warning from "DirectSearch"?
Warning:

Warning, limiting number of function evaluations (10000) is reached; set initial point equal to extremum point obtained, increase evaluationlimit option and continue search


How to increase the evaluationlimit option?

Gracias

Please help me. For more than read the help and test different configurations will goal fail. Alkylation_Process_M.zip

http://www.mapleprimes.com/view.aspx?sf=129808/428978/Alkylation_Process_M.zip

LocalSoln := GlobalSolve(ObjFn, ModCons, op(Bounds), initialpoint = {InitValues}, method = reducedgradient, maximize)

[1.61589218620872277, [AlkylYld = 3.19860167415445850, Octane = .946426422111240396, Ratio = 9.35681824212461776, AlkErr = 1.01010099999999992, F4Err = .995316746937184748, F4Perf = 1.51638086164843111, AcidDilut = 1.99970064669291458, OctErr = .989999999999999990, AcidErr = 1.07833383710255636, IsobutRec = 1.50517360863708549, OlefinFeed = 1.83010164762507355, IsobutMak = 2.07219239506969810, AcidFeed = .742637470146617296, AcidStren = .902287112879196718]]

Search(ObjFn, ModCons, pointrange = Bounds, startpoint, variables = [Octane, AcidFeed, AlkylYld, IsobutMak, IsobutRec, OlefinFeed])

Error, invalid input: too many and/or wrong type of arguments passed to DirectSearch:-Search; first unused argument is pointrange = [IsobutRec = 1.0 .. 1.6, OlefinFeed = 1.0 .. 2.0, IsobutMak = 1.0 .. 2.5, AcidFeed = 0. .. 1.2, AlkylYld = 2.0 .. 4.0, AcidStren = .85 .. .93, Octane = .9 .. 1.0, Ratio = 8.0 .. 12.0, AcidDilut = 1.2 .. 2.0, F4Perf = 1.45 .. 1.62, AlkErr = .99 .. 1.010101, OctErr = .99 .. 1.010101, AcidErr = .90 .. 1.111111, F4Err = .99 .. 1.010101]

GlobalSoln := GlobalSolve(ObjFn, ModCons, op(Bounds), initialpoint = {InitValues}, maximize)

[1.78395933308714306, [AlkylYld = 3.07007225990883326, Octane = .955298465585722844, Ratio = 9.91806452479753808, AlkErr = 1.01010099999999992, F4Err = .989999999999999990, F4Perf = 1.55140949167390718, AcidDilut = 1.24674177887431914, OctErr = .989999999999999990, AcidErr = 1.10584991070415373, IsobutRec = 1.54173739656644204, OlefinFeed = 1.75515193917180490, IsobutMak = 1.99033621813427252, AcidFeed = .619799622265214788, AcidStren = .922999919802020341]]

GlobalOptima(ObjFn, ModCons, pointrange = Bounds, startpoint, variables = [Octane, AcidFeed, AlkylYld, IsobutMak, IsobutRec, OlefinFeed], maximize)

Error, invalid input: too many and/or wrong type of arguments passed to DirectSearch:-GlobalOptima; first unused argument is initialpoint = [IsobutRec = 1.5, OlefinFeed = 1.7, IsobutMak = 1.9, AcidFeed = .5, AlkylYld = 3.0, AcidStren = .9, Octane = .95, Ratio = 10.0, AcidDilut = 1.5, F4Perf = 1.55, AlkErr = 1.0, OctErr = 1.0, AcidErr = 1.0, F4Err = 1.0]

How to proceed with DirectSearch v2?

> GlobalSearch(TF, {B >= 0, 0 <= G, 0 <= a, B <= 1, G <= 1, a <= 1}, initialpoints = [G = .1], variables = [a, B, G], maximize, evaluationlimit = 5000, solutions = 1), time();

Error, invalid input: DirectSearch:-GlobalSearch expects value for keyword parameter initialpoints to be of type {Matrix, list(Array), list(Vector), list(list)}, but received [G = .1]
> GlobalSearch(eval(TF, G = .15), {B >= 0, 0 <= G, 0 <= a, B <= 1, G <= 1, a <= 1}, maximize);

Error, (in DirectSearch:-Search) cannot find feasible initial point; specify a new one

How to proceed with DirectSearch v2?

> GlobalSearch(TF, {B >= 0, 0 <= G, 0 <= a, B <= 1, G <= 1, a <= 1}, initialpoints = [G = .1], variables = [a, B, G], maximize, evaluationlimit = 5000, solutions = 1), time();

Error, invalid input: DirectSearch:-GlobalSearch expects value for keyword parameter initialpoints to be of type {Matrix, list(Array), list(Vector), list(list)}, but received [G = .1]
> GlobalSearch(eval(TF, G = .15), {B >= 0, 0 <= G, 0 <= a, B <= 1, G <= 1, a <= 1}, maximize);

Error, (in DirectSearch:-Search) cannot find feasible initial point; specify a new one

@alex_01 

con1 := add(W[i], i = 1 .. nstock) con2 := seq(W[i] con3 := seq(W[i] >= 0, i = 1 .. nstock):

does not work. I do not understand the syntax

@alex_01 

con1 := add(W[i], i = 1 .. nstock) con2 := seq(W[i] con3 := seq(W[i] >= 0, i = 1 .. nstock):

does not work. I do not understand the syntax

@Markiyan Hirnyk 

I prefer a worksheet with a StartUp code.

10^6 Gracias

@Markiyan Hirnyk 

I prefer a worksheet with a StartUp code.

10^6 Gracias

5 6 7 8 9 10 11 Page 7 of 13